Forum Discussion
Bob_Olson_10988
Nimbostratus
Nov 16, 2007Restrict access to nodes in a pool after pool is selected.
Hello;
I'm extremely new to iRules and am doing my best at teaching myself. These forums are a huge help. I've been asked to come up with something that I'm not sure is even possible.
...
Bob_Olson_10988
Nimbostratus
Nov 19, 2007Thanks for your input Denny. Your input gave me an idea. I've modified the rule to look like this:
when HTTP_REQUEST {
After the client connects, inspect the payload and look for MUULTICARD_AUTH.
if { [findstr [HTTP::payload] " If the string is found then send a log stating that and send it to pool with Tibco servers in it.
log local0. "MULTICARD_AUTH Found sending request to TIBCO Server."
pool soaq-ccauth
If the string isn't found then we direct them to a pool of nothing but Webmethods servers in it.
} else {
log local0. "String not found sending to Webmethods only pool."
pool wbomxrealq_5080
}
}
when LB_SELECTED {
if { [matchclass [LB::server addr] equals $::tibco_servers ]} {
log local0. "Sent to Tibco." } {
if {not [matchclass [IP::client_addr] equals $::tibco_datagroup]} {
drop
log local0. "Dropping client" }
}
}
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