Project

General

Profile

Bug #1456

[openvpn-openrc] Openvpn-openrc init script fails: openvpn.conf not found

graydonhall - about 3 years ago - . Updated about 3 years ago.

Status:
open
Priority:
bug
Assignee:
-
% Done:

0%


Description

Here is my command line output:
[(myusername)@X200 ~]$ sudo service openvpn start
[sudo] password for (myusername):
grep: /etc/openvpn/openvpn.conf: No such file or directory
grep: /etc/openvpn/openvpn.conf: No such file or directory
grep: /etc/openvpn/openvpn.conf: No such file or directory
grep: /etc/openvpn/openvpn.conf: No such file or directory * start-stop-daemon: failed to start `/usr/bin/openvpn' * Check your logs to see why startup failed [ !! ] * ERROR: openvpn failed to start

Clearly there is no "openvpn.conf" installed.
In networkmanager trying to start a saved openvpn configuration understandably tells me that "The VPN connection failed because the service stopped unexpectedly".
Notify me of which log files I should include if nobody else has the same issue, however nothing under /var/log/ has anything more detailed than "the service openvpn failed to start" etc.

History

#1

Updated by graydonhall about 3 years ago

When I run openvpn by itself pointing directly to a config file I also get an error, but this is more specific and it looks like it might be an issue with a kernel module being disabled. Here is the output:

Fri Sep  1 14:25:40 2017 OpenVPN 2.4.3 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jul 24 2017
Fri Sep  1 14:25:40 2017 library versions: OpenSSL 1.1.0f  25 May 2017, LZO 2.10
Fri Sep  1 14:25:40 2017 TCP/UDP: Preserving recently used remote address: [AF_INET]178.162.197.211:4443
Fri Sep  1 14:25:40 2017 UDP link local: (not bound)
Fri Sep  1 14:25:40 2017 UDP link remote: [AF_INET]178.162.197.211:4443
Fri Sep  1 14:25:41 2017 [bviserver] Peer Connection Initiated with [AF_INET]178.162.197.211:4443
Fri Sep  1 14:25:42 2017 Options error: Unrecognized option or missing or extra parameter(s) in [PUSH-OPTIONS]:1: block-outside-dns (2.4.3)
Fri Sep  1 14:25:42 2017 ERROR: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1)
Fri Sep  1 14:25:42 2017 Exiting due to fatal error

I am running a grsec kernel from the kernels repo.
Also just in case it wasn't clear or if this bug gets moved to the base openrc package, I am running an openrc system with the packages in pcr.
Here is a link to the Arch Wiki page which mentions something which resembles this without giving a clear solution (as far as I can tell).
https://wiki.archlinux.org/index.php/OpenVPN#Kernel_configuration

Thanks in advance!

Also available in: Atom PDF