All of lore.kernel.org
 help / color / mirror / Atom feed
* how to forward packets to another gateway, if i'm one
@ 2002-12-06 17:28 Saulius Menkevicius
  2002-12-17 14:00 ` Marcello Scacchetti
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Saulius Menkevicius @ 2002-12-06 17:28 UTC (permalink / raw)
  To: netfilter@lists.netfilter.org

Hi,
  I've spend some time searching Google on the topic, however
eventually gave up. So..

  Is there any way of forwarding packets to another gateway, which,
besides, is on the same network. Say, I'm on IP 10.0.0.2, and I act
as a gateway (ADSL, really) for a number of machines on the same LAN.
And there's another such gateway, hooked to another ADSL, which
handles connections for another bunch of machines. Essentially the
hosts 10.0.0.1 and 10.0.0.2 are identic and perform the same
function.

  Now, I want to make some traffic that comes from some client and
that should go through gateway 10.0.0.1 to be forwarded to 10.0.0.2
(without any changes). The need is to make the forwarding transparent
to both 10.0.0.2 and the client.

  So it's the way I suppose it should be done:
	a) No changes to be made 10.0.0.2's firewalling rules (in fact, it
runs FreeBSD);
	b) Make 10.0.0.1 to forward them to 10.0.0.2 transparently.

_This_is_the_culprit_. I don't know how to make them (packets) go
that way. DNAT/SNAT doesn't suit, neither does REDIRECT, as they
modify packets they filter.

	In FreeBSD, there's ipfw rule fwd, e.g. if 10.0.0.1 ran bsd, i'd
type "ipfw add fwd 10.0.0.2 ip from some_client to any". I'm looking
for the a way on how to make the same effect on Linux/iptables.
	Wrote to much of blurb. Guess I didn't mess it up too much :)

	Thanks.
--
Saulius Menkevicius, razzmatazz@mail.lt on 12.06.2002




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-17 16:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-06 17:28 how to forward packets to another gateway, if i'm one Saulius Menkevicius
2002-12-17 14:00 ` Marcello Scacchetti
2002-12-17 15:16 ` Ben Russo
2002-12-17 16:07 ` Andrea Rossato

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.