Forum Discussion
JIMQ_46966
Nimbostratus
Aug 13, 2008Irule - Destination Based Routing
Hello, I would like to use an Irule to block access from specific subnets. I was wondering what's the correct syntax for the "subnet" parameter. Can you use
"/16" or "255.255.0.0"
...
James_Quinby_46
Aug 15, 2008Historic F5 Account
Why not turn it around? (I'm not in a place where I can test this atm...)
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr]/16 equals 172.22.0.0] and [HTTP::uri] contains "friends" }{
pool friendsandfamily-condodirect-80
}
else {
reject
}
}
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