diff options
author | Marcus Hoff <marcus.hoff@ring2.dk> | 2020-09-22 19:44:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 19:44:55 +0200 |
commit | 92edd930c49b63247dbbcc370c9f93b3456cb855 (patch) | |
tree | f34d90fe8df0c8260c7ed2161b9fe6974f962dbe /data | |
parent | b2c61e2127d83cc0a0e27092462b62c2e8e7eaa1 (diff) | |
download | vyos-1x-92edd930c49b63247dbbcc370c9f93b3456cb855.tar.gz vyos-1x-92edd930c49b63247dbbcc370c9f93b3456cb855.zip |
openvpn: T2906: tls-auth missing key direction
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/openvpn/server.conf.tmpl | 6 |
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 %} |