Guest User

OpenVPN Server Config

a guest
Jun 20th, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. port 1194 #- port
  2. proto udp #- protocol
  3. dev tun
  4. tun-mtu 1500
  5. tun-mtu-extra 32
  6. mssfix 1450
  7. reneg-sec 0
  8. ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
  9. cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
  10. key /etc/openvpn/easy-rsa/2.0/keys/server.key
  11. dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
  12. plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login #- Comment this line if you are using FreeRADIUS
  13. #plugin /etc/openvpn/radiusplugin.so /etc/openvpn/radiusplugin.cnf #- Uncomment this line if you are using FreeRADIUS
  14. client-cert-not-required
  15. username-as-common-name
  16. server 10.8.0.0 255.255.255.0
  17. push "redirect-gateway def1"
  18. push "dhcp-option DNS 8.8.8.8"
  19. push "dhcp-option DNS 8.8.4.4"
  20. keepalive 5 30
  21. comp-lzo
  22. persist-key
  23. persist-tun
  24. status 1194.log
  25. verb 3
Add Comment
Please, Sign In to add comment