[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Internal Routing for NAT



Hello Ryan,

I have the same problem, I think this happen because the local connections incomming in the chain FORWARD and don't pass in the chain PREROUTING so they aren't been filtered, but is possible that i'm wrong. 
Someone can help us?
 
Thanks ALL

Henrique

> 
> Hi. I have a NAT setup and working fine using the following settings.
> 
>         $IPTABLES -I PREROUTING  -p tcp -t nat -d 1.2.3.4 --dport 25 -j
> DNAT --to 172.16.1.4:25
>         $IPTABLES -A INPUT -i eth0 -d 1.2.3.4 -p tcp --dport 25 -j ACCEPT
> 
> For some reason when I connect from the local router the connections are not
> being nated. They end up routing to the local machine on port 25. What can I
> do to fix this?
> 
> -Ryan
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-firewall-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 


-- 
Henrique Pedroni Neto
Administrador de Rede - ITAL (http://www.ital.org.br)
E-mail: henrique@ital.org.br
UIN: 8146255
Dúvidas sobre Debian? Visite o Rau-Tu: http://rautu.cipsga.org.br

Attachment: pgpp3jr2bpQBB.pgp
Description: PGP signature


Reply to: