Forum Discussion
sandiksk_35282
May 23, 2018Altostratus
can i combine 2 irules together.
We have 3 urls pointing to the a VS on f5.
With 2 urls I need to allow specific IP from the http header ( looking for specific iv remote address),If the IP is in DG allow traffic to the VS if not rej...
youssef1
May 23, 2018Cumulonimbus
Hi,
you can already tests this irule:
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/my/uri1" || [HTTP::uri] starts_with "/my/uri2") && [class match [HTTP::header iv-remote-address] eq "qa" ] } {
condition (uri2 or uri2) and specific IP
} elseif { ([HTTP::uri] starts_with "/my/uri1") && [HTTP::header exists "test"] && [HTTP::header "test"] eq "myValue" } {
condition (uri1) and specific header name + specific header value
} else {
default
}
}
let me now if it's what's you need and keep me update if you need additional info.
Regards
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