I'm using the kill switch script you wrote but I'm using it with the Netgear R7000 running tomato by shibby. I have configured the OpenVPN with my PIA.
In my firewall rules I have the script to kill internet activity when the VPN connection is not working. It is working great like this but when it kills it there is no internet until my next scheduled router reboot. I have scheduled the router to reboot daily at 5AM. What can I add here to make it either restart the OpenVPN connection or have it reboot the router after it kills it?
I'm using the kill switch script you wrote but I'm using it with the Netgear R7000 running tomato by shibby. I have configured the OpenVPN with my PIA.
In my firewall rules I have the script to kill internet activity when the VPN connection is not working. It is working great like this but when it kills it there is no internet until my next scheduled router reboot. I have scheduled the router to reboot daily at 5AM. What can I add here to make it either restart the OpenVPN connection or have it reboot the router after it kills it?
Thanks.
I'm pretty sure that DD-WRT automatically reconnects when the VPN is back up. I'm not 100% sure of this?
If using DD-WRT and the VPN goes down, and it does not automatically reconnect, what is the best solution? _________________ Michael Steele
I can't seem to prevent a device from accessing the Internet once a VPN is dropped. Using ipleak.net to validate. I assumed from my readings that the by having following commands in place and rebooting the router I would be protected but I can still access ipleak.net when I turn off my vpn client.
Where have I gone awry?
//////////
Commands
//////////
Start Up Command
/usr/sbin/iptables -I FORWARD -s 192.168.1.116/32 -o $(nvram get wan_iface) -j DROP
Firewall Command
iptables -I FORWARD -s 192.168.1.116 -o $(nvram get wan_iface) -j DROP