diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-11-13 14:56:26 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-11-13 14:56:26 +0100 |
commit | 7106e90daf7c15f167f38f7715facef37c141f4f (patch) | |
tree | 42d35a62fed0fd74c48422cbea9ae18efa48a2c3 /data/templates/openvpn | |
parent | a7bee8f8e084c33b0e7aa8d81d1d78997fc763e7 (diff) | |
download | vyos-1x-7106e90daf7c15f167f38f7715facef37c141f4f.tar.gz vyos-1x-7106e90daf7c15f167f38f7715facef37c141f4f.zip |
openvpn: T3060: fix CLI to real config mapping for protocol node
Diffstat (limited to 'data/templates/openvpn')
-rw-r--r-- | data/templates/openvpn/server.conf.tmpl | 8 |
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 %} |