Advertisement
Guest User

server conf

a guest
Jul 16th, 2017
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. dev tun
  2. proto udp
  3. port 1194
  4.  
  5. push "redirect-gateway def1"
  6. push "redirect-gateway local def1"
  7.  
  8. sndbuf 393216
  9. rcvbuf 393216
  10. push "sndbuf 393216"
  11. push "rcvbuf 393216"
  12.  
  13. ca /etc/openvpn/easy-rsa/pki/ca.crt
  14. cert /etc/openvpn/easy-rsa/pki/issued/server.crt
  15. key /etc/openvpn/easy-rsa/pki/private/server.key
  16. dh /etc/openvpn/easy-rsa/pki/dh2048.pem
  17.  
  18. topology subnet
  19. server 10.8.0.0 255.255.255.0
  20. # server and remote endpoints
  21. ifconfig 10.8.0.1 10.8.0.2
  22. # Add route to Client routing table for the OpenVPN Server
  23. push "route 10.8.0.1 255.255.255.255"
  24. # Add route to Client routing table for the OPenVPN Subnet
  25. push "route 10.8.0.0 255.255.255.0"
  26. # your local subnet
  27. push "route 192.168.1.0 255.255.255.0"
  28. # Set your primary domain name server address for clients
  29. push "dhcp-option DNS 8.8.8.8"
  30. push "dhcp-option DNS 8.8.4.4"
  31. # Override the Client default gateway by using 0.0.0.0/1 and
  32. # 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
  33. client-to-client
  34. duplicate-cn
  35. keepalive 10 120
  36. tls-version-min 1.2
  37. tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
  38. cipher AES-256-CBC
  39. auth SHA256
  40. comp-lzo
  41. user nobody
  42. group nogroup
  43. persist-key
  44. persist-tun
  45. crl-verify /etc/openvpn/crl.pem
  46. status /var/log/openvpn-status.log 20
  47. status-version 3
  48. log /var/log/openvpn.log
  49. verb 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement