-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't make it work via systemd service #3
Comments
I finally got it to work with the following service file (in my case, netns script was symlinked to /usr/local/sbin/).
Now, vpn starts within a network namespace automatically at boot. Then I start deluge daemon in the namespace (under user "deluge") the following way:
My problem is that now I cannot figure out how to connect to the daemon from deluge webui (previously the daemon was reachable under 127.0.0.1:58846) |
Hi, see may script: I use nginx to route the port to the VPN namespace using a point to point internal network |
I made a fork with a systemd service with optional failover to other backends. |
Thx for the great script! One question: what is the correct way to run this script via a systemd service (I'm running Ubuntu 16.04)?
When I issue the following command in terminal everything works as expected: a name space is created and openvpn tunnel is successfully running within it.
openvpn --ifconfig-noexec --route-noexec --setenv NETNS "vpn-ns" --up /opt/openvpn-netns/openvpn-scripts/netns --route-up /opt/openvpn-netns/openvpn-scripts/netns --down /opt/openvpn-netns/openvpn-scripts/netns --daemon ovpn-de9 –status /run/openvpn/de9.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/de9.conf --writepid /run/openvpn/de9.pid
However, when I try to run the same via a systemd service at boot, the service starts and runs, but when I try to run anything in the name space I get the following:
When I do
sudo ip netns list
I get this:Here's the systemd service file I'm using (which is a modification of a standard servis file that comes with openvpn package on Ubuntu 16.04):
What am I doing wrong? Your help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: