Location of systemd conf files for client

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
jhulio
OpenVpn Newbie
Posts: 13
Joined: Sat Feb 27, 2021 1:36 pm

Location of systemd conf files for client

Post by jhulio » Sat Feb 27, 2021 1:40 pm

I have openvpn 2.4.9 on my Ubuntu 20.10, installed through the official repository.

I have downloaded the ovn configuration files for NordVPN.

I want to run openvpn as a service.

This guide (is it official?) explains how to use systemd to run openvpn as a service.

However, the guide appears to be wrong.

openvpn seems to look for configuration files under "/etc/openvpn/", and not under "/etc/openvpn/client" as the guide states.

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: Location of systemd conf files for client

Post by TinCanTech » Sat Feb 27, 2021 3:23 pm

Because Ubuntu is still using the wrong systemd unit files.

jhulio
OpenVpn Newbie
Posts: 13
Joined: Sat Feb 27, 2021 1:36 pm

Re: Location of systemd conf files for client

Post by jhulio » Sat Feb 27, 2021 4:08 pm

TinCanTech wrote:
Sat Feb 27, 2021 3:23 pm
Because Ubuntu is still using the wrong systemd unit files.
Thank you for your answer.

Where is this wrong file and what is the correct one?

Should we update that website to specify the "Ubuntu exception"?

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: Location of systemd conf files for client

Post by TinCanTech » Sat Feb 27, 2021 5:29 pm

Use the version from openvpn repo not ubuntu

jhulio
OpenVpn Newbie
Posts: 13
Joined: Sat Feb 27, 2021 1:36 pm

Re: Location of systemd conf files for client

Post by jhulio » Sat Feb 27, 2021 7:01 pm

Yes I confirm that using openvpn 2.5.1 from the repository as described here:
https://community.openvpn.net/openvpn/w ... twareRepos

the service starts only if the configuration file is under /etc/openvpn/client, and doesn't find the file if it is instead under /etc/openvpn

I think that we should update and reflect this in the page:
https://community.openvpn.net/openvpn/wiki/Systemd

The instructions there are only valid for the openvpn official repo version and not from the ubuntu repo version. It is misleading as currently written, I think.

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: Location of systemd conf files for client

Post by TinCanTech » Sat Feb 27, 2021 7:04 pm

I told you; Ubuntu is using old files .. tell them to sort their end out ..

jhulio
OpenVpn Newbie
Posts: 13
Joined: Sat Feb 27, 2021 1:36 pm

Re: Location of systemd conf files for client

Post by jhulio » Sat Feb 27, 2021 7:39 pm

I have added text to the wiki to specify this problem and the related workaround: https://community.openvpn.net/openvpn/wiki/Systemd

I suggested ubuntu to update the openvpn version in ubuntu's repos here: https://bugs.launchpad.net/ubuntu/+sour ... ug/1917170

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: Location of systemd conf files for client

Post by TinCanTech » Sat Feb 27, 2021 7:43 pm

OK .. That looks good enough for the time being. Thanks 8-)

jhulio
OpenVpn Newbie
Posts: 13
Joined: Sat Feb 27, 2021 1:36 pm

Re: Location of systemd conf files for client

Post by jhulio » Mon Mar 01, 2021 11:16 am

The Ubuntu maintainers have answered me here:

https://bugs.launchpad.net/ubuntu/+sour ... ug/1917170

It looks like they won't change the folder in which openvpn looks for configuration files unless Debian does

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: Location of systemd conf files for client

Post by TinCanTech » Mon Mar 01, 2021 11:41 am

Yeah, change takes time ..

But when "They" want something done "Their" way then "They" just push it out and Damn the consequences ..

Post Reply