Forum Discussion

rohitbarolia_28's avatar
rohitbarolia_28
Icon for Nimbostratus rankNimbostratus
Mar 20, 2019

Capturing source IP addresses for VIP

Is it possible if we can capture all the source IP that are hitting our VIPs.  
  • Samir_Jha_52506's avatar
    Mar 20, 2019

    Yeah, You can capture client IP address via iRule or X-Forwarded-For.

    For more information go through below F5 Article.

    Option 1: X-Forwarded-For HTTP header K4816

    Option 2: iRule

        when HTTP_REQUEST {
            log local0. "clientIP:[IP::client_addr] accessed [HTTP::host][HTTP::uri]"
          }
    

    Hope your issue will be solved..