Forum Discussion
dragonflymr
Jun 09, 2017Cirrostratus
Hi,
First of all there is no way that [IP::remote_addr] can return multiple IPs - just not possible with TCP.
I guess your conclusion is based on the fact that request arriving to the backend host is still containing multiple XFF headers.
Reason is simple, if original request contains multiple XFF headers then HTTP::header replace is just replacing value/s in last XFF header.
Use combination of:
HTTP::header remove X-Forwarded-For
followed by:
HTTP::header insert X-Forwarded-For [IP::remote_addr]
Piotr