VPN Script

Evening mates

How to make a Script to check my vpn connection and if its down to disable the interface and re-enable it again??


Thanks for your time.

Configure a Netwatch with your VPN gateway as the monitored target.

In the down-script, do

/interface disable vpn1
:delay 1s
/interface enable vpn1

(replacing “vpn1” with the actual VPN interface name of course)

See this: http://forum.mikrotik.com/t/logging-of-a-lost-connection/87840/2

Thanks mate for your time, it works great.