OpenVPN Watchdog Script for Asus Merlin Routers with Multiple OpenVPN Clients running. This script will check on intervals if the OpenVPN has a remote IP using the built in Asus Merlin /usr/sbin/gettunnelip.sh
script. The script will restart the OpenVPN Client if it does not have a remote IP for the set amount of time.
Provided as Open Source. Any Support appreciated.
- Enable JFFS and SSH on Router
- SSH into the router with command: ssh admin@router-ip
- Add wan-start script with command:
vi /jffs/scripts/wan-start
- Add the contents of wan-start.sh
- Make script executable with command:
chmod a+rx /jffs/scripts/wan-start
- Reboot Router
- Monitor Logs for Watchdog events.
This project is licensed under the terms of the GNU General Public License version 3.0 (GPL-3.0).