my travel router is setup in WISP mode , all devices are going through a wireguard VPN.
I wanted to killswitch all traffic when VPN goes down.
How do I find the exact wireguard vpn process to kill via ps in order to test the current setup?
when activating the VPN I can see it is running on 42877 but the process pid is 0
/tmp/home/root# netstat -tulnp | grep 42877
udp 0 0 0.0.0.0:42877 0.0.0.0:* -
udp 0 0 :::42877 :::* -
with lsmod I can see wireguard as kernel module.
Can I test the kill switch by removing it via
rmmod wireguard
?
I am afraid that if it goes down the traffic will continue over WAN without VPN.
Is there a way to configure the router (maybe via iptables) so that no traffic is let out of the vpn when accessing the wan?
thank you
I wanted to killswitch all traffic when VPN goes down.
How do I find the exact wireguard vpn process to kill via ps in order to test the current setup?
when activating the VPN I can see it is running on 42877 but the process pid is 0
/tmp/home/root# netstat -tulnp | grep 42877
udp 0 0 0.0.0.0:42877 0.0.0.0:* -
udp 0 0 :::42877 :::* -
with lsmod I can see wireguard as kernel module.
Can I test the kill switch by removing it via
rmmod wireguard
?
I am afraid that if it goes down the traffic will continue over WAN without VPN.
Is there a way to configure the router (maybe via iptables) so that no traffic is let out of the vpn when accessing the wan?
thank you
Last edited: