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

sandiksk_35282's avatar
sandiksk_35282
Icon for Altostratus rankAltostratus
Oct 28, 2015

need help with an irule

I have a source that need to be always directed to a particular server behind the pool.configured an irule and its working as expected

 

when CLIENT_ACCEPTED { if { [IP::client_addr] == "192.168.10.6" } { pool app_prd_pool member 10.12.15.13 443 } }

 

Now I need to add another source 192.168.10.7 to access the same pool member (10.12.15.13 ),please let me know how I can do this.

 

4 Replies

  • Hi Mate,

    You can use the class for add multiple IP addresses in the irule for the same results so that in future if you want to add more addresses you can add it in the class without making changes in irule.

    For example:

    class custom_bypass_group_class {
        host 192.168.10.6
        host 192.168.10.7
        }
    
    when CLIENT_ACCEPTED {
        if { [class match [IP::client_addr] equals custom_bypass_group_class] }
        {
          pool app_prd_pool member 10.12.15.13 443
        }
        }
    

    -Jinshu

  • Jinshu thanks for your response , in the GUI where exactly I need to create the class.Please let me know

     

    • Jinshu's avatar
      Jinshu
      Icon for Cirrus rankCirrus
      Yes.. Thats right. in GUI it is called data-group.. Class and data group are of same. Sorry for the confusion.