Skip to content

Instantly share code, notes, and snippets.

View Azumi0's full-sized avatar

Przemyslaw Wrzeszcz Azumi0

  • TravelPlanet
  • Wroclaw, Poland
View GitHub Profile
@hannesbe
hannesbe / syno-vpn-keepalive.sh
Last active January 4, 2024 13:53
Script to keep VPN alive on Synology DSM. Checks if IP is pingable and if not: disconnect VPN, reconnect VPN & add routes
# 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