openvpn_client.conf.tpl 941 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # [WARN] Edit this raw configuration ONLY IF YOU KNOW
  2. # what you do!
  3. # [WARN] Continue to use the placeholders <TPL:*> and
  4. # keep update their value on the web admin (they
  5. # are not only used for this file).
  6. remote <TPL:SERVER_NAME>
  7. proto <TPL:PROTO>
  8. port <TPL: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. <TPL:LOGIN_COMMENT>auth-user-pass /etc/openvpn/keys/credentials
  18. # UDP only
  19. <TPL:UDP_COMMENT>explicit-exit-notify
  20. # TLS
  21. tls-client
  22. <TPL: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. <TPL:CERT_COMMENT>cert /etc/openvpn/keys/user.crt
  27. <TPL: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