Forum Discussion

jmusci_327228's avatar
jmusci_327228
Icon for Nimbostratus rankNimbostratus
Mar 21, 2018

DataGroup and URI

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.

 

1 Reply

  • 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 
        } 
    }