暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

client.cnf.j2 625B

123456789101112131415161718192021222324252627282930313233343536
  1. client
  2. dev tun
  3. proto {{ openvpn_protocol }}
  4. remote {{ openvpn_server }} {{ openvpn_port }}
  5. cipher {{ openvpn_cipher }}
  6. auth {{ openvpn_auth_digest }}
  7. resolv-retry infinite
  8. nobind
  9. persist-key
  10. persist-tun
  11. ns-cert-type server
  12. comp-lzo
  13. key-direction 1
  14. verb 3
  15. route {{ ansible_default_ipv4.address }} 255.255.255.255 net_gateway
  16. {{ openvpn_tls_version_min }}
  17. # If you'd like to enable 2FA support, uncomment the following line
  18. ;auth-user-pass
  19. <ca>
  20. {{ openvpn_ca_contents.stdout }}
  21. </ca>
  22. <cert>
  23. {{ item[1].stdout }}
  24. </cert>
  25. <key>
  26. {{ item[2].stdout }}
  27. </key>
  28. <tls-auth>
  29. {{ openvpn_hmac_firewall_contents.stdout }}
  30. </tls-auth>