Openvpn: Difference between revisions

From miki
Jump to navigation Jump to search
(Created page with "== Guides == * [https://wiki.debian.org/OpenVPN OpenVPN on debian.org] * [https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-debian-8 How To S...")
 
Line 2: Line 2:
* [https://wiki.debian.org/OpenVPN OpenVPN on debian.org]
* [https://wiki.debian.org/OpenVPN OpenVPN on debian.org]
* [https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-debian-8 How To Set Up an OpenVPN Server on Debian 8 on digitalocean.com]
* [https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-debian-8 How To Set Up an OpenVPN Server on Debian 8 on digitalocean.com]

== Troubleshooting ==
=== Server not running (systemd) ===
After configuring the server (file {{file|/etc/openvpn/server.conf}}, the server does not start:

<source lang=bash>
service openvpn start # or systemctl start openvpn
service openvpn status # show active (exited)
ps faux | grep openvpn # no service running
service openvpn stop
</source>


We have to tell systemd to create new generators [https://lists.debian.org/debian-user/2015/05/msg00789.html]:

<source lang=bash>
systemctl daemon-reload
service openvpn start
ps faux | grep openvpn # ok!
</source>

Revision as of 09:40, 24 October 2016

Guides

Troubleshooting

Server not running (systemd)

After configuring the server (file /etc/openvpn/server.conf, the server does not start:

service openvpn start           # or systemctl start openvpn
service openvpn status          # show active (exited)
ps faux | grep openvpn          # no service running
service openvpn stop


We have to tell systemd to create new generators [1]:

systemctl daemon-reload
service openvpn start
ps faux | grep openvpn          # ok!