I need to (temporarily) chain HAProxies (HAP A has connection issues with some backends)
HAP A → HAP B → backends
in HAP B, this works:
Blockquote
bind *:8080 accept-proxy
acl lb src <ip>
acl lb src <ip>
tcp-request connection accept if lb
tcp-request connection expect-proxy layer4 if lb
tcp-request connection reject
Blockquote
But the expect-proxy line (without the accept line), does not work with or without accept-proxy in the bind line.
Reading the docs, I expected the combination expect-proxy without accept-proxy to work. Is there a correct way?
Thanks,
Gerardo