Re: Override X-Forwarded-Port with send-proxy-v2

2023-10-19 Thread kvaps
My bad, I was testing it on wrong instance. tcp-request content set-dst-port int(80) is working fine :-) Best Regards, Andrei Kvapil On Thu, Oct 19, 2023 at 8:06 PM kvaps wrote: > Hi, > > I run haproxy in non-privileged container, so I can't bind on higher port > eg 80 and

Override X-Forwarded-Port with send-proxy-v2

2023-10-19 Thread kvaps
Hi, I run haproxy in non-privileged container, so I can't bind on higher port eg 80 and 443 Thus I binded it to 8080 and 8443. But kubernetes service listening on normal port: 80 and 443 I use tcp mode with proxy protocol (send-proxy-v2) to preserve the client's real IP and port. On the backend