1. Yes, it's a bug. I've fixed it (see ticket #291). Will be part of the next release.
2. You don't need to use tcpprep and a cachefile for tcprewrite --pnat to work. You'll probably find that it works just fine right now if you remove the --cachefile argument. Regards, Aaron On Tue, Feb 19, 2008 at 6:33 PM, Leon <[EMAIL PROTECTED]> wrote: > hi Aaron, > > it's wired that i can't the receive the reply email other than seeing them > from the digest. so i copy all the content here and post them again. > > > client ------------------------Server (http server) , i captured the packet > on client side. Please see the attached. > (192.168.1.34) 10.208.68.174 > > i am going to rewrite the pcap file to let it look like the traffice > happend > as following topology, so only the packet sent by server would be rewroten. > i was looking for the way from the tcprewirte guilde but it seems it > doesn't support this type of rewrite. > > client -----------NAT device --------------------------------Server ( http > server), > (192.168.1.34) | (10.208.2.14) > 10.208.68.174 > egressIP > > And i did the follow operation to make it happend, > 1) To generate a cache file to define the rewrite only happend to the > traffice from server side. > [EMAIL PROTECTED] ~]# tcpprep --include=S:10.208.68.174/32 --pcap http.cap > --cachefile=http.cache > Must specify a processing mode: -a, -c, -r, -p > [EMAIL PROTECTED] ~]# tcpprep --auto=brideg --include=S:10.208.68.174/32 > --pcap http.cap --cachefile=http.cache > > 2) To update the dest ip to the Egress ip of the NAT device, but segment > fault occurred. > [EMAIL PROTECTED] ~]# tcprewrite --pnat=192.168.1.0/24:10.208.2.14 > --cachefile=http.cache --infile=http.cap --outfile=http_server.cap > Segmentation fault > > could you please help to check this and i can provide any information you > think necessary. -- Aaron Turner http://synfin.net/ http://tcpreplay.synfin.net/ - Pcap editing & replay tools for Unix They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Tcpreplay-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
