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