Package: openvpn
Version: 2.4.0-4

ISSUE:

Upon system startup if you wish to bind OpenVPN to a specific IP
address on Debian Testing, OpenVPN does _not_ start at bootup.

File: /etc/openvpn/server.conf
local 1.2.3.4  # substitute a static IP here

The work-around/fix for this is as follows:
$ cp /lib/systemd/system/openvpn@.service /root

Then edit /lib/systemd/system/openvpn@.service:
After the "Before=systemd-user-sessions.service" add the following lines:

# 
http://www.linuxquestions.org/questions/linux-software-2/openvpn-on-debian-8-a-4175547193/
# You can also add 'After=multi-user.target' instead as it works too.
# 
http://www.linuxquestions.org/questions/linux-software-2/openvpn-on-debian-8-a-4175547193/
After=multi-user.target

Request for the package maintainers (Alberto?), would it be possible
to only run OpenVPN after the interfaces are up and the ipbind steps
are completed(?) and/or after the multi-user.target?  This seems to
come up on various mailing lists/forums and it would solve this issue
for quite a few folks.

Otherwise, OpenVPN does not start at boot up without the workaround
above.  Furthermore, when OpenVPN is upgraded with apt-get, it
overwrites the changes in /lib/systemd each time so I have to chattr
+i the file and then make the fix each time an OpenVPN upgrade is
available.

Thanks,

Justin.

Reply via email to