This is my first post and hoping to find help for something that has been driving me crazy.
I have a tomato router set up with VyprVpn and everything is working fine. My issue is that I need to disconnect ALL access to the internet if the vpn service drops. I am using iptables for that to drop the connection which works fine when I disable my vpn on the router and test it manually. My issue is when I am using a service that will only work through the vpn and the connection drops, It somehow detects that I am not connected through the vpn. Even though I immediately check my ip through the router and it seems the vpn is working fine.
So my guess is that while its reconnecting or something there is a moment where it connects through my local internet connection.
I am using this in my administration/scripts/firewall section of my tomato router:
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
iptables -I FORWARD -i br0 -o vlan2 -j DROP
iptables -I INPUT -i tun0 -j REJECT
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
Is there something I need to add on say reconnect that will ALWAYS make sure any device connected to the router will only be through the vpn?