satish_txt_2254
Mar 15, 2016Cirrus
Multiple X-Forwarded-For ip address
We have enabled X-Forwarded-For on F5 and in apache we have added following code
LogFormat blah...\"user-agent\": \"%{User-agent}i\", \"client\": \"%{X-Forwarded-For}i\",...blah
Now i am doing experiment and sending forge X-Forwarded-For using Modify Header plugin on Chrome browser.
In apache logs i am seeing two IP addresses. like following 123.123.123.123 is fake IP.
"client": "123.123.123.123, 210.76.39.145"
Question: is there a way in apache/F5 LogFormat to extract only last IP address which is valid one?