OpenVPN templates: drop windows-driver, tls-client, client user/group
windows-driver was removed in OpenVPN 2.7 and broke clients; add explicit-exit-notify for UDP clients, tidy the server template. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7d6f44c965
commit
d29c261347
5 files changed
+81
-14
No files matched your search
@@ -1,25 +1,19 @@
|
||||
client
|
||||
dev tun
|
||||
windows-driver wintun
|
||||
proto {{ protocol }}
|
||||
remote {{ remote_ip }} {{ port }}
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
{% if protocol == 'udp' %}
|
||||
explicit-exit-notify
|
||||
{% endif %}
|
||||
|
||||
{% 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
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
dev tun
|
||||
proto {{ protocol }}
|
||||
{% if protocol == 'tcp' %}
|
||||
tls-server
|
||||
{% else %}
|
||||
# explicit-exit-notify 1
|
||||
{% if protocol != 'tcp' %}
|
||||
explicit-exit-notify 1
|
||||
{% endif %}
|
||||
port {{ port }}
|
||||
@@ -28,7 +25,6 @@ server {{ vpn_network }} {{ vpn_netmask }}
|
||||
|
||||
ifconfig-pool-persist /etc/openvpn/ipp.txt
|
||||
|
||||
log /var/log/openvpn/openvpn.log
|
||||
log-append /var/log/openvpn/openvpn.log
|
||||
|
||||
verb 3
|
||||
|
||||
Reference in new issue
Block a user