cancel
Showing results for 
Search instead for 
Did you mean: 

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

MW1
Cirrus
Cirrus

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 1

MW1
Cirrus
Cirrus

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