[Asterisk-Users] Debuging SIP

Ian Pattison ianp at technologyassociates.ca
Mon May 2 13:03:26 MST 2005


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

-------------- next part --------------
BEGIN:VCARD
VERSION:2.1
FN:Ian Pattison
EMAIL;WORK;PREF:ianp at technologyassociates.ca
TEL;WORK:416-657-2464 ext. 204
N:Pattison;Ian
TITLE:Senior Analyst
ADR;INTL;WORK;PARCEL;POSTAL:;;9052 Creditview Rd.;Brampton;Ontario;L6V 1A1;Canada
LABEL;INTL;WORK;PARCEL;POSTAL;ENCODING=QUOTED-PRINTABLE:Ian Pattison=0A=
9052 Creditview Rd.=0A=
Brampton, Ontario  L6V 1A1=0A=
Canada
LABEL;DOM;WORK;PARCEL;POSTAL;ENCODING=QUOTED-PRINTABLE:Ian Pattison=0A=
9052 Creditview Rd.=0A=
Brampton, Ontario  L6V 1A1
TEL;CELL:416-568-6548
TEL;PREF:416-657-2464 ext. 204
TEL;WORK:905-459-2100 ext. 204
ORG:Technology Associates Inc.
END:VCARD



More information about the asterisk-users mailing list