On 5/22/05, Allam Chaves <[EMAIL PROTECTED]> wrote:
> Saludos....
> 
> �Como hago para que todo el trafico que llega a eth1 me lo dirija a la eth0?
> 
> probe algo asi... pero....
> 
> #!/bin/bash
> 
> iptables --flush
> iptables --table nat --flush
> iptables --delete-chain
> iptables --table nat --delete-chain
> 
> 
> 
> iptables -A INPUT -i lo -j ACCEPT
> iptables -I OUTPUT -p tcp -j ACCEPT
> iptables -I OUTPUT -p udp -j ACCEPT
> iptables --table nat --append POSTROUTING --out-interface eth1 -j
> MASQUERADE
> iptables --append FORWARD --in-interface eth0 -j ACCEPT
> 
> 
> echo 1 > /proc/sys/net/ipv4/ip_forward
> 
> 
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 
Tendr�s que dejar pasar el tr�fico en ambois sentidos, aunque sea s�lo
el tr�fico de respuesta de la eth1... aunque depende de para qu� vas a
enrutar el tr�fico.

Prueba a a�adir algo as�
> iptables -A FORWARD -i eth1 -j ACCEPT

Y si te funciona ya vas filtrando lo que quieras.

Responder a