On Fri, Oct 5, 2012 at 11:59 PM, Eric Formo <eric@...> wrote:
> Is there a reason the pnat option only allows for 2 pairs to be used at a
> time? Would it be possible to add functionality to use the pnat option
> with a list of pairs?
>From the tcprewrite man page:
-N string, --pnat=string
Rewrite IPv4/v6 addresses using pseudo-NAT. This option
may appear up to 2 times. This option must not appear in
combination with any of the following options: srcipmap.
Takes a comma delimited series of colon delimited CIDR
netblock pairs. Each netblock pair is evaluated in order
against the IP addresses. If the IP address in the
packet matches the first netblock, it is rewriten using the
second netblock as a mask against the high order bits.
http://synfin.net/ Twitter: @synfinatic
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
-- Benjamin Franklin
"carpe diem quam minimum credula postero"
Get latest updates about Open Source Projects, Conferences and News.