[OpenSER-Users] match src_ip
Iñaki Baz Castillo
ibc at aliax.net
Thu Jan 31 16:09:54 CET 2008
El Jueves, 31 de Enero de 2008, Andreas Heise escribió:
> Hi all,
>
> I search for a simple way to match src_ip from 192.168.1.6 - 192.168.1.11.
>
> Any ideas, the following aren't working :-( ...
>
> if(src_ip==192.168.1.[6-11])
> if(src_ip==192.168.1.[6|7|8|9|10|11])
if($si =~ "192.168.1.[6|7|8|9|10|11]")
Regular expressions are matched with =~ instead of ==.
And don't forget " ".
;)
--
Iñaki Baz Castillo
More information about the Users
mailing list