[ubuntu-ar] Usar Ubuntu como gateway

gabriel elrengo79 at gmail.com
Sat Apr 19 21:01:50 BST 2008


Roberto A. Dhios escribió:
>>  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
>   
y acordate de configurar los dns en el resolv.conf de la pc cliente



More information about the Ubuntu-ar mailing list