Created an irule below but it only seems to work for lowercase not uppercase. Do I have to add another line or can it be tweaked to catch anything? “coordinatororporttype”
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains “/wls-wsat/coordinatorporttype” } { log local0. “matched URI [HTTP::uri]” drop } }
when HTTP_REQUEST {
log local0. "URI is [HTTP::uri]"
if { [string tolower [HTTP::uri]] contains "/wls-wsat/coordinatorporttype" } {
log local0. "matched URI [HTTP::uri]"
drop
}
}
when HTTP_REQUEST {
log local0. "URI is [HTTP::uri]"
if { [string tolower [HTTP::uri]] contains "/wls-wsat/coordinatorporttype" } {
log local0. "matched URI [HTTP::uri]"
drop
}
}
if there are many clients, you may add client ip and probably port number to the log. so, it might be easier to find the problem request.
e.g.
when HTTP_REQUEST {
log local0. "client is [IP::client_addr]:[TCP::client_port] URI is [HTTP::uri]"
if { [string tolower [HTTP::uri]] contains "/wls-wsat/coordinatorporttype" } {
log local0. "client is [IP::client_addr]:[TCP::client_port] matched URI [HTTP::uri]"
drop
}
}
if there are many clients, you may add client ip and probably port number to the log. so, it might be easier to find the problem request.
e.g.
when HTTP_REQUEST {
log local0. "client is [IP::client_addr]:[TCP::client_port] URI is [HTTP::uri]"
if { [string tolower [HTTP::uri]] contains "/wls-wsat/coordinatorporttype" } {
log local0. "client is [IP::client_addr]:[TCP::client_port] matched URI [HTTP::uri]"
drop
}
}
I checked the ltm log files and I don’t see any corresponding info regarding the URI rule. I checked in statistics and it shows that Total Executions are rising. Is there another place that it would log to?
I checked the ltm log files and I don’t see any corresponding info regarding the URI rule. I checked in statistics and it shows that Total Executions are rising. Is there another place that it would log to?
I found the logs. Didn’t give it enough time. I do have a question. I see that we are logging the client ip but for some reason it doesn’t up. Any thoughts?
I found the logs. Didn’t give it enough time. I do have a question. I see that we are logging the client ip but for some reason it doesn’t up. Any thoughts?