Forum Discussion
sandy16
Altostratus
Apr 25, 2016Irule help for a VS without default pool assigned.
Hi experts, need some help in the below irule. Idea is to allow traffic to the VS if there is a custom header in the request. But i found out that there is NO default Pool assigned to the VS since th...
Yann_Desmarest_
Nacreous
Apr 25, 2016Hello,
You can do the following :
when HTTP_REQUEST {
if { [HTTP::header exists "Customheader"] and ([HTTP::header "Customheader"] contains "CF53DD5F68BBFC30DFTG5A31A8A41B8AS") } {
do nothing
} else {
reject
}
}
or you can negate the if condition :
when HTTP_REQUEST {
if { !([HTTP::header exists "Customheader"] and ([HTTP::header "Customheader"] contains "CF53DD5F68BBFC30DFTG5A31A8A41B8AS")) } {
reject
}
}
- Yann_Desmarest_Apr 25, 2016
Nacreous
or you can simply do this directly within your ltm policy
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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