HomeReseller BenefitsReseller ToolsReseller SolutionsInternational RatesProductsSupportReseller LoginLearn More
Clique aqui para visitor nosso site em Português Contact Us
World Leader in Turn-Key VoIP Solutions VarPhonex helps you start your own VoIP Business for just $199
Support

 

Help Home
Quick Facts
Your Account
Configuration Guides
Troubleshooting
Glossary
Contact Us

 


Learn More

Sample Asterisk Firewall Rules

IPTables

This is an example on how to configure a Linux IPTables firewall for Asterisk:

# SIP on UDP port 5060. Other SIP servers may need TCP port 5060 as well
iptables -A INPUT -p udp -m udp --dport 5004:5082 -j ACCEPT
# IAX2- the IAX protocol
iptables -A INPUT -p udp -m udp --dport 4569 -j ACCEPT
# IAX - most have switched to IAX v2, or ought to
iptables -A INPUT -p udp -m udp --dport 5036 -j ACCEPT
# RTP - the media stream
iptables -A INPUT -p udp -m udp --dport 10000:20000 -j ACCEPT
# MGCP - if you use media gateway control protocol in your configuration
iptables -A INPUT -p udp -m udp --dport 2727 -j ACCEPT



More security

BEWARE: these rules can open the firewall completely. Test them.

# iptables -A INPUT -p tcp --syn -m limit --limit 1/s -j ACCEPT
# iptables -A INPUT -p tcp --syn -j DROP

 

 

   Copyright 2003 - 2008 VarPhonex.com SIP Termination  |  SIP Trunking  |  Join Now  |  Learn More  |  Site Map
Blog   |   Careers   |  About VarPhonex   |  News  |  e911  |  Legal

VarPhonex offers the industry leading VoIP Reseller Program.  We let you sell VoIP in your brand name including Internet phone service, SIP termination, SIP Trunking, International DID numbers and unlimited VoIP plans.  We also offer prepaid phone service using our voice over IP system and an analog telephone adapter, softphone, PBX, Asterisk, Trixbox or other VoIP device which can use a SIP Trunk.  VarPhonex white label VoIP solutions are designed so you can private label our home phone service, business phone service, call shops service and phone service for cyber cafes.  VarPhonex is proud to support Internet telephony equipment including Sipura, Linksys, Cisco, Digium, Grandstream and more.  We offer low cost A to Z rates and provide International VoIP termination along with DID phone numbers for private label resale.
About Us | Services | Support | Reseller Login | Request Pricing | IP Phones and Devices
Free Phone
| Internet Telephony Devices | Calling Plans | Web Phone | Pay as you go calling | VoIP Phone Card