Hi. Thanks for building and maintaining the tool! I want to use tcpreplay to replay some online post requests. But I can’t even replay the requests on my test environment. I read the docs but I can’t find an answer, really appreciate if you could help.
!1009 $ ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.205 netmask 255.255.255.0 broadcast 192.168.0.255
ether a0:d3:c1:ef:bd:c0 txqueuelen 1000 (Ethernet)
RX packets 89468826 bytes 108804503859 (101.3 GiB)
RX errors 0 dropped 20 overruns 0 frame 0
TX packets 34580921 bytes 15460866735 (14.3 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 32
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 0 (Local Loopback)
RX packets 30863918 bytes 15302199022 (14.2 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 30863918 bytes 15302199022 (14.2 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Tcpdump command:
sudo tcpdump -i eno1 -s 0 -A 'tcp dst port 9090 and (tcp[((tcp[12:1] & 0xf0) >>
2):4] = 0x504f5354)' -vv -w /tmp/post.pcap
Please kindly find pcap file in attachment, thanks
Tcprewrite:
tcprewrite --portmap=9090:9990 --infile=post.pcap --outfile=port.output.pcap
Tcpreplay
sudo tcpreplay -i eno1 port.output.pcap
When I use the command, I can’t see the request from server log. But when I use
tcpdump to listen to the port, I can see the replayed request.
Could you please help me to find out where the problem is?
Thanks
Tianduo Zhai (翟天铎)
QA Engineer | FreeWheel | Beijing
Tel: (+86)18500230748 | Skype: [email protected]<mailto:[email protected]>
| Mail: [email protected]<mailto:[email protected]>
post.pcap
Description: post.pcap
------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________ Tcpreplay-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tcpreplay-users Support Information: http://tcpreplay.synfin.net/trac/wiki/Support
