Q: Can I send packets on the same computer running tcpreplay?
Generally speaking no. When tcpreplay sends packets, it injects them between the TCP/IP stack of the system and the device driver of the network card. The result is the TCP/IP stack system running tcpreplay never sees the packets.
One suggestion that has been made is using something like VMWare, Parallels or Xen. Running tcpreplay in the virtual machine (guest) would allow packets to be seen by the host operating system.
https://www.coder.work/article/1515382
最佳答案
根据tcpreplay文档,不可能在同一台计算机上发送数据包:数据包被注入到tcp/ip堆栈和网卡的设备驱动程序之间,因此运行tcpreplay的tcp/ip堆栈永远看不到这些数据包。
尝试在同一台计算机上的虚拟化环境中运行tcpreplay,主机操作系统应该会看到这些数据包
[ps:
【next】1. tcpprep 可以跨主机生成catch ,来模拟回放,在对方的应用层使用,但自己还是没有测试成功
[next] 2.如果是导出udp的数据ascii 的,单个包wrieshark可以直接自己导出,但是批量没找到方法,倒是找到可以自己写工具的方式:
参考: https://zhuanlan.zhihu.com/p/31512066
]
没有评论:
发表评论