<!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.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<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></BODY></HTML>