So I know this is a stupid question and believe me, I tried fixing this on my own.
I have a working OpenVPN server on a Raspberry Pi (running jessie). In order to start the server so that clients can connect, I have to do the following:
sudo openvpn /etc/openvpn/server.conf
I wanted that the VPN Server starts automatically, so I edited /etc/default/openvpn like this:
AUTOSTART="server"
However, nothing happens upon restart. Clients cannot connect. The OpenVPN service seems to be running though:
pi@raspberrypi:~ $ service openvpn status
в—Џ openvpn.service - OpenVPN service
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled)
Active: active (exited) since Sun 2016-05-15 20:15:44 UTC; 8min ago
Process: 1148 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 1148 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/openvpn.service
In order to get it working, I need to restart the vpn service:
sudo service openvpn restart
Once I do this, all clients can connect.
What am I missing? Why should I restart the openvpn service seconds after starting the Pi? How can I make server.conf fire up automatically on startup?