Forum Discussion
Nath
Jul 24, 2018Cirrostratus
iRule to extract XFF IP address in HTTP Packet
Hi do you have any idea how I can extract XFF IP address in a packet using iRule or in LTM.
Thanks,
- Samir_Jha_52506Noctilucent
There is an iRule to extract client IP address.
when HTTP_REQUEST { HTTP::header insert X-Forwarded-For [IP::remote_addr] }
Go through f5 article K4816
Hope it will help you..
- SurgeonRet. Employee
when HTTP_REQUEST { log local0. "X-Forwarded-For: [HTTP::header X-Forwarded-For]" }
- Andy_McGrathCumulonimbus
Take at look at the following code snippet XFF Universal Persistence iRule.
It is for persistence but you can change from persist to log or anything else you want to do with the XFF header data.
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