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

This forum is for admins who are looking to build or expand their OpenVPN setup.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
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


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
# Set your primary domain name server address for clients
push "dhcp-option DOMAIN"
push "dhcp-option DNS"
push "dhcp-option DNS"
# Prevent DNS leaks on Windows
push "block-outside-dns"
# Override the Client default gateway by using and
# rather than This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
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
crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
verb 3

User avatar
OpenVPN Protagonist
Posts: 8385
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