This script will build the latest version of WireGuard for your Synology NAS and install/update the package. It must be used on a Synology DiskStation NAS so that it can detect your DSM version, package architecture, and interact with your NAS. The script will ask for sudo access - Depending on how long it takes to build the WireGuard SPK, you may have to enter your password for sudo twice.
- Enable SSH if not already enabled
- Check that the Synology official Docker and Git Server packages are installed
- Check that the Trust Level is set to "Any publisher" in the Package Center settings
- SSH into your NAS with a user with root access
- Run
wget https://raw.githubusercontent.com/raman325/syno-wg-autoinstaller/master/syno-wg-autoinstaller.sh - Run
chmod +x syno-wg-autoinstaller.sh
For basic usage, simply run ./syno-wg-autoinstaller.sh. For advanced usage, run ./syno-wg-autoinstaller.sh --help to see configuration options.