Debian Jessie: how to enable and start OpenVPN

root's picture

With Debian Jessie, they modified a bit the starting process. I won't get into details because it is not the goal of this article.
Below, you have the proper way to enable and start openvpn.

You want to enable the gz config:

root@bubaz:~# ls -la /etc/openvpn/ | grep .conf
-rw-r-----  1 root root 3450 Feb  8  2015 gz.conf

Prior to start, you must enable it via systemctl command:

root@bubaz:~# systemctl enable openvpn@gz
Created symlink from /etc/systemd/system/ to /lib/systemd/system/openvpn@.service.
root@bubaz:~# systemctl start openvpn

Up and running:

root@bubaz:~# ps -ef|grep -i open | grep -v grep
root     10374     1  0 06:27 ?        00:00:00 /usr/sbin/openvpn --daemon ovpn-gz --status /run/openvpn/gz.status 10 --cd /etc/openvpn --config /etc/openvpn/gz.conf

That's it!

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Recent content