Opened 6 years ago

Last modified 2 years ago

#962 new Bug / Defect

/etc/openvpn does not support symlinks anymore

Reported by: waf Owned by:
Priority: major Milestone:
Component: Generic / unclassified Version:
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc:

Description

/etc/openvpn does not support symlinks anymore. not sure if this in intentional as it used to.

i could not find anything in the change logs referring to symlinks.

Change History (5)

comment:1 Changed 6 years ago by waf

starting with /etc/init.d/openvpn used to work with symlinks in the /etc/openvpn directory. now, it gives a "error opening config file error".

comment:2 Changed 6 years ago by waf

Nov 29 14:18:37 desktop ovpn-client[11986]: SIGTERM[hard,] received, process exiting
Nov 29 14:18:37 desktop ovpn-client[15740]: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/client.conf
Nov 29 14:18:37 desktop ovpn-client[15740]: Use --help for more information.
Nov 29 14:18:37 desktop systemd[1]: openvpn@client.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 14:18:37 desktop systemd[1]: openvpn@client.service: Unit entered failed state.
Nov 29 14:18:37 desktop systemd[1]: openvpn@client.service: Failed with result 'exit-code'.
Nov 29 14:19:07 desktop ovpn-client[16509]: OpenVPN 2.4.3 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jul  3 2017
Nov 29 14:19:07 desktop ovpn-client[16509]: library versions: OpenSSL 1.0.2g  1 Mar 2016, LZO 2.08

comment:3 Changed 6 years ago by waf

this is on version 2.4.3

comment:4 Changed 6 years ago by tct

cc

comment:5 Changed 2 years ago by box913

I landed here from a Google search. I was experiencing a similar issue, but as it turns out, it was not caused by openvpn. The problem was actually caused by systemd sandboxing. Specifically, the systemd ProtectHome?=true setting in the /lib/systemd/system/openvpn@.service file. See the details on the ProtectHome? setting in systemd.exec(5). I had a symlink in /etc/openvpn linking to a file in my /home directory. The solution is change the value of ProtectHome? to "read-only", move the symlink, or don't use a symlink.

Version 0, edited 2 years ago by box913 (next)
Note: See TracTickets for help on using tickets.