[OpenSIPS-Users] subnet/range with permission module ?

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue May 25 21:25:07 CEST 2010


Hi Iñaki,

Iñaki Baz Castillo wrote:
> 2010/5/24 Bogdan-Andrei Iancu <bogdan at voice-system.ro>:
>   
>> Hi Julien,
>>
>> the address table has the "mask" field for subnets - it can be from 0
>> (whole internet) to 32 (strict IP matching).
>>     
>
> But take into account a limitation: if two entries have the same
> ip_addr and different mask (both different than 32), this is, two
> subnets, the the result in unexpected as the module just take the
> first subnet (mask < 32) for a given ip_addr. Confirmed by examining
> the module code.
>   
Indeed, that is correct, on the other hand the input data is ambiguous 
(nested subnets).

Regards,
Bogdan


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list