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"
...
JIMQ_46966
Nimbostratus
Aug 15, 2008Thanks for responding. I would like to clarify what I am trying to accomplish. I have to allow only certain networks to the following URL "friendsandfamily.condodirect.com". I have to block all others or send to static page indicating they are not allowed to hit this site.
Example, (obviously it doesn't like "not")
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr]/16 not equals 172.22.0.0] and [HTTP::uri] contains "friends" } {
reject
}
else {
pool friendsandfamily-condodirect-80
}
}
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