* [LARTC] newbie about how to route
@ 2004-12-24 5:39 Nicolas Patik
2004-12-24 12:45 ` Lluís Gili
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Patik @ 2004-12-24 5:39 UTC (permalink / raw)
To: lartc
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
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] newbie about how to route
2004-12-24 5:39 [LARTC] newbie about how to route Nicolas Patik
@ 2004-12-24 12:45 ` Lluís Gili
0 siblings, 0 replies; 2+ messages in thread
From: Lluís Gili @ 2004-12-24 12:45 UTC (permalink / raw)
To: lartc
----- 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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-24 12:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-24 5:39 [LARTC] newbie about how to route Nicolas Patik
2004-12-24 12:45 ` Lluís Gili
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.