netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to achieve reverse NETMAP functionality?
@ 2011-03-18 23:45 Kurt Wampler
  2011-03-19  8:20 ` Pandu Poluan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kurt Wampler @ 2011-03-18 23:45 UTC (permalink / raw)
  To: netfilter

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.

We would like to define a 1:1 NAT similar to what's implemented by the
iptables NETMAP target.  Currently, netmap can rewrite only the destination
address during prerouting, and it can rewrite only the source address
during postrouting.

In order to effectively alias the customer's network from the perspective
of our host, we want to rewrite the source address of packets coming from
the customer's network during prerouting, and rewrite the destination address
of the corresponding return packets during postrouting -- the opposite of
what netmap currently does.

Is there any way to achieve this by exploiting the existing configuration
capabilities in iptables?

Our host is running CentOS 5.3 with iptables 1.3.5.

Thanks in advance,

Kurt Wampler

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-21 13:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-03-21 13:36 ` Patrick McHardy

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).