<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<SPAN lang=PT-BR>
<FONT color=#1f497d>Você tem que informar o IP do eth1 que você usa na sua regra</FONT><BR>
<FONT color=#1f497d></FONT> <BR>
<FONT color=#1f497d>eth1=200.xxx.xxx.xxx</FONT><BR>
<FONT color=#1f497d></FONT> <BR>
<FONT color=#1f497d>Ou tenta colocar direto na regra.</FONT><BR>
<FONT color=#1f497d></FONT> <BR><SPAN lang=PT-BR>
<FONT color=#1f497d></FONT> <BR></SPAN>
<SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt" lang=EN-US><FONT color=#1f497d>iptables -t nat -A PREROUTING -p UDP -d 200.xxx.xxx.xxx --dport 10000:20000 -j DNAT --to 192.168.0.5</FONT></SPAN><BR>
<FONT color=#1f497d></FONT></SPAN> <BR>
<FONT color=#1f497d></FONT> <BR>
<FONT color=#1f497d>Abs.</FONT><BR>
<BR><BR><FONT color=#002060><FONT color=#1f497d>Gonçalo Ereno<BR>E-mail: goncalo.ereno@uppercase.com.br <BR>MSN: ilusigon@hotmail.com </FONT><BR><BR></FONT><BR><BR><BR><BR> <BR>
<HR id=stopSpelling>
From: otavio@smartcomputadores.com.br<BR>To: asteriskbrasil@listas.asteriskbrasil.org<BR>Date: Thu, 30 Apr 2009 08:44:58 -0300<BR>Subject: [AsteriskBrasil] RES: Ajuda NAT<BR><BR>
<STYLE>
.ExternalClass .EC_shape
{;}
</STYLE>
<STYLE>
.ExternalClass p.EC_MsoNormal, .ExternalClass li.EC_MsoNormal, .ExternalClass div.EC_MsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass a:link, .ExternalClass span.EC_MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.EC_MsoHyperlinkFollowed
{color:blue;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass span.EC_EstiloDeEmail17
{font-family:Arial;color:navy;}
.ExternalClass span.EC_EstiloDeEmail19
{font-family:Arial;color:navy;}
@page Section1
{size:595.3pt 841.9pt;}
.ExternalClass div.EC_Section1
{page:Section1;}
</STYLE>
<DIV class=EC_Section1>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">IPS internos e externos aonde ??? heheheh</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<DIV>
<DIV style="TEXT-ALIGN: center" class=EC_MsoNormal align=center><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">
<HR align=center SIZE=2 width="100%">
</SPAN></FONT></DIV>
<P class=EC_MsoNormal><B><FONT size=2 face=Tahoma><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt; FONT-WEIGHT: bold">De:</SPAN></FONT></B><FONT size=2 face=Tahoma><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt"> asteriskbrasil-bounces@listas.asteriskbrasil.org [mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org] <B><SPAN style="FONT-WEIGHT: bold">Em nome de </SPAN></B>leonardo<BR><B><SPAN style="FONT-WEIGHT: bold">Enviada em:</SPAN></B> quinta-feira, 30 de abril de 2009 08:37<BR><B><SPAN style="FONT-WEIGHT: bold">Para:</SPAN></B> asteriskbrasil@listas.asteriskbrasil.org<BR><B><SPAN style="FONT-WEIGHT: bold">Assunto:</SPAN></B> Re: [AsteriskBrasil] Ajuda NAT</SPAN></FONT></P></DIV>
<P class=EC_MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT></P>
<DIV>
<P class=EC_MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Vc definiu os ips externos e internos?</SPAN></FONT></P></DIV>
<DIV>
<P class=EC_MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT></P></DIV>
<BLOCKQUOTE style="BORDER-BOTTOM: medium none; BORDER-LEFT: black 1.5pt solid; PADDING-BOTTOM: 0cm; PADDING-LEFT: 4pt; PADDING-RIGHT: 0cm; MARGIN-BOTTOM: 5pt; MARGIN-LEFT: 3.75pt; BORDER-TOP: medium none; MARGIN-RIGHT: 0cm; BORDER-RIGHT: medium none; PADDING-TOP: 0cm">
<DIV>
<P class=EC_MsoNormal><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">----- Original Message ----- </SPAN></FONT></P></DIV>
<DIV style="font-color: black">
<P style="BACKGROUND: #e4e4e4" class=EC_MsoNormal><B><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: bold">From:</SPAN></FONT></B><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> <A title=otavio@smartcomputadores.com.br href="mailto:otavio@smartcomputadores.com.br">Otavio - Smart Computadores</A> </SPAN></FONT></P></DIV>
<DIV>
<P class=EC_MsoNormal><B><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: bold">To:</SPAN></FONT></B><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> <A title=asteriskbrasil@listas.asteriskbrasil.org href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</A> </SPAN></FONT></P></DIV>
<DIV>
<P class=EC_MsoNormal><B><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: bold">Sent:</SPAN></FONT></B><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> Thursday, April 30, 2009 8:21 AM</SPAN></FONT></P></DIV>
<DIV>
<P class=EC_MsoNormal><B><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; FONT-WEIGHT: bold">Subject:</SPAN></FONT></B><FONT size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"> [AsteriskBrasil] Ajuda NAT</SPAN></FONT></P></DIV>
<DIV>
<P class=EC_MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT></P></DIV>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Amigos, vê se alguém me da uma luz ....</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">To com o * atrás de um firewall ... e quando uso algum ramal externo num vai NEM A PORRETE ....</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">A comunicação de ring e outras funções básicas funciona ... porem a voz NÃO VAI ....( na rede interna vai que é uma beleza ) ....</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Já fiz o redirecionamento de TODAS as portas no meu firewall ficou assim:</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt" lang=EN-US>iptables -A INPUT -p UDP -i eth1 --dport 5060 -j ACCEPT</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt" lang=EN-US>iptables -A INPUT -p TCP -i eth1 --dport 5060 -j ACCEPT</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt" lang=EN-US>iptables -A INPUT -p UDP -i eth1 --dport 10000:20000 -j ACCEPT</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt" lang=EN-US>iptables -A INPUT -p UDP -i eth1 --dport 5060:5082 -j ACCEPT</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt" lang=EN-US>iptables -t nat -A PREROUTING -p TCP -i eth1 --dport 5060 -j DNAT --to 192.168.0.5</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt" lang=EN-US>iptables -t nat -A PREROUTING -p UDP -i eth1 --dport 5060 -j DNAT --to 192.168.0.5</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt" lang=EN-US>iptables -t nat -A PREROUTING -p UDP -i eth1 --dport 10000:20000 -j DNAT --to 192.168.0.5</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt" lang=EN-US>iptables -t nat -A PREROUTING -p UDP -i eth1 --dport 5060:5082 -j DNAT --to 192.168.0.5</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt" lang=EN-US>iptables -t nat -A POSTROUTING -p UDP -o eth1 -s 192.168.0.5 -j MASQUERADE</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt" lang=EN-US> </SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">no sip.conf TODOS as extensões estão com o Nat=yes …</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Alguém tem alguma luz pra me dar ?</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Abraço a Todos...</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Otavio – Smart Computadores.</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">F. (14) 3313-6510</SPAN></FONT></P>
<DIV style="TEXT-ALIGN: center" class=EC_MsoNormal align=center><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">
<HR align=center SIZE=2 width="100%">
</SPAN></FONT></DIV>
<P class=EC_MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">_______________________________________________<BR>Openmoko Freerunner, primeiro telefone open source, disponível no Brasil rodando o Android da Google.<BR>http://www.neodroid.com<BR><BR>Compre uma camiseta da AsteriskBrasil.org!<BR>http://www.voipmania.com.br<BR><BR>Acesse o canal IRC de discussão sobre Asterisk em Português Brasileiro na rede Freenode.net: #asterisk-br<BR>_______________________________________________<BR>Lista de discussões AsteriskBrasil.org<BR>AsteriskBrasil@listas.asteriskbrasil.org<BR>http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil </SPAN></FONT></P>
<DIV style="TEXT-ALIGN: center" class=EC_MsoNormal align=center><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">
<HR align=center SIZE=2 width="100%">
</SPAN></FONT></DIV>
<P class=EC_MsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt"><BR>Nenhum vírus encontrado nessa mensagem recebida.<BR>Verificado por AVG - www.avgbrasil.com.br <BR>Versão: 8.0.238 / Banco de dados de vírus: 270.12.9/2087 - Data de Lançamento: 04/29/09 18:03:00</SPAN></FONT></P></BLOCKQUOTE></DIV><br /><hr />Descubra quais produtos Windows Live tem mais a ver com você! <a href='http://www.windowslive.com.br' target='_new'>Faça o teste!</a></body>
</html>