From fc62599f0c3b5bab6dc91a271729f2b45287f8e4 Mon Sep 17 00:00:00 2001 From: Frank Wall Date: Sat, 3 Feb 2018 00:16:26 +0100 Subject: [PATCH] net/haproxy: use PROXY protocol with health checks --- .../opnsense/service/templates/OPNsense/HAProxy/haproxy.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf b/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf index 05293721b..05331a290 100644 --- a/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf +++ b/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf @@ -1056,8 +1056,10 @@ backend {{backend.name}} {# # PROXY protocol #} {% if backend.proxyProtocol|default("") == "v1" %} {% do server_options.append('send-proxy') %} +{% do server_options.append('check-send-proxy') %} {% elif backend.proxyProtocol|default("") == "v2" %} {% do server_options.append('send-proxy-v2') %} +{% do server_options.append('check-send-proxy') %} {% endif %} {# # server advanced options #} {% if server_data.advanced|default("") != "" %}