Created
December 5, 2021 02:01
-
-
Save adinata-id/133c1ff90698ce53888e63ad7511ef83 to your computer and use it in GitHub Desktop.
VPN Reconnect Mikrotik
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:local ip "192.168.208.1" | |
:local interface "MID VPN INTERFACE NAME" | |
:if ([/ping $ip count=5] = 0) do { | |
:log warning "MID TEKNOLOGI VPN is restarting" | |
/interface disable $interface | |
:delay 1 | |
/interface enable $interface | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment