Skip to content

Instantly share code, notes, and snippets.

@adinata-id
Created December 5, 2021 02:01
Show Gist options
  • Save adinata-id/133c1ff90698ce53888e63ad7511ef83 to your computer and use it in GitHub Desktop.
Save adinata-id/133c1ff90698ce53888e63ad7511ef83 to your computer and use it in GitHub Desktop.
VPN Reconnect Mikrotik
: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