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

francisluo_3039's avatar
francisluo_3039
Icon for Nimbostratus rankNimbostratus
Feb 07, 2013

GTM ignores two conditions in a irule

Hi there,

 

I have requirement to combine two following conditions in a irule at GTM. The GTM accepted the rule but do not execute the logic.

 

The DNS request should return pool test1's member if the request is from 10.0.0.0/8 and virtual server 10.10.10.8 is up. Even these two conditions are met, but the GTM still does not send test1's IP. No errors at GTM.

 

when DNS_REQUEST {

 

if {{[LB::status vs 10.10.10.8 80] eq "up"} and [IP::addr [ IP::client_addr]/8 equals 10.0.0.0]} {pool test1}

 

}

 

Or:

 

when DNS_REQUEST {

 

if {{[LB::status vs 10.10.10.8 80] eq "up"} && [IP::addr [ IP::client_addr]/8 equals 10.0.0.0]} {pool test1}

 

}

 

Did I do something wrong with about irule at GTM (version 9.3)?

 

Thanks,

 

Hong

 

 

 

 

 

 

 

 

 

 

 

1 Reply

  • Did you get this figured out? I think you have to type in the name of the server followed by the name of the virtual server:

     

    LB::status vs

     

    And you have to use parenthesis to separate your "&&" conditions:

     

    when DNS_REQUEST { if {([LB::status vs ltm-name-1 vs-name-1] eq "up") && ([IP::addr [ IP::client_addr]/8 equals 10.0.0.0])} { pool test1 } }