[ubuntu-ar] Usar Ubuntu como gateway

Roberto A. Dhios radhios at gmail.com
Sat Apr 19 20:56:38 BST 2008


>
>  iptables -A INPUT -i eth0 -j ACCEPT
>  iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
>  iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to mi.ip.externo
> iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
>
>
> Qué me estoy olvidando? En qué me estoy equivocando? Alguien tiene alguna
> pista al respecto?
>
>

Te falta habilitar el forwarding, tenes que hacer esto:

echo 1 > /proc/sys/net/ipv4/ip_forward  despues de setear las reglas
de iptables.

Saludos
-- 
Roberto A. Dhios (radhios) - Linux Registered User #374352
www.radhios.com.ar - www.roboticar.com.ar - www.flosat.org
GPG Fingerprint: 096C 6AA3 05DC 8E02 000D 3E62 8363 897F 476E B727
In a world without fences and walls, who needs Windows and Gates?



More information about the Ubuntu-ar mailing list