2016-04-19 14:01:55 -04:00
|
|
|
dev tun
|
|
|
|
proto udp
|
|
|
|
port 1194
|
2016-12-04 23:34:08 -05:00
|
|
|
ca /etc/openvpn/easy-rsa/pki/ca.crt
|
|
|
|
cert /etc/openvpn/easy-rsa/pki/issued/server.crt
|
|
|
|
key /etc/openvpn/easy-rsa/pki/private/server.key
|
2017-09-20 22:42:29 -05:00
|
|
|
dh /etc/openvpn/easy-rsa/pki/dh2048.pem
|
2016-12-04 23:34:08 -05:00
|
|
|
topology subnet
|
2016-04-19 14:01:55 -04:00
|
|
|
server 10.8.0.0 255.255.255.0
|
2016-04-20 12:10:06 -04:00
|
|
|
# Set your primary domain name server address for clients
|
2019-12-24 03:23:21 -06:00
|
|
|
push "dhcp-option DNS 9.9.9.9"
|
|
|
|
push "dhcp-option DNS 149.112.112.112"
|
2018-03-17 00:45:15 +01:00
|
|
|
# Prevent DNS leaks on Windows
|
|
|
|
push "block-outside-dns"
|
2016-04-19 14:01:55 -04:00
|
|
|
# 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
|
2020-02-09 18:51:30 +01:00
|
|
|
client-config-dir /etc/openvpn/ccd
|
2019-11-14 17:42:56 +01:00
|
|
|
keepalive 15 120
|
2017-09-22 03:30:14 -05:00
|
|
|
remote-cert-tls client
|
2016-04-26 10:39:18 -04:00
|
|
|
tls-version-min 1.2
|
2016-12-04 23:34:08 -05:00
|
|
|
tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
|
2016-04-23 15:08:14 -04:00
|
|
|
cipher AES-256-CBC
|
|
|
|
auth SHA256
|
2019-12-10 16:06:28 +01:00
|
|
|
user openvpn
|
|
|
|
group openvpn
|
2016-04-19 14:01:55 -04:00
|
|
|
persist-key
|
|
|
|
persist-tun
|
2017-09-22 02:46:52 -05:00
|
|
|
crl-verify /etc/openvpn/crl.pem
|
2016-04-19 14:01:55 -04:00
|
|
|
status /var/log/openvpn-status.log 20
|
2016-12-08 11:43:30 -05:00
|
|
|
status-version 3
|
2018-02-15 10:14:03 +01:00
|
|
|
syslog
|
|
|
|
verb 3
|
2018-03-09 12:18:34 -06:00
|
|
|
#DuplicateCNs allow access control on a less-granular, per user basis.
|
|
|
|
#Remove # if you will manage access by user instead of device.
|
|
|
|
#duplicate-cn
|
2016-12-04 23:34:08 -05:00
|
|
|
# Generated for use by PiVPN.io
|