[Asterisk-Users] Debuging SIP

Anton Krall akrall-lists at intruder.com.mx
Mon May 2 15:19:32 MST 2005


Ian. I have a nat router in front of asterisk and Im forward 5060 and
10000-20000 to the asterisk box.

On the other isde there is also a nat and they have budgetones..

 

|-----Original Message-----
|From: asterisk-users-bounces at lists.digium.com 
|[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
|Ian Pattison
|Sent: Lunes, 02 de Mayo de 2005 03:03 p.m.
|To: asterisk-users at lists.digium.com
|Subject: Re: [Asterisk-Users] Debuging SIP
|
|Are you using IPTables? Here's my IPTables config for SIP and 
|RTP... you need to open UDP ports 5060 and 10000-20000
|
|$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -p udp -m udp --sport 
|5060 --dport 5060 -j ACCEPT $IPTABLES -A FORWARD -i $EXTIF -o 
|$INTIF -p udp -m udp --sport 10000:20000 --dport 10000:20000 
|-j ACCEPT $IPTABLES -A FORWARD -i $INTIF -o $EXTIF -p udp -m 
|udp --sport 5060 --dport 5060 -j ACCEPT $IPTABLES -A FORWARD 
|-i $INTIF -o $EXTIF -p udp -m udp --sport 10000:20000 --dport 
|10000:20000 -j ACCEPT $IPTABLES -t nat -A PREROUTING -i $EXTIF 
|-p udp -m udp -s EXTERNAL_SIP_SOURCE --dport 5060 -j DNAT 
|--to-destination ASTERISK_SERVER $IPTABLES -t nat -A 
|PREROUTING -i $EXTIF -p udp -m udp -s EXTERNAL_SIP_SOURCE 
|--dport 10000:20000 -j DNAT --to-destination ASTERISK_SERVER
|
|Hope this helps,
|
|Ian
|
|Ian Pattison, Senior Analyst
|Technology Associates Inc.
|Tel: 905-459-2100 ext. 204
|Mobile: 416-568-6548
|E-mail: ianp at technologyassociates.ca
|WWW: http://www.technologyassociates.ca
|
|>>> akrall-lists at intruder.com.mx 02/05/2005 14:44 >>>
|Guys.
|
|Im having NAT problems. Any good tips on how to debug remote 
|SIPS, how to see which ports are been sent and received, etc?
|
|
|_______________________________________________
|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
|
|




More information about the asterisk-users mailing list