Error opening configuration file: /etc/openvpn/server.conf

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
Angel0320
OpenVpn Newbie
Posts: 2
Joined: Fri Jan 08, 2021 9:03 pm

Error opening configuration file: /etc/openvpn/server.conf

Post by Angel0320 » Fri Jan 08, 2021 9:07 pm

Why I receive this error on my OpenVPN Server?
Error opening configuration file: /etc/openvpn/server.conf


/etc/openvpn/server.conf

Code: Select all

dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/NASAngel_1835b9c1-cdd7-4c16-93ad-106d9dbe56ef.crt
key /etc/openvpn/easy-rsa/pki/private/NASAngel_1835b9c1-cdd7-4c16-93ad-106d9dbe56ef.key
dh none
ecdh-curve prime256v1
topology subnet
server 10.8.0.0 255.255.255.0
# Set your primary domain name server address for clients
push "dhcp-option DOMAIN domain.xxx"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
# Prevent DNS leaks on Windows
push "block-outside-dns"
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
client-config-dir /etc/openvpn/ccd
keepalive 15 120
remote-cert-tls client
tls-version-min 1.2
tls-crypt /etc/openvpn/easy-rsa/pki/ta.key
cipher AES-256-CBC
auth SHA256
user openvpn
group openvpn
persist-key
persist-tun
crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
syslog
verb 3

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

Re: Error opening configuration file: /etc/openvpn/server.conf

Post by TinCanTech » Fri Jan 08, 2021 9:48 pm


Post Reply