[asterisk-users] Allowing peers from specific subnet only
Zohair Raza
engineerzuhairraza at gmail.com
Mon Nov 19 06:21:21 CST 2012
Hi
You can achieve this with either permit/deny or contactpermit/contactdeny
Single IP should be defined like :
deny=0.0.0.0/0.0.0.0
permit=192.168.2.1/255.255.255.255
And networks in similar way with appropriate subnet mask
deny=0.0.0.0/0.0.0.0
permit=192.168.2.0/255.255.255.0
You can also specify multiple subnets with ';' like:
permit=192.168.2.0/255.255.255.0;192.168.1.0/255.255.255.0
Regards,
Zohair Raza
On Mon, Nov 19, 2012 at 4:12 PM, bilal ghayyad <bilmar_gh at yahoo.com> wrote:
> Hi;
>
> How I can make my configuration to allow the sip phones only from specific
> IP addresses range (for example from 192.168.10.1 - 192.168.10.50) to be
> allowed to connect for asterisk?
>
> In other words, in addition to be authenticated based on the username and
> password, it is required that the IP address of the Phone to be from this
> range. How?
>
> Regards
> Bilal
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121119/b324cd60/attachment.htm>
More information about the asterisk-users
mailing list