[Asterisk-Users] Problems connecting to and from my Asterisk
server :(
Moises Silva
moises.silva at gmail.com
Wed Jun 29 17:00:51 MST 2005
i cannot give you guarantee, but this is a shorewall rules file (
popular firewall ) that can give you a clue about what ports need to
be open for Asterisk
#ACTION SOURCE DEST PROTO DEST SOURCE
ORIGINAL RATE USER
# PORT PORT(S)
DEST LIMIT
# IAX2 Outgoing
ACCEPT all all tcp 4569
ACCEPT all all udp 4569
# IAX2 Incoming
ACCEPT all all tcp - 4569
ACCEPT all all udp - 4569
# IAX RTP ports
ACCEPT all all udp 19000:20000
ACCEPT all all udp - 19000:20000
# External SIP phones Signaling (Imcoming and outgoing)
ACCEPT all all tcp - 5060:5120
ACCEPT all all udp - 5060:5120
ACCEPT all all tcp 5060:5120
ACCEPT all all udp 5060:5120
# External SIP phones RTP stream ports (Incoming and outgoing)
ACCEPT all all udp 5000:5060
ACCEPT all all udp - 5000:5060
# IAX1 Outgoing
ACCEPT all all tcp 5036
ACCEPT all all udp 5036
# IAX1 Incoming
ACCEPT all all tcp - 5036
ACCEPT all all udp - 5036
# WWW access from server (To Configure Phones)
ACCEPT all all tcp 80
ACCEPT all all udp 80
# DNS and DHCP
ACCEPT all all tcp 53
ACCEPT all all udp 53
# To access the firewall via SSH2 (Both internally, and externally)
ACCEPT all all tcp 22
ACCEPT all all udp 22
# PING accepting (To keep track of servers from the internet)
ACCEPT net fw icmp -
# NTP server (Both to access it to update local, and to provide the
servie to clients inside and outside the local network)
ACCEPT all all tcp 123
ACCEPT all all udp 123
# DITSCC
ACCEPT all all tcp 3632
ACCEPT all all tcp 3632
The issue with the SIP phones may depend on your LAN configuration. In
fact, NAT can be the problem. SIP does not work very well out of the
box behind NAT, please make a search in google about "sip asterisk
nat" to find out some solutions.
best regards
On 6/29/05, Leo Burd <leob at media.mit.edu> wrote:
> Hello there,
>
> I'm a new Asterisk user and I'm having difficulties to connect to and
> from my Asterisk server. Can anybody give me a hand?
>
> Here's some background information:
> * I'm running RedHat Linux Enterprise 4.0
> * When iptables is stopped, my server can register with IAX service
> providers and receive registrations from IAX softphones. However, it
> does not succeed in registering with SIP servers and does not even
> receive messages of SIP clients trying to register.
> * When iptables is running, nothing can register with my server. Not
> even an IAX softphone such as DIAX. The only way to reach my Asterix
> server is through IAX peers with whom the server has registered itself.
>
> Does anybody have a suggestion or concrete examples of how to proceed?
> I've been struggling with this issue for too many days and I don't know
> what to do...
>
> Thanks in advance,
>
> Leo
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
More information about the asterisk-users
mailing list