All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lluís Gili" <tictac@awacat.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] newbie about how to route
Date: Fri, 24 Dec 2004 12:45:37 +0000	[thread overview]
Message-ID: <002201c4e9b6$7a48af40$e00010ac@awacat.com> (raw)
In-Reply-To: <7539d99f0412232139566283fc@mail.gmail.com>


----- 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/

      reply	other threads:[~2004-12-24 12:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-24  5:39 [LARTC] newbie about how to route Nicolas Patik
2004-12-24 12:45 ` Lluís Gili [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002201c4e9b6$7a48af40$e00010ac@awacat.com' \
    --to=tictac@awacat.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.