diff options
author | Alex W <embezzle.dev@proton.me> | 2024-04-29 20:53:51 +0100 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-04-30 06:30:40 +0000 |
commit | ef665adb7e44ef03e7f3e6f2cd1db88315ffcbe1 (patch) | |
tree | 681e917ed2394067e062a69817865688667bd994 /data/templates/ocserv | |
parent | 7edaf47f0f582459d5324da39cd0da0937c30fa9 (diff) | |
download | vyos-1x-ef665adb7e44ef03e7f3e6f2cd1db88315ffcbe1.tar.gz vyos-1x-ef665adb7e44ef03e7f3e6f2cd1db88315ffcbe1.zip |
openconnect: T4982: Support defining minimum TLS version in openconnect VPN
(cherry picked from commit 9ff74d4370f0a5f66c303074796dab8b1ca5c4a5)
Diffstat (limited to 'data/templates/ocserv')
-rw-r--r-- | data/templates/ocserv/ocserv_config.j2 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/data/templates/ocserv/ocserv_config.j2 b/data/templates/ocserv/ocserv_config.j2 index b5e890c32..81f777031 100644 --- a/data/templates/ocserv/ocserv_config.j2 +++ b/data/templates/ocserv/ocserv_config.j2 @@ -61,7 +61,15 @@ keepalive = 300 dpd = 60 mobile-dpd = 300 switch-to-tcp-timeout = 30 +{% if tls_version_min == '1.0' %} tls-priorities = "NORMAL:%SERVER_PRECEDENCE:%COMPAT:-RSA:-VERS-SSL3.0:-ARCFOUR-128" +{% elif tls_version_min == '1.1' %} +tls-priorities = "NORMAL:%SERVER_PRECEDENCE:%COMPAT:-RSA:-VERS-SSL3.0:-ARCFOUR-128:-VERS-TLS1.0" +{% elif tls_version_min == '1.2' %} +tls-priorities = "NORMAL:%SERVER_PRECEDENCE:%COMPAT:-RSA:-VERS-SSL3.0:-ARCFOUR-128:-VERS-TLS1.0:-VERS-TLS1.1" +{% elif tls_version_min == '1.3' %} +tls-priorities = "NORMAL:%SERVER_PRECEDENCE:%COMPAT:-RSA:-VERS-SSL3.0:-ARCFOUR-128:-VERS-TLS1.0:-VERS-TLS1.1:-VERS-TLS1.2" +{% endif %} auth-timeout = 240 idle-timeout = 1200 mobile-idle-timeout = 1800 |