用于执行链路层数据包修改的库
是否有一个库允许我对传入和传出数据包执行链路层数据包修改?
基本上我想根据传入的 MAC 地址、IP 地址、端口等对数据包进行一些转换(例如更改 IP 有效负载)。 我还希望能够对传出数据包执行相同的操作,即在数据包离开系统之前对其进行修改。
Is there a library out there that will allow me to perform link-layer packet modification for both incoming and outgoing packets?
Basically I want to do some transformations to a packet (for eg. changing IP payload) based on incoming MAC address, IP address, port, etc.
I also want to be able to do the same thing for outgoing packets, i.e., modify packets before they leave the system.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定 IPTables 是否可以进行我想做的那种数据包有效负载修改。
第一个答案中链接的文章仅允许在网络层进行修改,而不允许在链路层进行修改。
解决方案: WinpkFilter
I'm not sure if IPTables can do the kind of packet payload modification that I want to do.
The article linked in the 1st answer allows modification only at network layer, not at link layer.
Solution: WinpkFilter
Windows还是Linux?对于linux,有iptables,它有大量的代码。对于 Windows,这里有一篇文章可能会对您有所帮助。
希望这有帮助。
Windows or linux? for linux there's iptables which has extensive code. As for Windows, here's an article that might help you.
Hope this helps.