Is it possible to disable wireguard on specific Wi-Fi ?

Björn Fries ml-wireguard at oern.de
Fri Apr 22 06:16:49 UTC 2022


Hello,

Am 18.04.22 um 04:12 schrieb Nohk Two:
> This 
> server allows the clients to access my LAN (e.g. 192.168.87.0/24) and 
[..]
> But when the phones connect to the Wi-Fi of my home's router, the DHCP 
> assigns the IP addresses as 192.168.87.0/24, it's my LAN, to the phones. 
[...]
> Or do you have better ideas ?

the way I solve this is that I use a slightly larger /23-subnet in the
AllowedIPs=192.168.87.0/23

and when I get a local IP inside 192.168.87.0/24 at home, the kernel 
automatically uses the more specific route.


More information about the WireGuard mailing list