All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Hervé Eychenne" <rv@wallfire.org>
To: Larry Stephan <jlarry@delanet.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Static NAT Ranges?
Date: Fri, 31 Jan 2003 17:04:02 +0100	[thread overview]
Message-ID: <20030131160402.GG956@comet.rv-int> (raw)
In-Reply-To: <200301250439.XAA31445@delanet.COM>

On Fri, Jan 24, 2003 at 11:39:58PM -0500, Larry Stephan wrote:

 Hi,

> I have worked both with netfilter (from ipfwadm through iptables) and with
> some commercial firewall packages.  I must say that netfilter is a remarkably
> capable system.  However, one feature which appears to be lacking is a
> convenient way to NAT address ranges statically: that is, for a given range
> of addresses, the NATted address would always differ from the original
> address by the same fixed amount. This is handy for fixing certain routing
> problems, as well as for changing ranges of address that may cause a
> conflict to more acceptable ranges, a not infrequent problem when different
> organizations establish dedicated network links.  I have attempted to find
> something like this on the netfilter web site, but (perhaps I missed
> something) I found nothing.
> 
> I was thinking that a --static option to SNAT and DNAT might do the trick.
> For example, (line broken because it doesn't fit well):
> 
> iptables -s 5.6.7.0/25 -t nat -A POSTROUTING 
> -o eth0 -j SNAT --static --to 1.2.3.64
> 
> would map 5.6.7.1 to 1.2.3.65, 5.6.7.2 to 1.2.3.66,...,5.6.7.126 to 1.2.3.190

I suppose you are looking for the NETMAP target, available in p-o-m.

Now I have a question for the coreteam... why not consider the
inclusion of NETMAP in upstream kernel?
It seems to me that this functionnality is quite standard, and I think
it has proved to be stable now, don't you think?
I have been using it in production systems for quite a long time now
without any problem.  Why keep it experimental?

 Herve

-- 
 _
(°=  Hervé Eychenne
//)
v_/_ WallFire project:  http://www.wallfire.org/

      reply	other threads:[~2003-01-31 16:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-25  4:39 Static NAT Ranges? Larry Stephan
2003-01-31 16:04 ` Hervé Eychenne [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=20030131160402.GG956@comet.rv-int \
    --to=rv@wallfire.org \
    --cc=jlarry@delanet.com \
    --cc=netfilter-devel@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.