xoxys.openvpn_client/templates/etc/openvpn/client.conf.j2
Robert Kaussow f9578bd074
Some checks failed
continuous-integration/drone/push Build is failing
initial commit
2020-05-15 10:34:57 +02:00

32 lines
1.0 KiB
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
dev tun
persist-tun
persist-key
cipher {{ openvpn_client_cipher }}
ncp-disable
auth {{ openvpn_client_auth }}
tls-client
client
resolv-retry infinite
remote {{ openvpn_client_server }}
nobind
{% if openvpn_client_x509_name is defined %}
verify-x509-name "{{ openvpn_client_x509_name }}" name
{% endif %}
{% if openvpn_client_ca_file is defined and openvpn_client_ca_source is defined %}
ca /etc/openvpn/certs/{{ openvpn_client_ca_file }}
{% endif %}
{% if openvpn_client_cert_file is defined and openvpn_client_cert_source is defined %}
cert /etc/openvpn/certs/{{ openvpn_client_cert_file }}
{% endif %}
{% if openvpn_client_key_file is defined and openvpn_client_key_source is defined %}
key /etc/openvpn/certs/{{ openvpn_client_key_file }}
{% endif %}
{% if openvpn_client_ta_file is defined and openvpn_client_ta_source is defined %}
tls-auth /etc/openvpn/certs/{{ openvpn_client_ta_file }}
{% endif %}
key-direction 1
remote-cert-tls server
comp-lzo adaptive