Forum Discussion
netmaster_59599
Nimbostratus
Jan 21, 2010Discard packet with source ip address on one pool
I am new in iRules so I need help.
Ok I have two sets of proxy servers.
First set of proxy servers are defined as pool X, and another as pool Y.
Currently ...
hoolio
Cirrostratus
Jan 21, 2010Hi,
Here is an example to get you started:
when CLIENT_ACCEPTED {
Check if client is part of 172.16.0.0/16 network
if {[IP::addr [IP::client_addr] equals 172.16.0.0/16]}{
IP matched, so select pool_X
pool pool_X
Prevent the HTTP_REQUEST event from firing
event HTTP_REQUEST disable
}
}
when HTTP_REQUEST {
Check the requested URI
switch -glob [HTTP::uri] {
"/http_uri1" -
"/http_uri2" -
"/http_uri3" {
Matched URI check so use pool_X
pool pool_X
}
default {
pool pool_Y
}
}
}
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