Forum Discussion

Allanwynn_16283's avatar
Allanwynn_16283
Icon for Nimbostratus rankNimbostratus
Nov 20, 2015

irule to use datagroup

Hi Everyone,

 

I have created a datagroup under Local Traffic > iRule > Data Group List, it contains network IP, the problem is I don't know how to use it on an iRule? Can anyone give an example.

 

1 Reply

  • Something simple for your reference

    when CLIENT_ACCEPTED {
    
      Comparing a customer source IP to a list of entries in a LTM data-group.
     if { [class match [IP::remote_addr] equals data_SourceIps ] } {
       pool my_pool1
     } else {
       pool my_pool2
     }
    
    }