小编Ser*_*hyk的帖子

按目标 MAC 地址使用 iptables 标记数据包

我需要标记发送到指定 MAC 地址的数据包。

我需要这个在 shaper 中使用tc

--mac-destination不存在于iptables.

我也尝试使用ebtables

ebtables -t nat -A POSTROUTING -d 9c:4e:36:aa:bb:cc -j mark --set-mark 0x2003 --mark-target ACCEPT

但它没有标记任何东西(至少ebtables -t nat -L --Lc显示了 0 个计数器)

请帮忙!太感谢了!

networking nat iptables traffic-shaping

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

iptables ×1

nat ×1

networking ×1

traffic-shaping ×1