Forum Discussion
JMart_143192
Nimbostratus
Jul 30, 2015HELP - iRule for send the real source IP and nationality on the header
Hello everyone.
I'm needing help with make an iRule for send the source IP and nationality on the header to my backend servers.
I think that this iRule works for send the real source IP address o...
Arie
Altostratus
Jul 30, 2015Although the iRule should work for inserting the XFF-header I would recommend using the built-in feature for this:
Local Traffic >> Profiles : Services : HTTP >>
There's an option called "Insert X-Forwarded-For" you can enable.
As for the country code, this can be done with the whereis command. wiki page
However, it would be a violation of the Term of Use to make that information available 'off-box' (e.g. by relaying it to a back-end server). For that use-case you will need to purchase a license directly from the geo-location data provider.
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