openvpn/templates/client.ovpn.j2
2020-08-17 11:48:37 +02:00

44 lines
761 B
Django/Jinja
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# alterway - openvpn client configuration
client
dev {{ openvpn_dev }}
proto {{ openvpn_proto) }}
remote {{ openvpn_public_ip }} {{ openvpn_port }}
resolv-retry infinite
nobind
persist-key
persist-tun
ca [inline]
cert [inline]
key [inline]
{% if openvpn_tls_auth is defined and openvpn_tls_auth == "true" %}
tls-auth [inline] 1
{% endif %}
cipher {{ openvpn_cipher }}
auth {{ openvpn_auth }}
tls-cipher {{ openvpn_tls_cipher }}
compress {{ openvpn_compress }}
<ca>
{{ loop_ca }}
</ca>
<cert>
{{ loop_cert }}
</cert>
<key>
{{ loop_key }}
</key>
{% if openvpn_tls_auth is defined and openvpn_tls_auth == "true" %}
<tls-auth>
{{ loop_ta }}
</tls-auth>
{% endif %}