Advertisement
Odell00

Untitled

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