irule in big-ip ver 9.1.1 don't discard...

Hi all,

I’ve a problem based on an irule working on big-ip version 4.6.4 and not working in 9.1.1.

Here’s a part of the irule:

when HTTP_REQUEST {

if { [HTTP::uri] starts_with “/log” and [IP::addr [IP::remote_addr] equals “10.10.10.199”] } {

use pool poll_8888

}

}

else if { [HTTP::uri] starts_with “/log” } {

discard

}

When I try to open page http://10.10.10.1/log and my IP is not 10.10.10.199 my browser wait about two minutes before go in timeout, while in version 4.6.4 the “time-out” page came out immediately!

Is this a problem of version 9.1.1?

Thanks to all.

Change discard to reject and you should get what you want

I followed your suggest… now is working, even this is the result:

a popup with “Alert - The document contains no data”.

This is a workaround for me because I’d that a page with “error 404” appear immediately…

Thanks a lot.