Wildcard string in datagroup ???
I am trying to find how to use a wildcard in a data-group of type string. I am using the following irule to reject connections from any other client other than my specific client,
when HTTP_REQUEST { log local0. "[IP::client_addr]:[TCP::client_port]: User-Agent: [HTTP::header "User-Agent"] requested [HTTP::host][HTTP::uri]" if { ![class match [HTTP::header "User-Agent"] contains test]} { log local0. "[IP::client_addr]:[TCP::client_port]: User-Agent:[HTTP::header "User-Agent"] Rejected request" reject } }
The data-group reference in the irule - test - has the value -> OC/15.0.4623.1000 (Microsoft Lync), which is the exact User-agent http-header of my client. But i would like to use a wildcard for the version number in the User-agent so that if the client version changes later i dont have to update the data-group again to add the new User-agent again. I want to use something like "OC/(Microsoft Lync)". But i tried adding "OC/(Microsoft Lync)" in the data-group. But my requests get rejected as i think i am not using the wildcard in the right manner. How to use wildcard in string data-group in this scenario?