如何从 arptables 发送 arp 数据包到队列
我的目标是找到一种方法来处理(丢弃、接受、转发等)来自第 2 层的数据包...
我知道 *inux 中的“iptables”允许我们将数据包发送到“NFQUEUE”以进行进一步的数据包处理....
但它支持第 3 层数据包...这意味着它不会检测来自第 2 层的数据包..
虽然“arptables”检测到发往第 2 层的数据包,但我找不到发送它的方法到“NFQUEUE”
有没有可以让我们选择是否接受/丢弃/继续层数据包的方式?
My aim was to find a way to process(drop,accept,forward and etc.) packets that are from Layer 2 ...
I know that "iptables" in *inux allow us to send packet to "NFQUEUE" for further packet processing ....
but it support layer 3 packets ... which means it does not detect packets that are from Layer 2..
although "arptables" detect packets that are destine for Layer 2, I couldn't find a way to send it to "NFQUEUE"
is there any way that can let us choose whether or not we should accept/drop/continue the layer packets?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
截至该日期,只有 ebtables 有目标(-j arpreply)来生成 ARP 数据包,尽管您可以使用 ebtables 和 arptables 进行过滤。 NFQUEUE 也可以在 ebtables 中使用,事实上,只需向其中添加一个条目就可以快速扩展为 arptables,但到目前为止,arptables 已经是一个非常好的程序,甚至比 ebtables 还要好。
Only ebtables has a target (-j arpreply) to generate ARP packets as of this date, though you can filter with either ebtables and arptables. NFQUEUE is also usable from ebtables, and in fact, can be quickly extended for arptables by just adding an entry to it, but so far, arptables has been pretty much a nice program, even more so than ebtables.