cut internet when losing VPN
I use Opensuse 12.1 x64
Im trying to use a vpn effectively but whenever it cuts out my connection is still active(which I dont want)
Im trying to configure so that if I lose my vpn connection I also lose all access to the outside network.
Some of my ideas where as follows with no success:
1. Use a firewall to only allow external access through my vpn which is tun0. I cannot find that connection in my firewall settings and not sure if and how to set it up with iptables.
2. Bind my eth0 and tun0 connection with network manager. Im not sure if this is even possible.
Honestly, Im out of ideas.
How would you stop your internet connection if your VPN gets disconnected?