For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

JN's avatar
JN
Icon for Nimbostratus rankNimbostratus
Apr 11, 2014

logging irule and redirection

Quick question about making an irule. Customer currently has an irule doing web page redirects for certain .com's. There one where it appears not to be working. I suspect a DNS issue, but am trying to do some logging to prove it. I'm a noob on writing them and the syntax so hoping someone can assist.

 

Need something that says: If HTTP_REQUEST from IP 10.10.10.10 then log the clients ip, the destination .com they're going to.

 

I need to see what address they're trying to go to so I can understand why the irule isn't processing it. I notice that the uri only shows after the / So if it's just a plain .com it doesn't show anything after the slash.

 

Thanks

 

2 Replies

  • Emad's avatar
    Emad
    Icon for Cirrostratus rankCirrostratus

    To log IP address and URL being accessed, you can use following irule.

     

    when HTTP_REQUEST { if { [IP::addr [IP::client_addr] equals "10.10.10.10"] } { log local0. "IP [IP::client_addr] requested URL [HTTP::host]" } }

     

    log file would be like: : IP: 10.10.10.10 requested URL www.abc.com