[Asterisk-Users] Permit/Deny function question

Rich Adamson radamson at routers.com
Thu May 25 05:28:05 MST 2006


Kevin Kiely wrote:
> I am trying to limit IAX connectivity to a server with the permit/deny
> combination.  In this example to allow ip 123.123.123.123 but it's not
> working.  If I remove the mask on the deny parameter it allows all
> hosts.  With the deny statement like below it blocks all connections
> even using a mask or no mask with the permit IP.  What am I missing?
> 
> 
> 
> allow=all
> context=from-external
> secret=sample
> type=user
> deny=0.0.0.0/0.0.0.0
> permit=123.123.123.123

The above should be written something like:
deny=0.0.0.0/0.0.0.0
permit=123.123.123.123/255.255.255.0

R.






More information about the asterisk-users mailing list