Español
Account Login:
Virtual Number:
Password:
| Remember me.
VoIP Provider, Home Phone Service – How VoIP Works InPhonex is a VoIP Provider – Sign Up!
Portuguκs InPhonex Personal Espanol
Welcome
Common Topics
Device Configuration
Knowledgebase
Glossary
Contact Us
Device Configuration Guides
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

Notice regarding support:

In an effort to provide the best possible support, we offer the following options to Trixbox/Asterisk users:

  1. Unlimited, free use of our knowledgebase.
  2. Configuration guides that can assist most customers with the most common Trixbox/Asterisk configurations.
These are the only support options that we provide at this time.

 

 


Our Home Phone Service includes Internet phones with free Internet calling and unlimited US and Canada plans. We offer prepaid phone service and International DID numbers using our voice over IP system and an analog telephone adaptor (ATA). The solutions are designed for home phone service, business phone service, call shops, telemarketing firms and cyber cafes. InPhonex is proud to support Internet telephony equipment (IP Phones) including Sipura 2000, Sipura 3000, Cisco 186, Linksys PAP2 and other SIP phone adaptors. We also support Asterisk PBX, Trixbox and offer turn-key VoIP Reseller business opportunities to let entrepreneurs and businesses resell voice over Internet (VoIP) under their brand name.

Copyright © InPhonex