summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMarcus Hoff <marcus.hoff@ring2.dk>2020-09-22 19:44:24 +0200
committerGitHub <noreply@github.com>2020-09-22 19:44:24 +0200
commitb2c61e2127d83cc0a0e27092462b62c2e8e7eaa1 (patch)
tree2bcf29142ed12494ecb57af8c72c26a3763e4d43 /data
parente7f8285d670829270a82a3ed7e603a6e8791bfe2 (diff)
downloadvyos-1x-b2c61e2127d83cc0a0e27092462b62c2e8e7eaa1.tar.gz
vyos-1x-b2c61e2127d83cc0a0e27092462b62c2e8e7eaa1.zip
openvpn: T2907: add 'none' encryption option to not encrypt any data
Diffstat (limited to 'data')
-rw-r--r--data/templates/openvpn/server.conf.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/openvpn/server.conf.tmpl b/data/templates/openvpn/server.conf.tmpl
index 401f8e04b..8a1ac6bd8 100644
--- a/data/templates/openvpn/server.conf.tmpl
+++ b/data/templates/openvpn/server.conf.tmpl
@@ -196,7 +196,9 @@ tls-server
# Encryption options
{%- if encryption %}
-{% if encryption == 'des' -%}
+{% if encryption == 'none' -%}
+cipher none
+{%- elif encryption == 'des' -%}
cipher des-cbc
{%- elif encryption == '3des' -%}
cipher des-ede3-cbc