My situation looks like following
I use a Raspberry with Raspbian to act as a PPTP VPN Proxy.
My problem is, that when the PPTP connection breaks, the Internetconnection stays active over my Internetprovider, I don`t want --> I need a Kill Switch
With the UFW Firewall I thought allowing the PPP0 interface is enougth - BUT it`s not working.
The Traffic gets routet via ETH0 - so I have to allow this interface too
If the PPTP connection breaks, I need a Kill Switch, that no routing to the Internet is done
Can a Route/Firewall geek help me please.
I use a Raspberry with Raspbian to act as a PPTP VPN Proxy.
My problem is, that when the PPTP connection breaks, the Internetconnection stays active over my Internetprovider, I don`t want --> I need a Kill Switch
Code:
---------- situation when pptp is not running --> Internet transparent ----------
pi@raspberrypi:~ $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 202 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 202 0 0 eth0
Code:
---------- PPTP = active --> VPN OK ----------
pi@raspberrypi:~ $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
191.101.59.4 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
191.101.59.60 192.168.1.1 255.255.255.255 UGH 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 202 0 0 eth0
With the UFW Firewall I thought allowing the PPP0 interface is enougth - BUT it`s not working.
The Traffic gets routet via ETH0 - so I have to allow this interface too
If the PPTP connection breaks, I need a Kill Switch, that no routing to the Internet is done
Can a Route/Firewall geek help me please.