summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-13 14:56:26 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-13 14:56:26 +0100
commit7106e90daf7c15f167f38f7715facef37c141f4f (patch)
tree42d35a62fed0fd74c48422cbea9ae18efa48a2c3
parenta7bee8f8e084c33b0e7aa8d81d1d78997fc763e7 (diff)
downloadvyos-1x-7106e90daf7c15f167f38f7715facef37c141f4f.tar.gz
vyos-1x-7106e90daf7c15f167f38f7715facef37c141f4f.zip
openvpn: T3060: fix CLI to real config mapping for protocol node
-rw-r--r--data/templates/openvpn/server.conf.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/data/templates/openvpn/server.conf.tmpl b/data/templates/openvpn/server.conf.tmpl
index bc4306039..a510c3a84 100644
--- a/data/templates/openvpn/server.conf.tmpl
+++ b/data/templates/openvpn/server.conf.tmpl
@@ -13,7 +13,13 @@ dev-type {{ device_type }}
dev {{ ifname }}
persist-key
iproute /usr/libexec/vyos/system/unpriv-ip
-proto {{ protocol }}
+{% if protocol == 'tcp-active' %}
+proto tcp6-client
+{% elif protocol == 'tcp-passive' %}
+proto tcp6-server
+{% else %}
+proto udp6
+{% endif %}
{% if local_host is defined and local_host is not none %}
local {{ local_host }}
{% endif %}