Forum Discussion
Eric_Frankenfie
Oct 26, 2011Nimbostratus
I just ran another test after modifying the iRule to test the HTTP path, match the IP address in the first list, and log the result. This test was successful. Here is the iRule...
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] contains "/ws/test.asmx" } {
if { ([matchclass [IP::client_addr] equals poolA.AllowList])} {
pool poolA
log local0. "Permitted: [IP::client_addr] --> [HTTP::host][HTTP::uri]"
}
}
For some reason when I try to add the additional conditions the request is sent to the pool defined in the VS and it doesn't appear to be processed by the iRule.
Any suggestions?