ebtables doesn't work properly on Ubuntu 7.10

"Jon Petralanda Urien" <[email protected]> Thu, 7 Aug 2008 12:10:57 +0200
Newsgroups gmane.linux.network.bridge.ebtables.user
Message-ID <[email protected]>
--===============0357137608==
Content-Type: multipart/alternative; 
	boundary="----=_Part_28967_15860864.1218103857902"

------=_Part_28967_15860864.1218103857902
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi! I'm trying to do a tool to ensure QoS on layer 2 and I want to manage
the 802.1Q field with ebtables. I have Ubuntu 7.10 with 2.6.24 kernel and
ebtables v2.0.8-1 intalled using apt-get repositories.

The problem is that ebtables doesn't filter anything, for example I enter
this rule on the filter table for testing on my computer:

ebtables -P INPUT DROP

Supposedly if I try to ping from other computer wich is on the same network
to my computer I won't get any response because ebtables drop's any incoming
frame. I tried other rules like:

ebtables -A INPUT -s othercomputerMAC -j DROP

And nothing, it doesn't filter anything.

I tried to add many modules with modprobe.

modprobe bridge
modprobe ebtables
modprobe ebtable_broute
modprobe ebtable_filter
modprobe ebtable_nat
modprobe ebt_802_3
modprobe ebt_arp
modprobe ebt_ip
modprobe ebt_log
modprobe ebt_mark
modprobe ebt_mark_m

And
I tried to restart ebtables with /etc/init.d/ebtables restart.

But nothing, my lsmod is this:

root@jonpo-desktop:/home/jonpo# lsmod|grep ebt
ebt_redirect            3328  1
ebt_pkttype             2560  0
ebt_mark_m              2688  0
ebt_mark                2688  0
ebt_log                 5120  0
ebt_ip                  3328  0
ebt_arp                 3584  0
ebt_802_3               2816  0
ebtable_nat             3328  0
ebtable_filter          3328  1
ebtable_broute          3072  1
ebtables               21120  11
ebt_redirect,ebt_pkttype,ebt_mark_m,ebt_mark,ebt_log,ebt_ip,ebt_arp,ebt_802_3,ebtable_nat,ebtable_filter,ebtable_broute
bridge                 56088  1 ebtable_broute

Note that iptables works well on my computer.

Anything knows what is going on?

Regards, Jon.

PD: if anyone has a problem with ethertypes I fix the problem with: ln -s
debian/ebtables/etc/ethertypes /etc/ethertypes

------=_Part_28967_15860864.1218103857902
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">Hi! I&#39;m trying to do a tool to ensure QoS on layer 2 and I want to manage the 802.1Q field with ebtables. I have Ubuntu 7.10 with 2.6.24 kernel and ebtables v2.0.8-1 intalled using apt-get repositories.<br>

<br>The problem is that ebtables doesn&#39;t filter anything, for example I enter this rule on the filter table for testing on my computer:<br><br>ebtables -P INPUT DROP<br><br>Supposedly if I try to ping from other computer wich is on the same network to my computer I won&#39;t get any response because ebtables drop&#39;s any incoming frame. I tried other rules like:<br>
<br>ebtables -A INPUT -s othercomputerMAC -j DROP<br><br>And nothing, it doesn&#39;t filter anything.<br><br>I tried to add many modules with modprobe.<br><br>modprobe bridge<br>modprobe ebtables<br>modprobe ebtable_broute<br>
modprobe ebtable_filter<br>modprobe ebtable_nat<br>modprobe ebt_802_3<br>modprobe ebt_arp<br>modprobe ebt_ip<br>modprobe ebt_log<br>modprobe ebt_mark<br>modprobe ebt_mark_m<br><br>And <br>I tried to restart ebtables with /etc/init.d/ebtables restart.<br>
<br>But nothing, my lsmod is this:<br><br>root@jonpo-desktop:/home/jonpo# lsmod|grep ebt<br>ebt_redirect&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3328&nbsp; 1<br>ebt_pkttype&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2560&nbsp; 0<br>ebt_mark_m&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2688&nbsp; 0<br>ebt_mark&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2688&nbsp; 0<br>
ebt_log&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5120&nbsp; 0<br>ebt_ip&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3328&nbsp; 0<br>ebt_arp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3584&nbsp; 0<br>ebt_802_3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2816&nbsp; 0<br>ebtable_nat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3328&nbsp; 0<br>ebtable_filter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3328&nbsp; 1<br>ebtable_broute&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3072&nbsp; 1<br>
ebtables&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 21120&nbsp; 11 ebt_redirect,ebt_pkttype,ebt_mark_m,ebt_mark,ebt_log,ebt_ip,ebt_arp,ebt_802_3,ebtable_nat,ebtable_filter,ebtable_broute<br>bridge&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 56088&nbsp; 1 ebtable_broute<br><br>Note that iptables works well on my computer.<br>
<br>Anything knows what is going on?<br><br>Regards, Jon.<br><br>PD: if anyone has a problem with ethertypes I fix the problem with: ln -s debian/ebtables/etc/ethertypes /etc/ethertypes<br></div>

------=_Part_28967_15860864.1218103857902--


--===============0357137608==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
--===============0357137608==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ebtables-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ebtables-user

--===============0357137608==--