summaryrefslogtreecommitdiff
path: root/data/templates/openvpn
diff options
context:
space:
mode:
authorMarcus Hoff <marcus.hoff@ring2.dk>2020-09-22 19:44:55 +0200
committerGitHub <noreply@github.com>2020-09-22 19:44:55 +0200
commit92edd930c49b63247dbbcc370c9f93b3456cb855 (patch)
treef34d90fe8df0c8260c7ed2161b9fe6974f962dbe /data/templates/openvpn
parentb2c61e2127d83cc0a0e27092462b62c2e8e7eaa1 (diff)
downloadvyos-1x-92edd930c49b63247dbbcc370c9f93b3456cb855.tar.gz
vyos-1x-92edd930c49b63247dbbcc370c9f93b3456cb855.zip
openvpn: T2906: tls-auth missing key direction
Diffstat (limited to 'data/templates/openvpn')
-rw-r--r--data/templates/openvpn/server.conf.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/templates/openvpn/server.conf.tmpl b/data/templates/openvpn/server.conf.tmpl
index 8a1ac6bd8..fea310236 100644
--- a/data/templates/openvpn/server.conf.tmpl
+++ b/data/templates/openvpn/server.conf.tmpl
@@ -181,7 +181,11 @@ dh {{ tls_dh }}
{%- endif %}
{%- if tls_auth %}
-tls-auth {{tls_auth}}
+{%- if mode == 'client' %}
+tls-auth {{tls_auth}} 1
+{%- elif mode == 'server' %}
+tls-auth {{tls_auth}} 0
+{%- endif %}
{%- endif %}
{%- if tls_role %}