diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-30 08:29:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 08:29:28 +0200 |
commit | a107a93ca1cf3b8b9b9223319d91e1741414fd40 (patch) | |
tree | 091f3049b59eda617ad1879f158bb8bd4f4ec60d /data | |
parent | 08115436b454fff8bed09129963a04d1b1411227 (diff) | |
parent | 9ff74d4370f0a5f66c303074796dab8b1ca5c4a5 (diff) | |
download | vyos-1x-a107a93ca1cf3b8b9b9223319d91e1741414fd40.tar.gz vyos-1x-a107a93ca1cf3b8b9b9223319d91e1741414fd40.zip |
Merge pull request #3371 from Embezzle/T4982
openconnect: T4982: Support defining minimum TLS version in openconnect VPN
Diffstat (limited to 'data')
-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 |