[ubuntu-ar] Usar Ubuntu como gateway

Lucas Cardoso lucasecardoso at gmail.com
Sat Apr 19 21:10:23 BST 2008


2008/4/19 gabriel <elrengo79 at gmail.com>:

> 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
>
> --
> Ubuntu-ar lista de correo
> Ubuntu-ar at lists.ubuntu.com
> Modifica tus opciones o desuscribite en:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ar
> Siempre leer, comprender y aplicar nuestra etiqueta:
> https://wiki.ubuntu.com/ArgentinaTeam/EtiquetaML
>
>
Gracias por lo del port forwarding! Por alguna misteriosa razón, yo YA lo
había hecho eso, pero no estaba funcionando... hay alguna manera de
activarlo por default? En el archivo /etc/sysctl.conf saqué el comment de la
línea "net.ipv4.conf.default.forwarding=1", pero al rebootear seguía estando
desactivado...

Ah, y el resolv.conf ya estaba configurado automáticamente, ya que cuando
estaba instalando Debian en la máquina esa la tenía conectada al cablemódem.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-ar/attachments/20080419/9f0e3059/attachment.htm 


More information about the Ubuntu-ar mailing list