That doesn't sound right. Are you using a rather old version of NetworkManager? Which?
Seems you have a 0.0.0.0/0
route as AllowedIPs. That is fine (if that is what you want). NetworkManager should configure the routes as wg-quick
would, and as described in https://www.wireguard.com/netns/#improved-rule-based-routing.
In particular, check all the routes with ip route show table all
and the corresponding routing rules with ip rule
.
This automatism is controlled by the wireguard.ip4-auto-default-route
setting in the (imported) profile. You can inspect the imported profile with nmcli con show wg0
.
But it also depends on your actual settings. For example, if wg0.conf
has Table=off
or a fixed table number, then this is different (both with wg-quick
and with the profile that you imported in NetworkManager). It would be better to show the complete configuration (after masking private data!!), otherwise it's just guess work what happens.