cancel
Showing results for 
Search instead for 
Did you mean: 

iRule is not working, HTTP::payload ?

AFay1z
Nimbostratus
Nimbostratus

Am trying to check http traffic if it has a specified string, and pass it, or block it if not.

but this traffic is confined to one network.

 

this is the iRule:

 

when HTTP_REQUEST

{

 if { [IP::addr [IP::client_addr] equals 10.0.0.0/24] }

{

 HTTP::collect 20

   set HTTP::payload [string tolower HTTP::payload]

      if { not ( [HTTP::payload] contains "ivrTransactionID" )}

        { reject }

        HTTP::release

}

}

 

1 REPLY 1

boneyard
MVP
MVP

you should call the HTTP::payload in another event, see the example here:

 

https://clouddocs.f5.com/api/irules/HTTP_REQUEST_DATA.html

 

and do read the warnings about multiple iRules and trying this after redirect

 

look at your /var/log/ltm for possible errors