- 4,063
- 1,393
- NAS
- DS4l8play, DS202j, DS3623xs+, DSM 7.3.3-25847
A few days ago I shutdown Synology's VPN server, as it was seldom used. However yesterday, when I launched the Docker container qbittorrentvpn, its web GUI failed.
After changing the containers VPN credentials (I use AirVPN), and updating the Docker image, I continued to get TUN errors whenever the container started.
After my frustration level subsided, I remembered exiting several packages a few days before, and for some random reason, I restarted Synology VPN server. When restarting the qbittorrentvpn container, the TUN errors ceased, and I was connected to the AirVPN server.
Hopefully this is obvious to some of you, but I don't understand why shutting down the Synology VPN Server (which accepts incoming connections), would affected a Docker container with an outbound connection to a VPN server.
As it seems now, the Synology VPN Server must be kept running for my container to function. Presumably, if I uninstall the VPN Server, my container is useless.
What is going on here? Why am I dependent upon the VPN Server for my Docker VPN connection? How can I break this dependency so that that container connects when the Synology VPN Server is not running (or uninstalled).
After changing the containers VPN credentials (I use AirVPN), and updating the Docker image, I continued to get TUN errors whenever the container started.
2022-02-18 03:31:52 | stdout | 2022-02-18 03:31:52.441766 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/AirVPN_NO-Oslo_Camelopardalis_UDP-443.ovpn |
2022-02-18 03:31:52 | stdout | 2022-02-18 03:31:52.377470 [info] VPN_ENABLED defined as 'yes' |
2022-02-18 03:30:28 | stdout | Fri Feb 18 03:30:28 2022 Exiting due to fatal error |
2022-02-18 03:30:28 | stdout | Fri Feb 18 03:30:28 2022 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2) |
After my frustration level subsided, I remembered exiting several packages a few days before, and for some random reason, I restarted Synology VPN server. When restarting the qbittorrentvpn container, the TUN errors ceased, and I was connected to the AirVPN server.
Hopefully this is obvious to some of you, but I don't understand why shutting down the Synology VPN Server (which accepts incoming connections), would affected a Docker container with an outbound connection to a VPN server.
As it seems now, the Synology VPN Server must be kept running for my container to function. Presumably, if I uninstall the VPN Server, my container is useless.
What is going on here? Why am I dependent upon the VPN Server for my Docker VPN connection? How can I break this dependency so that that container connects when the Synology VPN Server is not running (or uninstalled).