<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Verdana color=#0000ff size=2>No seu gateway estão carregados (ou
built-in) os drivers ip_nat_sip e ip_conntrack_sip?</FONT></DIV>
<DIV><FONT face=Verdana color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#0000ff size=2>sds</FONT></DIV>
<DIV><FONT face=Verdana color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#0000ff size=2>Eric</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=rogerio@realmax.com.br href="mailto:rogerio@realmax.com.br">Fabio
Rogerio</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=asteriskbrasil@listas.asteriskbrasil.org
href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, June 21, 2007 8:05
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [AsteriskBrasil] Asterisk X Nat
- Erro estranho</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Ola pessoal, to enfrentando um problema meio
estranho com um asterisk atras de nat.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>no gw da rede, linux, fiz assim:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>iptables -A INPUT -p udp --destination-port 5060
-j ACCEPT<BR>iptables -A FORWARD -p udp --dport 5060 -d 192.168.0.18 -j
ACCEPT<BR>iptables -A FORWARD -p udp --dport 10000:20000 -d 192.168.0.18 -j
ACCEPT</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>iptables -t nat -A PREROUTING -p udp --dport 5060
-i eth1 -j DNAT --to-destination 192.168.0.18<BR>iptables -t nat -A PREROUTING
-p tcp --dport 5060 -i eth1 -j DNAT --to-destination 192.168.0.18<BR>iptables
-t nat -A PREROUTING -p udp --dport 10000:20000 -i eth1 -j DNAT
--to-destination 192.168.0.18</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>so pra constar o gw é 192.168.0.1 e o asterisk
0.18</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>a sessao general do sip.conf ta assm</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>nat=yes<BR>port=5060<BR>bindaddr=0.0.0.0<BR>externip=fulano.no-ip.org<BR>fromdomain=fulano.no-ip.org<BR>localnet=192.168.0.0/255.255.255.0<BR>qualify=yes<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>qdo eu tento me registrar usando um softphone, eu
registro blz, porem, qdo executo um </FONT></DIV>
<DIV><FONT face=Arial size=2>sip show peers, aparece assim</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>3950/3950
192.168.0.1 D
N 1035 OK (96
ms)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>o meu ip, sendo o ip do gateway... antes
nao era assim, aparecia o meu ip valido.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Eu consigo fazer ligacoes, mais nenhuma lado da
conversa ouve nada.</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>alguma dica?</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>Fabio</FONT></DIV></FONT>
<P>
<HR>
<P></P>----------------------------------------<BR>Ajude a comunidade
AsteriskBrasil.org!<BR>==== Compre uma camiseta! ====<BR>Acesse
www.voipmania.com.br<BR>_______________________________________________<BR>LIsta
de discussões
AsteriskBrasil.org<BR>AsteriskBrasil@listas.asteriskbrasil.org<BR>http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil<BR><BR>_______________________________________________<BR>Acesse
o wiki
AsteriskBrasil.org:<BR>http://www.asteriskbrasil.org</BLOCKQUOTE></BODY></HTML>