LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   14.2 NetworkManager-openvpn kill switch? (https://www.linuxquestions.org/questions/slackware-14/14-2-networkmanager-openvpn-kill-switch-4175672510/)

Daedra 04-03-2020 05:06 PM

14.2 NetworkManager-openvpn kill switch?
 
I am thinking about getting a VPN going on my 14.2 machine. It is easy enough to do with networkmaanger-openvpn, but I was wondering how you guys set up a kill switch so that if the VPN drops my IP address and such does not leak?

Thanks

bassmadrigal 04-03-2020 05:20 PM

Quick search shows this (basically setting up some iptables rules).

I ended up doing something different and only wanted certain programs to drop connection if the VPN was lost, but still allow other things to function normally. To do that, I loosely followed this guide. This allows me to create a vpn user and any programs that are started by that user will only have access through the vpn. Any system connections or connections initiated by other users will function through your normal internet.


All times are GMT -5. The time now is 12:45 AM.