Forum Discussion
vvskaladhar_488
Nimbostratus
Sep 10, 2013Irule for inserting client Ip information
. I need a help for solving an issue I am facing here.
We have VIP configured with SNATAUTO map for the Service 7501 to load balance LDAP servers. But As per the project requirement Application...
jgranieri
Nimbostratus
Sep 11, 2013You can add an irule to insert the client source IP either via a cookie insert or using a X-Forwarded-For header... some quick examples below
Code when HTTP_REQUEST {
HTTP::header insert X-Forwarded-For [IP::client_addr]
log local0. "Client IP: [IP::client_addr]"}
or
Code when HTTP_REQUEST {
Insert a cookie named CUSTOMER_IP with the client IP address as a value
HTTP::cookie insert name CUSTOMER_IP value [IP::client_addr]
}I tested both and they work fine with SNAT configured
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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