On Thu, Mar 13, 2008 at 3:08 PM, Yann Souchon <[EMAIL PROTECTED]> wrote:
> Hello,
>
>  I'm a new user of tcpreplay tools, under Debian Etch (version 3.0) on
>  intel platform. After a few days trying to use tcpreplay tools, I still
>  have a problem.

What version of tcpreplay?

>  I have two seperated networks, and I need to capture traffic on the
>  first network and replay it in real time on the second network. Between
>  these two networks, I have a Debian server with 2 network cards.
>
>  I tried to use tcpdump, tcprewrite and tcpreplay with input/ouput
>  redirection :
>
>  # tcpdump -i eth0 -s0 -w - -U | tcprewrite --portmap=80:8080 --infile=-
>  --outfile=- | tcpreplay --intf1=eth1 -
>
>  The idea is to dump traffic on the first interface, modify port 80 to
>  8080, and replay it to the second interface. But it doesn't work. When
>  I use input/output files, it works fine, but not with pipe. Tcprewrite
>  can not use tcpdump output in real time.

sounds like a job for tcpbridge.  But I'm curious by what you mean "it
doesn't work"?  Could you provide more details?  Seems to work for
me... well sorta.  You always seem to loose the last few packets, but
it's prolly due to packets getting lost mid-process when I CTRL-C to
kill it.   Could be a cross-platform issue (I tested under OS X), but
that seems unlikely.

>  Do you have some ideas ?
>
>  I also tried to use tcpbridge, but I'm not sureif I can use it on
>  promiscuous interface.

tcpbridge puts the interfaces in promisc mode.

>  If someone can help me to choose the good solution, it will be really
>  nice. If it's the first one, can you tell me why the tcpdump output
>  can't be inject in real time to tcprewrite ?


-- 
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

Reply via email to