MikroTik Interface Watchdog
This script helps ensure your MikroTik router's OpenVPN connection remains stable by checking the interface status directly, without relying on ICMP ping. If the OpenVPN interface is not running, it w
🧠 Overview
This script scans all OpenVPN client interfaces and checks their connection status. If any interface is not running, it will be disabled and re-enabled automatically.
Script setup
you can choose to use basic script or the one with telegram notification
🕐 Scheduler Setup
To make this script run on a schedule:
Go to System > Scheduler, and create a new scheduler named
ovpn-client watchdog
or whatever that you likePaste the desired script (Basic or Telegram version).
dont forget to click apply and ok after you finish
✅ What This Script Does
VPN is running
No action
VPN is down
Restarts interface
Telegram enabled
Sends alert message
🧪 Testing the Script
Temporarily disable your OpenVPN interface
Watch the Logs and your Telegram for confirmation.
Last updated
Was this helpful?