Thanks for the feedback. I'll see what I can do to make it clearer. Regards, Aaron
On Thu, Aug 26, 2010 at 1:19 PM, Burrito Homeboy <[email protected]> wrote: > Thanks, Aaron, that was exactly what I needed. And yes, I read both the man > page and the wiki, although I now see correct syntax in those documents. I > think what got me was the "just like the --pnat option" comment but there > wasn't an example below it as there is in the --pnat option. As I said, > it's clear now that you mentioned it :) > > Thanks again! > > On Tue, Aug 24, 2010 at 5:17 PM, Aaron Turner <[email protected]> wrote: >> >> On Tue, Aug 24, 2010 at 4:04 PM, Burrito Homeboy >> <[email protected]> wrote: >> > I have a simple pcap that I want to re-write the destination IP on. I'm >> > trying 'tcprewrite -D 192.168.1.27 -i blah.pcap -o >> > blah-192.168.1.27.pcap' >> > and I get the following error: >> > >> > Fatal Error: Unable to parse args: From parse_args.c:tcpedit_post_args() >> > line 103: >> > Unable to parse --dstipmap=192.168.1.27 >> > >> > I'm not getting super crazy here so what exactly am I missing? >> >> Curious, did you read the man page and wiki? You're not the first to >> ask this question and I'd like to know if people don't understand the >> docs or something else is going on. >> >> Anyways, --dstipmap, --srcipmap and --pnat all take arguments in a >> <match>:<replace> format which each side is a CIDR block. Sounds like >> you want all destination ip's rewritten to 192.168.1.27 so you want to >> match against: 0.0.0.0/0. Thus: >> >> --dstipmap=0.0.0.0/0:192.168.1.27/32 >> >> The /32 is important because you want all bits on the replace side >> rewritten. This seems overly complicated until you want to do things >> like: map everything in 10.0.0.0/24 to 192.168.1/24 while leaving >> everything in 172.16/16 alone: --dstipmap=10.0.0.0/24:192.168.1/24 >> >> which would make 10.0.0.1 --> 192.167.1.1 and 10.0.0.2 --> 192.168.1.2, >> etc >> >> Hopefully that clears things. >> >> -Aaron >> >> >> -- >> Aaron Turner >> 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" >> >> >> ------------------------------------------------------------------------------ >> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program >> Be part of this innovative community and reach millions of netbook users >> worldwide. Take advantage of special opportunities to increase revenue and >> speed time-to-market. Join now, and jumpstart your future. >> http://p.sf.net/sfu/intel-atom-d2d >> _______________________________________________ >> Tcpreplay-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users >> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > Tcpreplay-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tcpreplay-users > Support Information: http://tcpreplay.synfin.net/trac/wiki/Support > -- Aaron Turner 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" ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Tcpreplay-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tcpreplay-users Support Information: http://tcpreplay.synfin.net/trac/wiki/Support
