i would like to run the OpenVPN service in the background. I have a script like this, that basically starts the Netherlands VPN of privateinternetaccess.
sudo openvpn --config /etc/openvpn/privateinternetaccess/Netherlands.ovpn --script-security 2 --up /etc/openvpn/privateinternetaccess/up.sh
The up.sh switches the
bind-address-ipv4 value to the current vpn ip address that is obtained.
/etc/init.d/transmission-daemon stop sed s/IP_ADDRESS/$4/ /etc/transmission-daemon/settings_template.json > /etc/transmission-daemon/settings.json /etc/init.d/transmission-daemon start
My problem is, i do run this bash script over ssh, and if i exit the ssh the OpenVPN process will stop.
Is there any way to run this in the background? I checked the manual i tried it with an extra
--daemon flag, but after that it didn't give any feedback, and i didn't connected to vpn because
curl ifconfig.me/ip returns my ip.