Hi, anyone may help me? I have some error on this rule:
when CLIENT_ACCEPTED { if { [[class match [IP::client_addr] equals DG_POOL_CLIENTI] ne " "] && [ [HTTP::uri] starts_with “/customaaws/customAAInterface”] } then { pool XXXX } else { drop } }
Any suggestions ? Thanks.
I have reformatted your iRule for you, you were using square parenthesis to group each side of the ‘and’. I also removed the ‘ne " "’ as this would not have worked - Please clarify what you intended by this Please try the following:
when HTTP_REQUEST {
if {([class match [IP::client_addr] equals DG_POOL_CLIENTI]) && ([HTTP::uri] starts_with "/customaaws/customAAInterface")} {
pool XXXX
} else {
drop
}
}