Re: [OT] Re: Linux MTU??

From: P.T. Breuer (ptb_at_oboe.it.uc3m.es)
Date: 08/15/04


Date: Sun, 15 Aug 2004 20:44:32 +0200

Michael Hearne <here@home.us> wrote:
> I have my network up, *and* I have modem connections for all my
> machines. However, I still don't have Internet Connection Sharing. I'm
> going to start a new thread after I send this, Subject = LAN/Modem
> Internet Connection Sharing, and I need your help.

See the IP-Masquerade HOWTO. Essentially you set the kernel to forward
packets to all interfaces (in principle) via

   /proc/sys/net/ipv4/ip_forward

and then you add a iptables rule like:

  iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

(change ppp0 for whatever interface is your WAN outlet).

There should be a button to click in your distros management tool to do
that for you.

Thereafter you can set that machine as the gateway for your other
machines.

Peter


Loading