Location of systemd conf files for client
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 13
- Joined: Sat Feb 27, 2021 1:36 pm
Location of systemd conf files for client
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.
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.
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Location of systemd conf files for client
Because Ubuntu is still using the wrong systemd unit files.
-
- OpenVpn Newbie
- Posts: 13
- Joined: Sat Feb 27, 2021 1:36 pm
Re: Location of systemd conf files for client
Thank you for your answer.TinCanTech wrote: ↑Sat Feb 27, 2021 3:23 pmBecause Ubuntu is still using the wrong systemd unit files.
Where is this wrong file and what is the correct one?
Should we update that website to specify the "Ubuntu exception"?
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Location of systemd conf files for client
Use the version from openvpn repo not ubuntu
-
- OpenVpn Newbie
- Posts: 13
- Joined: Sat Feb 27, 2021 1:36 pm
Re: Location of systemd conf files for client
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.
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.
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Location of systemd conf files for client
I told you; Ubuntu is using old files .. tell them to sort their end out ..
-
- OpenVpn Newbie
- Posts: 13
- Joined: Sat Feb 27, 2021 1:36 pm
Re: Location of systemd conf files for client
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
I suggested ubuntu to update the openvpn version in ubuntu's repos here: https://bugs.launchpad.net/ubuntu/+sour ... ug/1917170
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Location of systemd conf files for client
OK .. That looks good enough for the time being. Thanks 

-
- OpenVpn Newbie
- Posts: 13
- Joined: Sat Feb 27, 2021 1:36 pm
Re: Location of systemd conf files for client
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
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
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Location of systemd conf files for client
Yeah, change takes time ..
But when "They" want something done "Their" way then "They" just push it out and Damn the consequences ..
But when "They" want something done "Their" way then "They" just push it out and Damn the consequences ..