mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ole Laursen <olau@cs.aau.dk>
To: linux-kernel@vger.kernel.org
Cc: d507a@cs.aau.dk
Subject: Re: Isolating two network processes on same machine
Date: 25 Nov 2004 12:48:10 +0100	[thread overview]
Message-ID: <tv8fz2yw3np.fsf@homer.cs.aau.dk> (raw)
In-Reply-To: <8783be6604112412397b46c767@mail.gmail.com>

Ross Biro <ross.biro@gmail.com> writes:

> > The problem is that we need to run several instances of our network
> > application on the same test machine since we have too few machines.
> > But when we create two IP addresses on the same machine with
> 
> The easiest solution is probably to have the FreeBSD box DNAT the
> linux boxes so they don't know they are talking to themselves.  Then
> you only need to use 1 ip address per linux box.

Thanks, DNAT seems to be a good solution.

I think we will let the Linux boxes use DNAT to send the packets to
the FreeBSD box and then let that use DNAT to send them back again.
This way we won't have to change our test program, which would be a
bit complicated because the addresses of the peers is an integral part
of the design.

Though it would have been simpler if the kernel supported blindly
forwarding a packet to another host without messing with the IP
destination address, but that does not seem to be the case. It could
have saved us from the double DNAT.

Thanks again,

-- 
Ole Laursen
http://www.cs.aau.dk/~olau/

      reply	other threads:[~2004-11-27  0:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-24 15:10 Ole Laursen
2004-11-24 16:23 ` linux-os
2004-11-24 16:38   ` Lee Revell
2004-11-24 17:06     ` linux-os
2004-11-24 17:12       ` linux-os
2004-11-25 10:44   ` Ole Laursen
2004-11-24 20:39 ` Ross Biro
2004-11-25 11:48   ` Ole Laursen [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=tv8fz2yw3np.fsf@homer.cs.aau.dk \
    --to=olau@cs.aau.dk \
    --cc=d507a@cs.aau.dk \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome