Replies: 1 comment
-
Hi @sairus2k By default we can set this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
When services are deployed behind HAProxy, the original client IP address is lost and replaced with HAProxy's local address. This creates problems for services that depend on the client's real IP address, such as SMTP servers performing SPF checks.
Proposed solution
Implement PROXY protocol support for TCP ingress rules by:
Use proxy protocol
option when creating TCP ingress rulesFor detailed information about the PROXY protocol, refer to the HAProxy documentation.
Current workaround
While it's possible to manually add the
send-proxy
option to the backend of the application in/var/lib/swiftwave/haproxy/haproxy.cfg
, this is not ideal as the file is generated and so it may be overwritten during updates.Example logs
Without PROXY protocol
[2025-02-15 15:52:30] INFO [#77ly6prphqq4hjnt] Connection from swiftwave_haproxy.wxlgfc5ojgvee0gktdcnyco33.ir6mcm2iqm8a1ql4gv464jqll.swiftwave_network
With PROXY protocol enabled using the
send-proxy
optionAs shown in the logs, enabling the PROXY protocol helps maintain the original client information, which is crucial for proper service functionality.
Beta Was this translation helpful? Give feedback.
All reactions