Hi, I have installed OpenVPN version 2.3.7 tar.gz for Linux, downloaded from here: https://openvpn.net/index.php/open-sour ... loads.html
OpenVPN is being installed and it seems to work, however, it is not run as a daemon. If I issue the command:
service opnvpn status / start / stop
it says: "openvpn : unrecognized service"
The only way I can run it is by using the command:
openvpn --config /etc/openvpn/server.conf --daemon
But I would like to use the service command and it must start automatically at system startup. How can I achieve that?
The commands I issued to install version 2.3.7 are:
./configure
make
make install
Install OpenVPN-2.3.7 from source and enable at startup help
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
-
- OpenVpn Newbie
- Posts: 4
- Joined: Mon Jun 15, 2015 6:13 pm
- Traffic
- OpenVPN Protagonist
- Posts: 4066
- Joined: Sat Aug 09, 2014 11:24 am
Re: Install OpenVPN-2.3.7 from source and enable at startup
Either include the --daemon parameter in your startup script or the config file.
See --daemon in The Manual v23x
See --daemon in The Manual v23x
-
- OpenVpn Newbie
- Posts: 4
- Joined: Mon Jun 15, 2015 6:13 pm
Re: Install OpenVPN-2.3.7 from source and enable at startup
I do not have a startup script, do I need to create one? Because if I install Openvpn with a package manager (apt-get install openvpn), I can issue commands such as service openvpn ... and there are init scripts in /etc/rcX.
When I install version 2.3.7 there are no init scripts, is that normal?
When I install version 2.3.7 there are no init scripts, is that normal?
-
- OpenVpn Newbie
- Posts: 4
- Joined: Mon Jun 15, 2015 6:13 pm
Re: Install OpenVPN-2.3.7 from source and enable at startup
I do not have a startup script, should I create one? When I install OpenVPN with a package manager (apt-get install openvpn), the service command works and there are Openvpn init files int /etc/rcX.. but that is an old version (2.1..). Version 2.3.7 does not add any init scripts and the service openvpn is not recognized when I use the server openvpn start/stop/status command, is that normal?
P.S.
Not sure if my other post about this was posted or not, if so, this one can be deleted.
P.S.
Not sure if my other post about this was posted or not, if so, this one can be deleted.