All of lore.kernel.org
 help / color / mirror / Atom feed
From: Whit Blauvelt <whit@transpect.com>
To: Carlo Florendo <carlo@hq.astra.ph>
Cc: netfilter@lists.netfilter.org
Subject: Re: DNAT from an IP address that does not exist to another that exists
Date: Thu, 7 Aug 2003 08:03:30 -0400	[thread overview]
Message-ID: <20030807120330.GA16731@china.patternbook.com> (raw)
In-Reply-To: <006201c35cb0$e2f396c0$200aa8c0@thorin>

On Thu, Aug 07, 2003 at 02:55:28PM +0800, Carlo Florendo wrote:

> So this means that:     
> 
> iptables -t nat -I POSTROUTING -s 192.168.30.0/24 -d 192.168.30.11 \ -j MASQUERADE  (your solution)
> 
> and 
> 
> iptables -I POSTROUTING -t nat -s 192.168.30.0/24 -o $INTDEV -d \ 
>     192.168.30.11 -j SNAT --to 192.168.30.1 (c/o George Vieira)
> 
> are equivalent (given that 192.168.30.1 is the gateway).

They get you to the same place. But it's said that SNAT is more resource
efficient.

Whit


  reply	other threads:[~2003-08-07 12:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <004e01c35caf$86bd4910$200aa8c0@thorin>
2003-08-07  6:55 ` DNAT from an IP address that does not exist to another that exists Carlo Florendo
2003-08-07 12:03   ` Whit Blauvelt [this message]
2003-07-30  3:48 George Vieira
2003-07-30  4:06 ` Carlo Florendo
  -- strict thread matches above, loose matches on Subject: below --
2003-07-30  3:40 George Vieira
2003-07-30  3:13 Carlo Florendo
2003-07-30  3:09 Carlo Florendo
2003-08-01 15:13 ` Chris Wilson

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=20030807120330.GA16731@china.patternbook.com \
    --to=whit@transpect.com \
    --cc=carlo@hq.astra.ph \
    --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.