sandy16
Apr 25, 2016Altostratus
Irule 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 there is a LTM Policy attached that is doing uri-based redirections to different Pools. What should i use instead of "pool default" to allow traffic?
when HTTP_REQUEST {
Check if http_header contains the custom header
if { [HTTP::header exists "Customheader"] and ([HTTP::header "Customeheader"] contains "CF53DD5F68BBFC30DFTG5A31A8A41B8AS") } { pool default
if neither value matches drop traffic
} else { drop } }