summaryrefslogtreecommitdiff
path: root/data/templates/openvpn
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-14 11:35:42 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-14 11:35:44 +0100
commit9f49458a70f077fff8ac98836ed4e091f65fa221 (patch)
tree3341ac8781a39d6c1fe83f720a02d76ac81c1bb8 /data/templates/openvpn
parent13190431a45b09f9f110718c1036d8f38bbeff4f (diff)
downloadvyos-1x-9f49458a70f077fff8ac98836ed4e091f65fa221.tar.gz
vyos-1x-9f49458a70f077fff8ac98836ed4e091f65fa221.zip
openvpn: T2550: default connection protocol to udp
setting this to udp will allow both IPv4 and IPv6 connections. According to the MAN page: proto indicates the protocol to use when connecting with the remote, and may be "tcp" or "udp". For forcing IPv4 or IPv6 connection suffix tcp or udp with 4/6 like udp4/udp6/tcp4/tcp6.
Diffstat (limited to 'data/templates/openvpn')
-rw-r--r--data/templates/openvpn/server.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/openvpn/server.conf.tmpl b/data/templates/openvpn/server.conf.tmpl
index a510c3a84..1fdf6b848 100644
--- a/data/templates/openvpn/server.conf.tmpl
+++ b/data/templates/openvpn/server.conf.tmpl
@@ -18,7 +18,7 @@ proto tcp6-client
{% elif protocol == 'tcp-passive' %}
proto tcp6-server
{% else %}
-proto udp6
+proto udp
{% endif %}
{% if local_host is defined and local_host is not none %}
local {{ local_host }}