----- Original Message -----
From: "Nicolas Patik" <nicolas.patik@gmail.com>
To: "LARTC" <lartc@mailman.ds9a.nl>
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/