You are not logged in.

#1 2023-06-07 06:18:57

lfitzgerald
Member
Registered: 2021-07-16
Posts: 173

NetworkManager: Exceptions for Wireguard VPN

I have a Wireguard VPN connection configured in NM. It works as expected.

Some sites block VPNs, so I have to `nmcli connection disable vpn-connection` to open them, and remember to re-enable when done. I'd love to just boycott those sites but unfortunately sometimes there's no alternative.

Is there a better way? For example can I get NM to just route certain domains outside the VPN?

Offline

#2 2023-06-07 17:26:26

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

Re: NetworkManager: Exceptions for Wireguard VPN

AFAIK NetworkManager uses the same routing method ("Improved Rule-based Routing" on this page: https://www.wireguard.com/netns) as "wg-quick". You can try to insert a "to" ip rule (with higher priority than the "not fwmark" rule) that routes packets based on the destination to the main routing table.

Offline

Board footer

Powered by FluxBB