From: Marek Kierdelewicz <marek@piasta.pl>
To: Kurt Wampler <Kurt.Wampler@brion.com>
Cc: netfilter@vger.kernel.org
Subject: Re: How to achieve reverse NETMAP functionality?
Date: Sun, 20 Mar 2011 09:20:32 +0100 [thread overview]
Message-ID: <20110320092032.18159dbd@catus> (raw)
In-Reply-To: <20110318164554.G20495@masktools.com>
Hi,
>We have a need to "alias" portions of a customer's internal private IP
>network, because they have an address range which overlaps a private IP
>address range used internally in one of our systems installed at their
>site. We are trying to avoid having to re-IP either network.
I haven't tried it, but it seems there's stateless nat available as tc
action. You *probably* could try to do dnat on egress (eg. interface
eth0) and snat on ingress (ingress qdisc attached to eth0).
# tc action add action nat help
Usage: ... nat NAT
NAT := DIRECTION OLD NEW
DIRECTION := { ingress | egress }
OLD := PREFIX
NEW := ADDRESS
Best regards,
Marek Kierdelewicz
next prev parent reply other threads:[~2011-03-20 8:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-18 23:45 How to achieve reverse NETMAP functionality? Kurt Wampler
2011-03-19 8:20 ` Pandu Poluan
2011-03-20 8:20 ` Marek Kierdelewicz [this message]
2011-03-21 13:36 ` Patrick McHardy
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=20110320092032.18159dbd@catus \
--to=marek@piasta.pl \
--cc=Kurt.Wampler@brion.com \
--cc=netfilter@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;
as well as URLs for NNTP newsgroup(s).