SFTPGo Community with AWS ALB, preserve client IP #2154
-
|
Scope is Web Client. Web client is behind AWS ALB that performs TLS. SFTPGo is serving http only. I would like the actual client public IP to be logged by SFTPGo but only the ALB's private IP is being recorded right now. AWS ALB does not support any proxy modes and uses header X-Forwarded-For (Append) to preserve actual client public IP. SFTPGo doesn't appear to support this method unless you set proxymode = 1, but this understandably generates a Gateway error if turned on. Is there another way, or something I missed that would allow recording actual client IP from web users? I have tried all ways below in httpd |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Unless your LB supports the PROXY protocol, |
Beta Was this translation helpful? Give feedback.
-
|
I think your header depth should be |
Beta Was this translation helpful? Give feedback.
I think your header depth should be
0not1. Its read as an array from right to left with index starting at zero.