Forum Discussion
johnkrum_45755
Nimbostratus
Mar 20, 2013Check to see if XFF is present, if so don't insert XFF
External users hit a dns entry on a Netscaler in our dmz. That device inserts the XFF and then passes (pass through mode) the data to an F5 internal to our network. What we are looking to do is if th...
johnkrum_45755
Nimbostratus
Mar 25, 2013I was able to test
when HTTP_REQUEST {
insert XFF if it doesn't exist
if {not [HTTP::header exists "X-Forwarded-For"]} {
HTTP::header insert X-Forwarded-For [IP::client_addr]
}
}
today and if I look at the cookie I see both IP addresses inserted. 198.177.94.250 and 10.129.14.248
auroraSSO=266391041180ICONNECTEMPHAGA BILLY https://caregiverconnect.aurora.org198.177.94.250, 10.129.14.2481364235987888AdqO34nrlPBoHQNreOq+OepatfI=
Any adjustments that I can make to have get this to work?
To be more clear -
1) if the connection is internal to our network the request goes directly to the F5 vip and XFF is inserted
2) if the connection is external to our network the request hits a Netscaler which inserts the XFF and the connection is passed on to the F5 VIP
The iRule should see the XFF and not over write or insert a new one.
Thanks
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