On 2014-01-13 06:06, jay binks wrote:
So Im looking at a way of implementing IP Network ACL's in kamailio..
block all except specific subnets etc..
it seems I can do what I need with the IPOps module and is_in_subnet but is_in_subnet will only take 1 CIDR notation subnet, and I want to be able to put ( For example ) 192.168.1.1/24,172.16.10.1/24 [1] in there ... ( or any number of subnets really )
is there a benevolent kamailio developer on the list who is able to add this simple feature for me ?
Perhaps the allow_address family of functions from the permissions module [1] may provide the functionality you need. The address table [2] supports subnet definitions.
-elactrum
-- Sincerely
Jay
Links:
[1] http://kamailio.org/docs/modules/stable/modules/permissions.html [2] http://kamailio.org/docs/db-tables/kamailio-db-devel.html#id1170202288420