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
# syno-vpn-keepalive.sh | |
# --- | |
# Script to keep VPN alive on Synology DSM. | |
# Checks if IP is pingable and if not: | |
# disconnect VPN, reconnect VPN & add routes | |
# --- | |
# Modify vars: | |
# - CHECKIP: IP to check to be pingable before reconnecting VPN | |
# - NAME (Synology VPN name), | |
# - ID (Synology VPN ID), SSH to NAS & run this to find ID |