You have to look at your pcap with tcpdump or wireshark and figure it out yourself. Wouldn't be too hard to parse the tcpdump output and figure out the client source port(s).
On Dec 3, 2007 5:27 PM, Bing Feng <[EMAIL PROTECTED]> wrote: > Hi all, > if I use --portmap option,the can only to change one port to another one at > a time, how can I change all the source port to a new one at a time use > tcprewrite, also,how can I kown which port is the source port if it doesn't > distingiush the source port and the destination port? > > > > > > > Message: 5 > > Date: Mon, 3 Dec 2007 09:56:36 -0800 > > From: "Aaron Turner" <[EMAIL PROTECTED]> > > Subject: Re: [Tcpreplay-users] the issue of tcprewrite change traffic > > port > > To: "Main forum for tcpreplay" <tcpreplay-users@lists.sourceforge.net> > > Message-ID: > > <[EMAIL PROTECTED]> > > Content-Type: text/plain; charset=ISO-8859-1 > > > > > On Dec 3, 2007 12:44 AM, Bing Feng <[EMAIL PROTECTED]> wrote: > >> > >> > >> Hi, > >> when I using tcpreplay to replay the captrued packets,I meet with a > >> problem,I have a requirement of change all the source port to a fix > >> port,but > >> I don't kown about how do it with tcprewrite? how does tcprewrite > >> distinguish the source port and the destination port? how can I use > >> tcprewrite to change all the source port to a fix port?I am looking forward > >> your replay. > > > > use the --portmap option. It doesn't distinguish between source and > > destination port, since for TCP the ports swap depending on the > > direction of traffic. -- 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 ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Tcpreplay-users mailing list Tcpreplay-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tcpreplay-users