You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.conf 939B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Server TCP/443
  2. mode server
  3. proto tcp-server
  4. port %%VPNPORT%%
  5. dev tun
  6. client-to-client
  7. # Keys and certificates
  8. ca /etc/openvpn/%%VPNNAME%%/ca.crt
  9. cert /etc/openvpn/%%VPNNAME%%/server.crt
  10. key /etc/openvpn/%%VPNNAME%%/server.key
  11. dh /etc/openvpn/%%VPNNAME%%/dh1024.pem
  12. tls-auth /etc/openvpn/%%VPNNAME%%/ta.key 1
  13. key-direction 0
  14. cipher AES-256-CBC
  15. crl-verify /etc/openvpn/%%VPNNAME%%/easy-rsa/keys/crl.pem
  16. client-config-dir /etc/openvpn/%%VPNNAME%%/clientsconf
  17. # Network
  18. server %%VPNIPRANGE%% 255.255.255.0
  19. keepalive 10 120
  20. # Uncomment this to redirect client internet traffic trough VPN
  21. # You'll also need to add iptables rules like
  22. # iptables -t nat -s %%internal_subnet%%/24 -A POSTROUTING -j SNAT --to %%out_ip%%
  23. #push "redirect-gateway def1 bypass-dhcp"
  24. # Security
  25. user www-data
  26. group ovpn-manager
  27. persist-key
  28. persist-tun
  29. comp-lzo
  30. # Log
  31. verb 1
  32. mute 20
  33. status /var/vpn/status-%%VPNNAME%%
  34. log-append /var/log/openvpn-%%VPNNAME%%.log