Forum Discussion
iRule assistance
Looks like this iRule you require. condition sequence can be changed based on the preference.
when HTTP_REQUEST { if { !([class match [HTTP::uri] contains api_string])} { discard log local0. "connection DISCARDED from [IP::client_addr]" } elseif { [HTTP::path] starts_with "/resources/" } { pool pool_atldevngn } else { pool pool_atlapipool1 } }
I truly appreciate all the comments and feedback on this post. I think I may have figured it out. Could you check the logic on this irule and let me know if you see any conflicts? Thanks.
when HTTP_REQUEST {
if {[HTTP::path] starts_with "/resources/" } {
pool pool_atldevngn
} elseif { !([class match [HTTP::uri] contains api_string ])} {
discard
log local0. "connection DISCARDED from [IP::client_addr]
} else {
pool pool_atlapipool1
}
}
Recent Discussions
Related Content
* 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