Forum Discussion
Allanwynn_16283
Nimbostratus
Nov 20, 2015irule 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. ...
Hannes_Rapp
Nimbostratus
Nov 20, 2015Something 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
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects