Forum Discussion
iRule is not working, HTTP::payload ?
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
}
}
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
Recent Discussions
Related Content
* 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