Wei-Ting Wang
2007-11-08 06:42:03 UTC
Hello,
My Linux version is shown as following:
# uname -a
Linux (none) 2.4.17_mvl21-4189ref #371 Wed Oct 24 14:32:10 CST 2007 mips unknown
My ebtables version is shown as following:
# ebtables
ebtables v2.0.8-2 (May 2007)
Now, I am implementing Mac filter using ebtables. And I can drop
packets via INPUT chain.
ebtables -A INPUT -i eth0 -p IPv4 -s 00:0E:A6:0B:11:6F -j DROP
ebtables -A INPUT -i eth0 -p IPv4 -d 00:00:AA:BB:CC:FF -j DROP
However, both the following two commands can write into ebtable but
cannot drop packets via OUTPUT chain. In fact, I have not dropped any
packets via OUTPUT chain.
ebtables -A OUTPUT -o eth0 -p IPv4 -s 00:00:AA:BB:CC:FF -j DROP
ebtables -A OUTPUT -o eth0 -p IPv4 -d 00:0E:A6:0B:11:6F -j DROP
Thanks.
My Linux version is shown as following:
# uname -a
Linux (none) 2.4.17_mvl21-4189ref #371 Wed Oct 24 14:32:10 CST 2007 mips unknown
My ebtables version is shown as following:
# ebtables
ebtables v2.0.8-2 (May 2007)
Now, I am implementing Mac filter using ebtables. And I can drop
packets via INPUT chain.
ebtables -A INPUT -i eth0 -p IPv4 -s 00:0E:A6:0B:11:6F -j DROP
ebtables -A INPUT -i eth0 -p IPv4 -d 00:00:AA:BB:CC:FF -j DROP
However, both the following two commands can write into ebtable but
cannot drop packets via OUTPUT chain. In fact, I have not dropped any
packets via OUTPUT chain.
ebtables -A OUTPUT -o eth0 -p IPv4 -s 00:00:AA:BB:CC:FF -j DROP
ebtables -A OUTPUT -o eth0 -p IPv4 -d 00:0E:A6:0B:11:6F -j DROP
Thanks.
--
Regards,
šL«Â©w Wei-Ting Wang
Regards,
šL«Â©w Wei-Ting Wang