Forum Discussion

MW1's avatar
MW1
Icon for Cirrus rankCirrus
Jan 22, 2020

match both name and value in datagroup against clientIP and http header

All,

I am trying to write and irule that will inspect HTTP requests and match the client IP and a custom HTTP header value against a datagroup. Is there a way to do this in one check (e.g. [class match [IP::client_addr][string tolower [HTTP::header myheader]] eq my-ip-header-datagroup] ), or do I have to match the IP first and then match the returned value?

 

 

thanks in advance if anyone has any possible example/pointers

1 Reply

  • I should have added the datagroup would be an address type and would have the HTTP header value as the value ie:

    10.1.1.1::= my-header-value