Is it possible to modify the client src address in the proxy protocol
and loop back to haproxy over abns without needing tproxy? I'm hoping
that by encapsulating the usesrc in the proxy protocol I can avoid
needing any type of tproxy setup.

End goal is to ratelimit based on source address that is contained in
a request header.

Config I'm trying which doesn't seem to work is below. The connection
gets through, but the frontend doesn't see a modified source address.

listen test
    bind :80
    mode http
    log global
    source 0.0.0.0 usesrc hdr_ip(x-forwarded-for,-1)
    server http abns@test send-proxy-v

frontend fe
    bind abns@test accept-proxy
    option httplog
    mode http
    log global


Thanks!
Jason

Reply via email to