Community discussions

MikroTik App
 
dadach
newbie
Topic Author
Posts: 30
Joined: Wed Aug 22, 2012 4:38 pm

vpn kill switch in firewall

Sat Jan 21, 2017 3:00 am

so i have vpn configured, but sometimes for unknown reason, either my vpn disconnects or the route in ip/routes just disables itself (this happens more often)

i have a certain range mangled to connect to vpn/ is there a line i can add so if ppp vpn connection gets disconnected or ip/route gets disabled, the mangled ip range automatically gets disconnected?

thanks :)
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: vpn kill switch in firewall

Sat Jan 21, 2017 4:04 am

Two basic ways how to solve it:

a) Somehow detect disconnected VPN (netwatch, script, ...) and disable what you want when it happens.

b) Add firewall rules to only allow some traffic to go out via VPN interface. When VPN goes down, if will try to go via default route and will be blocked.

I prefer b).
 
iamjenny
just joined
Posts: 3
Joined: Thu Mar 02, 2017 8:43 am

Re: vpn kill switch in firewall

Thu Mar 02, 2017 9:09 am

What if the kill switch did not work lets suppose it is blocked by firewall then what should I do to access VPN? how to disable firewall in windows?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26914
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: vpn kill switch in firewall

Thu Mar 02, 2017 9:24 am

Guys, Sob gave a clear answer how to solve it. Why ask it again?

Who is online

Users browsing this forum: jb1204, voytecky and 32 guests