Forum Discussion
HELP - iRule for send the real source IP and nationality on the header
Although 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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