openvpn_client.conf.tpl 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # [WARN] Edit this raw configuration ONLY IF YOU KNOW
  2. # what you do!
  3. # [WARN] Continue to use the placeholders and
  4. # keep update their value on the web admin (they
  5. # are not only used for this file).
  6. remote __SERVER_NAME__
  7. proto __SERVER_PROTO__
  8. port __SERVER_PORT__
  9. pull
  10. nobind
  11. dev tun
  12. tun-ipv6
  13. keepalive 10 30
  14. comp-lzo adaptive
  15. resolv-retry infinite
  16. # Authentication by login
  17. __LOGIN_COMMENT__auth-user-pass /etc/openvpn/keys/credentials
  18. # UDP only
  19. __UDP_COMMENT__explicit-exit-notify
  20. # TLS
  21. tls-client
  22. __TA_COMMENT__tls-auth /etc/openvpn/keys/user_ta.key 1
  23. remote-cert-tls server
  24. ns-cert-type server
  25. ca /etc/openvpn/keys/ca-server.crt
  26. __CERT_COMMENT__cert /etc/openvpn/keys/user.crt
  27. __CERT_COMMENT__key /etc/openvpn/keys/user.key
  28. # Logs
  29. verb 3
  30. mute 5
  31. status /var/log/openvpn-client.status
  32. log-append /var/log/openvpn-client.log
  33. # Routing
  34. route-ipv6 2000::/3
  35. redirect-gateway def1 bypass-dhcp
  36. script-security 2
  37. route-up "/etc/openvpn/scripts/run-parts.sh route-up"
  38. down "/etc/openvpn/scripts/run-parts.sh route-down"