A couple of serious errors

"Steven Truong" <[email protected]> Mon, 17 Sep 2007 17:44:06 -0700
Newsgroups gmane.linux.network.bridge.ebtables.user
Message-ID <[email protected]>
Hi, all.  I downloaded, compiled, installed ebtables from sources.  It
worked ok for some periods of times since I am still learning how to
set up a bridge with it.

I added a few rules here and there and reload the ebtables with these
rules then I got the following errors.  I googled high and low but I
could not find how to solve it.  My machines is i386 with 1.5 Gig of
RAM on CentOS 5 with SELinux disabled.

ebtables-restore < ebtables
Ebtables: libebtc.c ebt_check_for_loops 1007 :Out of memory.

Here are the rules:
# Generated by ebtables-save v1.0 on Mon Sep 17 16:05:38 PDT 2007
*broute
:BROUTING ACCEPT
#-A BROUTING -p IPv4 -i eth1 --ip-proto tcp --ip-dport 80 -j redirect
--redirect-target DROP
*nat
:PREROUTING ACCEPT
:OUTPUT ACCEPT
:POSTROUTING ACCEPT
*filter
:INPUT ACCEPT
:FORWARD DROP
:OUTPUT ACCEPT
-A FORWARD -p IPv4 -j ACCEPT
-A FORWARD -p ARP -j ACCEPT
-A FORWARD --log-level info --log-prefix "EBFW" --log-ip -j CONTINUE

I then recompiled the same kernel and remove "Auditing support".  That
was very much the only different from the previous kernel and now I
got a different kind of error.


[root@bridge ebtables]# ebtables-restore < /etc/sysconfig/ebtables
The kernel doesn't support a certain ebtables extension, consider
recompiling your kernel or insmod the extension.

I looked into dmesg and found the following error:
Ebtables v2.0 registered
kernel msg: ebtables bug: please report to author: No valid hooks specified

[root@bridge ~]# lsmod
Module                  Size  Used by
ebtable_filter          6656  0
ebtables               24704  1 ebtable_filter
i915                   29184  2
drm                    86932  3 i915
autofs4                26116  2
bridge                 59160  0
llc                    12180  1 bridge
ipt_REDIRECT            6528  0
xt_tcpudp               7552  0
xt_physdev              6928  0
nf_nat                 23852  1 ipt_REDIRECT
nf_conntrack_ipv4      23564  1
nf_conntrack           70408  2 nf_nat,nf_conntrack_ipv4
nfnetlink              10264  3 nf_nat,nf_conntrack_ipv4,nf_conntrack
x_tables               19716  3 ipt_REDIRECT,xt_tcpudp,xt_physdev

....

For my kernel, I have
802.1d Ethernet Bridging (M)
Bridged IP/ARP packets filtering (*)
Bridge: Netfiler Configuration --->  All were selected as Modules.

Thank you very much for all your helps.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/