Importing wireguard config with route to 0.0.0.0/0 doesn't get expected result
Hello,
When using networkmanager and more specific nmcli to import a wireguard config the traffic is not routed over the tunnel.
my wiregaurd config is the following:
[Interface]
Address = 10.33.34.6/24
PrivateKey = <privatekey here>
DNS = 1.1.1.1
[Peer]
# Name = My Config
PublicKey = <public key here>
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = <ip>:1234
PersistentKeepalive = 25
When I run this config with wg-quick everything is routed over the tunnel. Importing this config with the following command:
nmcli connection import type wireguard file wgCM.conf
This creates the connection, I can connect correctly but everything is still routed over my normal default gateways.
default via 192.168.2.1 dev enp0s20f0u1u1 proto dhcp metric 100
default dev wgCM proto static scope link metric 20050
10.33.34.0/24 dev wgCM proto kernel scope link src 10.33.34.6 metric 50
192.168.2.0/23 dev enp0s20f0u1u1 proto kernel scope link src 192.168.3.235 metric 100
When changing the range to 10.0.0.0/8
and trying to reach internal devices does work. So it seems to be something strange with the exact range 0.0.0.0/0
Versions:
nmcli tool, version 1.18.2-1
wireguard-dkms 0.0.20190702-1
wireguard-tools 0.0.20190702-1