All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars Brinkhoff <lars.spam@nocrew.org>
To: netfilter@lists.netfilter.org
Subject: Re: Translating between local and global IP address
Date: 23 Jan 2003 14:14:48 +0100	[thread overview]
Message-ID: <85iswg9fef.fsf@junk.nocrew.org> (raw)

Rob Sterenborg wrote:
> > I want packets originating from internet to $OUT to be accepted by
> > the gateway and redirected to $IN.  Without the ifconfig, the
> > gateway appears to accept only packets to itself.
> 
> Yes.  The gateway has 2 IP addresses, 1 public ($OUT) and 1 private
> ($IN).

No, I want the gateway to have a public address other than $OUT, and
the private address shouldn't be $IN, because that's what COMPUTER's
address.

Maybe an example help explain what I want.  Say, GATEWAY has public
address 200.1.1.1 and private address 192.168.1.1.  COMPUTER is
connected to the private network and has private address 192.168.1.2.
However, I want to make it appear that COMPUTER exists as a node on
the internet, on the same subnet as GATEWAY.  The public address of
COMPUTER should be 200.1.1.2.  When a packet to 200.1.1.2 reaches
GATEWAY, it should be NAT'ed to 192.1.1.2 and passed to COMPUTER, and
vice versa.

> > I want the gateway to have an IP address of its own, distinct from
> > $OUT.
> 
> I don't see the point in "appearing to come from another IP", because
> reply packets would not reach you anymore (private IP), or you'd have
> asymmetric routing (2nd public IP).

Yes, there is a second public IP.


             reply	other threads:[~2003-01-23 13:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-23 13:14 Lars Brinkhoff [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-01-22 16:45 Translating between local and global IP address Lars Brinkhoff
2003-01-22 20:18 ` Rob Sterenborg
     [not found] <FD8F124A387AD6119F7900A0D218B321562093@hslex01.hslbz.local>
2003-01-22  8:28 ` Rob Sterenborg
2003-01-22  7:17 Lars Brinkhoff

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=85iswg9fef.fsf@junk.nocrew.org \
    --to=lars.spam@nocrew.org \
    --cc=netfilter@lists.netfilter.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.