Irule for Uri and Client IP address.
Hi all,
I want to write irule to check according to both uri and client ip address and here is my test irule ;
when HTTP_REQUEST { if { ([HTTP::uri] contains "/eqwebservice") and ([class match [IP::client_addr] equals allowed_ip_adresses]) } { pool My_443_Pool } else { discard } }
with this rule, if the client' s http uri starts with /eqwebservice and x.x.x.x ip address, should be ok. if the client ip is not on the datagroup, then must be discarded. But, if client request has different service uri like /abc, then should be ok too. At this point, i confused a little bit.
Keep in mind, this service is https and both client and server side is encrypted. So that, i thought this rule must be associate with the https VIP.
Please check the rule and give me some advice,
Good day.