summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-10-19 20:59:03 +0200
committerGitHub <noreply@github.com>2026-10-19 20:59:03 +0200
commit5777c0e5a6abd404fcd72e38dcecf2338fcf5926 (patch)
treedf1e31b354a1f3c896b560cad92569f32903381e /data
parent063dbd32777d83635ac1ca82bc25fbb56bebb035 (diff)
parente18992ca19b64561e873957a4c2590487601f4f5 (diff)
downloadvyos-1x-5777c0e5a6abd404fcd72e38dcecf2338fcf5926.tar.gz
vyos-1x-5777c0e5a6abd404fcd72e38dcecf2338fcf5926.zip
Merge pull request #5529 from ch4nn0n/T9097-haproxy-check-ssl
haproxy: T9097: add ssl checks-only for TLS health checks
Diffstat (limited to 'data')
-rw-r--r--data/templates/load-balancing/haproxy.cfg.j24
1 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/load-balancing/haproxy.cfg.j2 b/data/templates/load-balancing/haproxy.cfg.j2
index 438796cee..9a4ec1fa1 100644
--- a/data/templates/load-balancing/haproxy.cfg.j2
+++ b/data/templates/load-balancing/haproxy.cfg.j2
@@ -252,7 +252,9 @@ backend {{ back }}
{% endfor %}
{% endif %}
{% if back_config.server is vyos_defined %}
-{% set ssl_back = 'ssl ca-file /run/haproxy/' ~ back_config.ssl.ca_certificate ~ '.pem' if back_config.ssl.ca_certificate is vyos_defined else ('ssl verify none' if back_config.ssl.no_verify is vyos_defined else '') %}
+{# With checks-only, TLS is used for health checks but forwarded traffic stays untouched (e.g. TCP passthrough to TLS backends) #}
+{% set ssl_keyword = 'check-ssl' if back_config.ssl.checks_only is vyos_defined else 'ssl' %}
+{% set ssl_back = ssl_keyword ~ ' ca-file /run/haproxy/' ~ back_config.ssl.ca_certificate ~ '.pem' if back_config.ssl.ca_certificate is vyos_defined else (ssl_keyword ~ ' verify none' if back_config.ssl.no_verify is vyos_defined else '') %}
{% for server, server_config in back_config.server.items() %}
{% set address = server_config.address %}
{% set port = server_config.port %}