Croontje Posted May 5, 2023 Share Posted May 5, 2023 I have been looking for a way to have a Synology backup to my unraid with hyperbackup over a VPN. And finally I found a good solution. I want to document it here. I hope this is usefull for someone. If you can spot issues/problems please let me know Why no wireguard? As far as I know, this is not possible on my synology. Install VPN package on synology and enable the OpenVPN See Step_1.PNG Export the OpenVPN configuration, replace remote YOUR_SERVER_IP with your server IP/DYNDNS in the VPNConfig.ovpn file Configure the ICH777 OpenVPN client following the instructions (do I need to elaborate more on this?) The basic steps for a OpenVPN connection that requires a Username and Password are: 1) Rename your *.ovpn to 'vpn.ovpn' and place it in your OpenVPN-Client directory, 2) Create in the same directory a file named 'vpn.auth' and place your Username in the first line and the Password for the connection in the second line and save it 3) Restart the container open the logs and see if the connection to your VPN establishes successfully. Add 2 extra paths to this Unraid docker: See Step_4.PNG Create the install_rsync.sh file and place it in the correct path with following contents: (linux linefeeds!) Restart your OpenVPN client container after this. VPN connection should be established and "ps aux" should show rsync daemon installed and running. apt-get update apt-get -y install rsync cat <<EOT > /etc/rsyncd.conf uid = root gid = root use chroot = no max connections = 4 pid file = /var/run/rsyncd.pid log file = /hyperBackup/rsyncd.log timeout = 600 reverse lookup = no [hyperSYN] path = /hyperBackup comment = /hyperBackup read only = FALSE EOT rsync --daemon Go to Diskstation and create Hyperbackup databackup task: (see Step_6.PNG) First screen: destination type: rsync Second screen, use options in screenshot: IP is the IP your docker gets from the OpenVPN server Username and password doesn't matter Backup module is the one in square brackets from the install_rsync file Directory is the HBK folder that will hold your backup (will be autocreated) The options in the following screens you can choose as you wish Normally this should work ... Don't know if it would be better to create a new docker. Thanx @ich777 for the OpenVPN client docker 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.