On Wed, 2 Feb 2022 13:02:15 +0000, Emanuel Gonzalez <emanuel_gonza...@live.com.ar> wrote:
>Hi everyone > >Im trying to start a VPN connection through a shell script but I cant run it >in background, Ive tried with: > >sudo openvpn --config "/home/user/config.ovpn" & >sudo openvpn --config "/home/user/config.ovpn" >/dev/null 2>&1 > I belive you can do thia if you are on Linux and are using the latest openvpn: Put the config.ovpn file in /etc/openvpn/client, then it will connect in the background once you enable the new service. sudo systemctl enable openvpn-client@config sudo systemctl start openvpn-client@config sudo systemctl stop openvpn-client@config sudo systemctl disable openvpn-client@config (You might want to name the file something other than "config" so you know to where it connects when used. -- Bo Berglund Developer in Sweden _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users