Asterisk sip permit-deny-mask

Business SIP Providers
Provider Plan Details Monthly Rate *
Vonage Business SIP Trunking
  • One provider & nationwide coverage
  • Easily integrated into your existing infrastructure
  • More uptime, flexibility and disaster recovery options
ClarityTel SIP Trunking Made Clear and Simple
  • Rapid ROI - Flat Rate SIP Pricing
  • Goodbye PRI - No More LD Charges
  • Tier 1 Redundant Network Provider with SLA’s
4 trunk min.
VoIPLy Build your phone system online in 5 minutes
  • Unlimited Business Pro Plan
  • Enterprise Disaster Recovery
  • NO Contracts, NO Trunk Fees

IP address mask for SIP traffic

In a user/peer definition in sip.conf, you may limit SIP traffic to and from this peer to a certain IP or network


permit=<ipaddress>/<network mask>
deny=<ipaddress>/<network mask>

Order Matters! - The last matching rule is the one used. If no rule matches, then the connection is permitted.


Denies traffic from this IP address

Allows traffic from this network

Deny every address except for the only one allowed.

You may have multiple rules for masking traffic. Rules are processed from the first to the last.

See also

  • sip.conf: insecure=

Created by: oej, Last modification: Sun 05 of Aug, 2007 (19:17 UTC) by JustRumours
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+