Forum Discussion
smp_86112
Dec 14, 2010Cirrostratus
Matching Client IP to Network List in Data Group
I have this requirement to decide if the client IP address is in a list of IP networks. The IP networks are in a Data Group. This is the IF statement:
if { not ([ class match [IP::remote_addr] equ...
hoolio
Dec 14, 2010Cirrostratus
Yeah, this seems to work in a simple test on 10.2.x without route domains:
when RULE_INIT {
log local0. "\[class get address_group\]: [class get address_group]"
log local0. "\[class match 172.22.104.0 equals address_group\]: [class match 172.22.104.0 equals address_group]"
}
: [class get address_group]: 172.16.0.0/12 {}
: [class match 172.22.104.0 equals address_group]: 1
Aaron
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