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
|
2016-04-19 18:01:55 +00:00
|
|
|
push "dhcp-option DNS 8.8.8.8"
|
2016-04-23 19:08:14 +00:00
|
|
|
push "dhcp-option DNS 8.8.4.4"
|
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
|
2018-05-09 16:20:13 +00:00
|
|
|
keepalive 1800 3600
|
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
|
2016-04-19 18:01:55 +00:00
|
|
|
user nobody
|
|
|
|
group nogroup
|
|
|
|
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
|