Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. dev tun
  2. proto tcp
  3. port 443
  4. ca /etc/openvpn/easy-rsa/pki/ca.crt
  5. cert /etc/openvpn/easy-rsa/pki/issued/server_XXX.crt
  6. key /etc/openvpn/easy-rsa/pki/private/server_XXX.key
  7. dh /etc/openvpn/easy-rsa/pki/dh2048.pem
  8. topology subnet
  9. server 10.8.0.0 255.255.255.0
  10. # Set your primary domain name server address for clients
  11. #push "dhcp-option DNS 44.45.46.76"
  12. #push "dhcp-option DNS 8.8.4.4"
  13. # Prevent DNS leaks on Windows
  14. # push "block-outside-dns"
  15. # Override the Client default gateway by using 0.0.0.0/1 and
  16. # 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
  17. # overriding but not wiping out the original default gateway.
  18. push "redirect-gateway def1"
  19. client-to-client
  20. keepalive 10 120
  21. remote-cert-tls client
  22. tls-version-min 1.2
  23. tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
  24. cipher AES-256-CBC
  25. auth SHA256
  26. comp-lzo
  27. user nobody
  28. group nogroup
  29. persist-key
  30. persist-tun
  31. crl-verify /etc/openvpn/crl.pem
  32. status /var/log/openvpn-status.log 20
  33. status-version 3
  34. syslog
  35. verb 3
  36. #DuplicateCNs allow access control on a less-granular, per user basis.
  37. #Remove # if you will manage access by user instead of device.
  38. #duplicate-cn
  39. # Generated for use by PiVPN.io
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement