45 lines
594 B
Django/Jinja
45 lines
594 B
Django/Jinja
client
|
|
dev tun
|
|
windows-driver wintun
|
|
proto {{ protocol }}
|
|
remote {{ remote_ip }} {{ port }}
|
|
resolv-retry infinite
|
|
nobind
|
|
|
|
{% if tun_mtu %}
|
|
tun-mtu {{ tun_mtu }}
|
|
{% endif %}
|
|
user nobody
|
|
group nobody
|
|
persist-key
|
|
persist-tun
|
|
|
|
{% if protocol == 'tcp' %}
|
|
tls-client
|
|
{% else %}
|
|
#tls-client
|
|
{% endif %}
|
|
|
|
mute-replay-warnings
|
|
|
|
remote-cert-tls server
|
|
data-ciphers CHACHA20-POLY1305:AES-256-GCM:AES-256-CBC
|
|
data-ciphers-fallback AES-256-CBC
|
|
auth SHA256
|
|
verb 3
|
|
|
|
key-direction 1
|
|
|
|
<ca>
|
|
{{ ca_cert }}
|
|
</ca>
|
|
<cert>
|
|
{{ client_cert }}
|
|
</cert>
|
|
<key>
|
|
{{ client_key }}
|
|
</key>
|
|
<tls-auth>
|
|
{{ tls_auth }}
|
|
</tls-auth>
|