Forum Discussion
ralph_ralf
Altostratus
3 years agocondition irule OR not working
Can somebody help on this. the first irule is working perfectly but when adding OR condition it is not (not working section) . this is working: ---------------------- when HTTP_REQUEST { if { (([...
- 3 years ago
Hi ralph_ralf,
You should use "and" instead of "or" to block requests except these two uri.
when HTTP_REQUEST { if { [IP::client_addr] equals "172.16.37.16" && [HTTP::uri] ne "/evs/ent.msg.evs.ext.Notification_1.0" && [HTTP::uri] ne "/evs/ent.msg.evs.ext.Notification_1.0?wsdl" } { reject } }
3 years ago
Hi ralph_ralf,
You should use "and" instead of "or" to block requests except these two uri.
when HTTP_REQUEST {
if { [IP::client_addr] equals "172.16.37.16" && [HTTP::uri] ne "/evs/ent.msg.evs.ext.Notification_1.0" && [HTTP::uri] ne "/evs/ent.msg.evs.ext.Notification_1.0?wsdl" } {
reject
}
}- ralph_ralf3 years ago
Altostratus
Thabk you so much its working now
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