You are not logged in.

#1 2024-01-19 11:55:52

la_croix
Member
Registered: 2024-01-19
Posts: 4

Wireguard configured with Network Manager cannot resolve

I use a wireguard VPN hosted by a Unify device to allow me remote access to servers on my local network (home automation, etc). The system generates config files for wireguard (confirmed working on iOS/Android).
Adding the config file as a wireguard config on Arch seems to work if the tunnel is launched with wg-quick, but not if it is managed with Network Manager. In the latter case, DNS does not seem to resolve, and even when DNS is cached (by connecting directly at home), ping reports that the host is unreachable (whilst pinging the correct IP address).
There are no PreUp or PostDown rules in the config file.

Offline

#2 2024-01-19 12:56:04

-thc
Member
Registered: 2017-03-15
Posts: 503

Re: Wireguard configured with Network Manager cannot resolve

If your WireGuard configuration contains the correct parameters for wg-quick, importing it into NetworkManager should work too.
Can you show us the redacted config file?

Offline

#3 2024-01-19 16:30:42

la_croix
Member
Registered: 2024-01-19
Posts: 4

Re: Wireguard configured with Network Manager cannot resolve

Of course, thank you for taking a look:

[Interface]
PrivateKey = foo
Address = 192.168.4.6/32
DNS = 192.168.4.1

[Peer]
PublicKey = bar
PresharedKey = baz
AllowedIPs = 192.168.4.1/32,192.168.4.6/32,0.0.0.0/0
Endpoint = url:port

Offline

#4 2024-01-19 17:44:38

-thc
Member
Registered: 2017-03-15
Posts: 503

Re: Wireguard configured with Network Manager cannot resolve

Try these changes and re-import it to NM for testing:

[Interface]
PrivateKey = foo
Address = 192.168.4.6/24
DNS = 192.168.4.1

[Peer]
PublicKey = bar
PresharedKey = baz
AllowedIPs = 0.0.0.0/0
Endpoint = url:port

Offline

Board footer

Powered by FluxBB