I am trying to implement a killswitch for ProtonVPN IPsec setup. However, their guide provides commands only for ROS6. So I am trying to translate these for ROS 7.1:
However, , it doesn’t seem to work as when the VPN is down, I am still able to access internet using my ISPs IP and DNS. Do you have any suggestions how to better translate the recommended killswitch from ROS6 to 7.1?
Sorry, I didn’t receive any notification about new posts in this discussion. I contacted ProtonVPN and here is what they sent me, which seems to work fine:
Unfortunately this didn’t work for me. Adding this snippet disallows clients to communicate through the IPsec completely. If I disable the mangle line, it instantly works again. I have no clue about this. ROS 7.4 on RB4011.
Not sure why you need a killswitch, if traffic doesnt have a route out the local WAN it aint going to leak, but in any case,
conceptually speaking what you need to do is configure this in routes using distance separation, at least I think
Now what is not known is how you are forcing or directing subnet traffic to the VPN??
I will assume by routing rules and then mangles /routing rule
add min-prefix=0 action=lookup-only-in-table table=main
add src-address=subnet-to-ONLY-VPN action=lookup-only-in table table=protonvpn
many thanks for your quick answer! Unfortunately I am not able to understand everything you wrote.
Not sure why you need a killswitch, if traffic doesnt have a route out the local WAN it aint going to leak, but in any case,
Because if the tunnel goes down, there will be leaking. I tried to stop the VPN and the internet connection is still working, hence the IP address and location is exposed
Now what is not known is how you are forcing or directing subnet traffic to the VPN??
I will assume by routing rules and then mangles
No, there is no mangle in this guide.
Furthermore:
local-SubnetA, local-SubnetB, local-SubnetC - I think those addresses could change. I prefer to have a configuration which will work regardless of the VPN Server I connect to and regardless of the ISP or SIM card which I insert into the router.