You are not logged in.

#1 2014-09-21 13:03:34

mosquitogang201
Member
Registered: 2012-06-19
Posts: 37

Can openvpn fork to background? [Solved]

Is there anyway to make openvpn fork to the background after logging in? For example, I want to log in to a remote machine via ssh shell and then log in to my vpn provider. But I can't figure out any way to get openvpn to go to the background. I have to open a second ssh shell to use it while logged into the vpn. I have read through the openvpn manpage but nothing I have tried has worked. Does anyone know how to make this work?

Last edited by mosquitogang201 (2014-09-21 13:51:24)

Offline

#2 2014-09-21 13:17:59

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Can openvpn fork to background? [Solved]

Use the daemon option - see:

man openvpn

Offline

#3 2014-09-21 13:34:49

mosquitogang201
Member
Registered: 2012-06-19
Posts: 37

Re: Can openvpn fork to background? [Solved]

How specifically do I use the daemon mode? When I try it I get no output and it does not log me in, even if I use the auth-user-pass option.

Offline

#4 2014-09-21 13:50:30

mosquitogang201
Member
Registered: 2012-06-19
Posts: 37

Re: Can openvpn fork to background? [Solved]

Nevermind, I figured it out. Always seems to be that I can search and search for the answer on my own never finding it. But as soon as I ask for help I figure it out on my own.

All I had to do was add a line saying "daemon" at the end of the .ovpn file provided by my vpn service. Now it prompts for password, logs in, and disappears like I want.

Last edited by mosquitogang201 (2014-09-21 13:51:04)

Offline

Board footer

Powered by FluxBB