From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?Llu=EDs_Gili?= Date: Fri, 24 Dec 2004 12:45:37 +0000 Subject: Re: [LARTC] newbie about how to route Message-Id: <002201c4e9b6$7a48af40$e00010ac@awacat.com> List-Id: References: <7539d99f0412232139566283fc@mail.gmail.com> In-Reply-To: <7539d99f0412232139566283fc@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org ----- Original Message ----- From: "Nicolas Patik" To: "LARTC" Sent: Friday, December 24, 2004 6:39 AM Subject: [LARTC] newbie about how to route > I have 2 linux boxes connected to a switch: > > box1: > eth0 192.168.0.200/255.255.255.0 > eth1 public address from ISP dhcp > > box2: > eth0 192.168.0.35/255.255.255.0 > > box3: > eth0 192.168.1.3/255.255.255.0 Why you don't put box3 into the same ip range of box1? then, the only thing to do is put the default gateway to 192.168.0.200 and do a iptables masquerade from eth0 to eth1 into box1 and enable ip_forward in /etc/network/options > > I want box1 to act as a gateway to the internet > (it is doing this now for box2), > but also want to communicate from box2 to box3 through box1, > and that box3 can use the internet through box1. > > how can I do this? > > TIA, > > --Nicolas > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/