[asterisk-users] Allowing peers from specific subnet only

2012-11-19 Thread bilal ghayyad
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

Re: [asterisk-users] Allowing peers from specific subnet only

2012-11-19 Thread Zohair Raza
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

Re: [asterisk-users] Allowing peers from specific subnet only

2012-11-19 Thread Joshua Colp
bilal ghayyad wrote: Hi; Hola, 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

Re: [asterisk-users] Allowing peers from specific subnet only

2012-11-19 Thread Carlos Rojas
Hello In SIP.find you can to use Deny=0.0.0.0/0.0.0.0 Permit=192.168.1.25/255.255.255 Regards On Nov 19, 2012 7:12 AM, bilal ghayyad bilmar...@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 -