Hi,
I think I will describe my problem again in detail.
So I have my product under test which sniffs the network traffic and
does processing on it. I want to test this product with as much as live
traffic
as possible. Now, what my network administrator doesn't allow is to put
run product on company's live network. Currently it is setup on isolated
hub, where I find it damn difficult to generate real time usage traffic.
What
I plan to do is capture traffic on my machine and send to remote machine
using netcat e.g.
tcpdump -s 0 -i eth0 -w - | nc 127.0.0.1 9000
and on the remote machine run the netcat server to listen to this
traffic and
run it on remote machine e.g.
nc -l -p 9000 | tcpreplay ....
The problem I am facing here is that I am not able to pass the remotely read
capture file to tcpreplay from stdin or pipe.
The tcpreplay man page says that '-' stands for input from stdin, so
does pcap
manpage, but some how its not working in my case.
[***@tapi manishs]# nc -l -p 9000 | tcpreplay -i eth0 -
sending on: eth0
Error opening file: No such file or directory
Any help or link or patch to tcpreplay will be highly appreciated.
Thanks and Regards,
Manish
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
If you're looking at taking a pcap file and using it to *connect* to
another server and replay the traffic against the server (rather then
say a NIDS), then what you're looking for is flowreplay which ships with
tcpreplay.
That's the good news. The bad news is that flowreplay is very alpha and
basically doesn't work right now. I keep hoping to work on it and
improve it, but between starting a new job and running into limitations
with libnids I haven't gotten as far as I'd like.
- -Aaron
Post by ed nospamI would say technically it is possible but in general unless the
replayer knows about the protocol in the captured traffic, it is not
feasible. In other words you have to write "plugins" for tcpreplay for
it to work.
Post by Manish SapariyaHi List,
I want to capture traffic on my machine and replay it on another machine.
Is this possible? One way I thought was to use netcat to send my captured
traffic on the target machine and run it using tcpreplay. But I couldn't
figure out how to read the packets to be replayed from stdin instead of
file or interface?
Is this possible? If so how?
Any other links will be highly appreciated.
Thanks and Regards,
Manish
- --
Aaron Turner <aturner at pobox.com|synfin.net> http://synfin.net/
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -- Benjamin Franklin
All emails are PGP signed; a lack of a signature indicates a forgery.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc
iD8DBQFCnLC7hweYF/hu2uYRAvZpAJ9uj1geHcM97Tv9oWOIGNllNCAVGgCcCVay
XIUmw+2Gsqd7ZnPfZIBn0DY=
=WhX1
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Tcpreplay-users mailing list
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users