On Thu, Jan 14, 2010 at 3:56 AM, Szymon Muchajer <[email protected]> wrote: > > Hello! > > I have a pcap dump file with trace from some backbone link. I need to resend > it between two computers, but I need it to be sent from specific source IP > address and port to a specific IP address and the same port. The direction > of traffic in trace doesn't matter for me. I just need it all to be from > e.g. 192.168.20.20:50001 to 192.168.20.21:50001. > I know how to change IP addresses, but have no idea how to change ALL ports > to one specific. > Till now i'm preparing cache file from trace with --regex="" and then just > rewrite with --endpoint. > Could you help me somehow?
You can rewrite port numbers via the --portmap option. -- Aaron Turner http://synfin.net/ 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" ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Tcpreplay-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tcpreplay-users Support Information: http://tcpreplay.synfin.net/trac/wiki/Support
