Does particular irule need to be tweaked?

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 } }

it should also work for the uppercase. can you try to add logging before the if sentence?

e.g.

log local0. "URI is [HTTP::uri]"

it should also work for the uppercase. can you try to add logging before the if sentence?

e.g.

log local0. "URI is [HTTP::uri]"

not sure what you mean?

not sure what you mean?

e.g.

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 
  } 
}

e.g.

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 
  } 
}

I’ll do some testing. I take that will show in the log file of what’s happening. Right?

I’ll do some testing. I take that will show in the log file of what’s happening. Right?

correct

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 
  } 
}

correct

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 
  } 
}

True. Thanks for your help. Ill leave it in and see what shows up.

True. Thanks for your help. Ill leave it in and see what shows up.

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?

local0 by default goes to ltm log.

you created a new connection when testing, didn’t you? i mean the change (e.g. the irule) will not be applied to existing connection.

local0 by default goes to ltm log.

you created a new connection when testing, didn’t you? i mean the change (e.g. the irule) will not be applied to existing connection.

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?

You check the ltm log using “tail -f” parameter, right?