All of lore.kernel.org
 help / color / mirror / Atom feed
* SNAT - matching original and natted IP addresses
@ 2010-01-15 15:33 Shirley Ong
  2010-01-15 16:19 ` Leonardo Rodrigues
  0 siblings, 1 reply; 3+ messages in thread
From: Shirley Ong @ 2010-01-15 15:33 UTC (permalink / raw)
  To: netfilter

Hi,

I'm trying to map a range of private IP addresses to a range of public
IP addresses. For this, I'm using SNAT:

    # iptables -t nat -A POSTROUTING -s <private range> -d ! <private
range> -j SNAT --to-source <public range>

The public range is higher than private range. I can see from
conntrack that the last 2 octets of original and natted IP addresses
are always the same. Can I be sure that the mapping is always correct
without parsing conntrack from time to time because it's heavy
processing? Or is there any other way that I can make sure the mapping
is always correct?

Thanks.

Shirley

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

end of thread, other threads:[~2010-07-29 19:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-15 15:33 SNAT - matching original and natted IP addresses Shirley Ong
2010-01-15 16:19 ` Leonardo Rodrigues
2010-07-29 19:37   ` SNAT - on bridge only addressing some packets? Timothy Hayes

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.