From: ypresente@mrv.com (Yaron Presente)
To: netfilter@lists.netfilter.org
Cc: Yaron Presente <ypresente@mrv.com>
Subject: many one-to-one NAT
Date: Sun, 16 May 2004 16:06:59 +0300 [thread overview]
Message-ID: <40A76773.2060402@mrv.com> (raw)
Hi All,
I'm a newbie to this list and I apologize if this question has already
appeared in previous posts.
I would like to do NAT from a private range to a public range of the
same size, in a way that just
the network part of the IP address would be translated.
For example, I would like a single iptables rule to map 192.168.10.0/24
=> 10.1.1.0/24 as follows:
192.168.10.1 => 10.1.1.1
192.168.10.2 => 10.1.1.2
.
.
.
192.168.10.254 => 10.1.1.254
I know that I can do it by defining the whole set of rules explicitly,
but I'm looking for a better solution in terms of simplicity and
performance.
Can anyone help?
Thanks,
--
Yaron Presente
MRV International
Direct : 972-4-9936237
Fax : 972-4-9890564
Email : ypresente@mrv.com
www.mrv.com
next reply other threads:[~2004-05-16 13:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-16 13:06 Yaron Presente [this message]
2004-05-17 6:09 ` many one-to-one NAT Philip Craig
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=40A76773.2060402@mrv.com \
--to=ypresente@mrv.com \
--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.