Scripts for Synology DSM
reconnect-vpn.sh
This script can be used as a workaround for Synology DSM's less-than-ideal reconnect behavior when a VPN connection is lost. The actual magic in this script was originally written by users on a thread on the Synology Forum. This script just provides a user-friendly wrapper to their code. For more information, including installation instructions, refer to my blog post.
0
: reconnect not needed1
: reconnect successful2
: reconnect failed3
: configuration errorNO_RECONNECT_SCRIPT=/volume1/Scripts/script\ with\ spaces.sh
) or wrap the script paths in quotes (e.g. NO_RECONNECT_SCRIPT='/volume1/Scripts/script with spaces.sh'
). Community-maintained scripts compatible with these features are included in the reconnect-vpn.sh Community Scripts
directory.