[Asterisk-Users] Permit/Deny function question
Patrick
asterisk at puzzled.xs4all.nl
Thu May 25 05:32:04 MST 2006
On Thu, 2006-05-25 at 00:44 -0400, 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
You need to add a netmask to the permit line too. Try
permit=123.123.123.123/255.255.255.0 or whatever netmask you need.
Regards,
Patrick
More information about the asterisk-users
mailing list