Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

Nath's avatar
Nath
Icon for Cirrostratus rankCirrostratus
Jul 24, 2018

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,

 

3 Replies

  • 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..

  • Surgeon's avatar
    Surgeon
    Ret. Employee
    when HTTP_REQUEST {
       log local0.  "X-Forwarded-For: [HTTP::header X-Forwarded-For]"
    }