Quantcast
Channel: Active questions tagged openvpn - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 823

Openvpn Options error: In [CMD-LINE]:1: Error opening configuration file: server.conf

$
0
0

I have openvpn set up and I keep getting 3 options errors in the log:

Jun  8 18:28:42 pi systemd[1]: Starting OpenVPN service for server.conf...Jun  8 18:28:42 pi systemd[1]: openvpn@pihole.service: Service RestartSec=5s expired, scheduling restart.Jun  8 18:28:42 pi systemd[1]: openvpn@pihole.service: Scheduled restart job, restart counter is at 6747.Jun  8 18:28:42 pi systemd[1]: openvpn-server@server.service: Service RestartSec=5s expired, scheduling restart.Jun  8 18:28:42 pi systemd[1]: openvpn-server@server.service: Scheduled restart job, restart counter is at 6775.Jun  8 18:28:42 pi systemd[1]: Stopped OpenVPN service for server.Jun  8 18:28:42 pi systemd[1]: Starting OpenVPN service for server...Jun  8 18:28:42 pi systemd[1]: Stopped OpenVPN connection to pihole.Jun  8 18:28:42 pi systemd[1]: Starting OpenVPN connection to pihole...Jun  8 18:28:42 pi openvpn[32201]: Options error: In [CMD-LINE]:1: Error opening configuration file: server.conf.confJun  8 18:28:42 pi openvpn[32201]: Use --help for more information.Jun  8 18:28:42 pi systemd[1]: openvpn-server@server.conf.service: Main process exited, code=exited, status=1/FAILUREJun  8 18:28:42 pi systemd[1]: openvpn-server@server.conf.service: Failed with result 'exit-code'.Jun  8 18:28:42 pi openvpn[32205]: Options error: In [CMD-LINE]:1: Error opening configuration file: server.conf

This is repeated for server.conf, pihole.conf (pihole being the server name), and server.conf.conf. The server starts and I can connect clients to it and traffic is directed to it remotely but these errors keep on repeating again and again and I had no luck with it.

I created conf files for them, both in /etc/openvpn/server/.conf and also in /etc/openvpn/.conf to see if that would do anything but nothing. I enabled them in systemd as well but what is strange is that doing systemctl start openvpn@server works and starts the server but doing systemctl start openvpn-server@server gives an error.

From my understanding, openvpn@server starts all of the servers and reads all of their conf files which may be where the errors are coming from, but I'm not sure if the server files were automatically created when I tried setting up openvpn (took me a few tries my first time). I only need one server running since this is for personal use.

This is the server.conf file in /etc/openvpn/

local 192.168.27.83port 1194proto udpdev tunca /etc/openvpn/server/ca.crtcert /etc/openvpn/server/server.crtkey /etc/openvpn/server/server.keydh /etc/openvpn/server/dh.pemauth SHA512tls-crypt /etc/openvpn/server/tc.keytopology subnetserver 10.8.0.0 255.255.0.0# push "redirect-gateway def1 bypass-dhcp"ifconfig-pool-persist ipp.txt#push "dhcp-option DNS 192.168.1.1"push "dhcp-option DNS 10.8.0.1"keepalive 10 120cipher AES-256-CBCuser nobodygroup nogrouppersist-keypersist-tunstatus openvpn-status.loglog /var/log/openvpn/openvpn.logverb 3crl-verify /etc/openvpn/server/crl.pemexplicit-exit-notify

Any ideas would be greatly appreciated! I have went through many articles about the set up but I can't find much on these errors (besides questions posted here but the accepted solutions didn't work for me sadly).Thanks!


Viewing all articles
Browse latest Browse all 823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>