Forum Discussion
Surya_89113
Nimbostratus
Feb 25, 2010how to get Source IP address
I have a specific ip pool through which i'll access the
vs and i want my pool under the VS to show the ip addres of actual source instead of LB is there any possible irule for that??
Kindly help
- The_Bhattman
Nimbostratus
Hi Surya,when CLIENT_ACCEPTED { log local0. "This is the clients up address [IP::client_addr]" }
- Surya_89113
Nimbostratus
basically i want to store that source ip into a variable so that i can pass it to my web server - The_Bhattman
Nimbostratus
Hi Surya, - hoolio
Cirrostratus
As CB suggests, you can configure LTM to insert the original client IP address it receives in the X-Forwarded-For header. SOL4816 details this and configuring the web server to log this: - Emilio_104473
Nimbostratus
Is there an irule that can insert xff only if one is not present. In other words I don't want to append to an existing x-forwarded-for header. - Hamish
Cirrocumulus
Just insert a quick check before doing the addition of a header to see if it already exists...
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects