Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a linux machine (my workstation). From there I can ping other local machines, let's say Let's say I want to prohibit communication with by it's MAC address. I'm trying a simple rule:

ebtables -I INPUT -s 00:24:1d:c9:0a:27 -j DROP

But still I can ping that host. Is ebtables limited to filtering traffic only on bridge interfaces?

share|improve this question
up vote 4 down vote accepted

Yes, ebtables only acts on frames traversing bridge interfaces. You can, however, do a nice layering violation and use the -m mac --mac-source iptables option.

Whenever I'm doing anything at all complex with netfilter I keep this diagram close to hand:

share|improve this answer

Thor, what you suggest is correct and is working. I justed tested it.

You may need to update the routes by replacing bridged interfaces with the bridge interface itself, to make sure you're not bypassing the bridge.

ip route del dev eth0  proto kernel  scope link  src
ip route add dev br0  proto kernel  scope link  src
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.