2026-01-28 22:37:47 +03:00
|
|
|
client
|
|
|
|
|
dev tun
|
|
|
|
|
proto {{ protocol }}
|
|
|
|
|
remote {{ remote_ip }} {{ port }}
|
|
|
|
|
resolv-retry infinite
|
|
|
|
|
nobind
|
2026-10-07 09:38:09 +03:00
|
|
|
{% if protocol == 'udp' %}
|
|
|
|
|
explicit-exit-notify
|
|
|
|
|
{% endif %}
|
2026-01-28 22:37:47 +03:00
|
|
|
|
|
|
|
|
{% if tun_mtu %}
|
|
|
|
|
tun-mtu {{ tun_mtu }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
persist-key
|
|
|
|
|
persist-tun
|
|
|
|
|
|
|
|
|
|
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>
|