Skip to contentSkip to conversation

ethernet bridge + iptables

Bridge Mark Sandford 4 participants 5 messages Apr 26, 2004 – Apr 27, 2004 Ethernet bridge

lore
Share & tools
lore
#0 lore raw

I'm trying to get iptables working with ethernet bridging.

I'm starting with a clean rh9 installation.

I've tried applying the ebtables-brnf-5_vs_2.4.24.diff patch. This compiles ok but my machine completely hangs moments after I bring the bridge up.

http://article.gmane.org/gmane.linux.network.bridge.ebtables.devel/221 describes same problem (I emailed author who just suggested moving on to newer kernel which is what I've tried)

I've since been using 2.4.25 kernel (and then 2.4.26). Kernel compiles and the system doesn't hang when the bridge comes up but I don't seem to be able to get it to actually do the bridging. (Bridging does work with initial rh9 install). The ethernet cards work fine until I bring the bridge up. After that I can't ping from the bridge or forward packets through the bridge.

I'm wondering whether I've incorrectly set/missed some options while configuring the kernel but I don't know what to try.

Any clues / pointers hugely appreciated.

Mark.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mark Sandford,
Research Associate,
Department of Electronic and Electrical Engineering, Loughborough University,
Loughborough,
Leicestershire.
LE11 3TU

tel: (01509) 227079
e-mail: <[email protected]>
http://www.lboro.ac.uk/departments/el/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#1 lore raw
Quoted 1 line · On Mon, 26 Apr 2004 16:28:43 +0100 "Mark Sandford" <[email protected]>…

I'm trying to get iptables working with ethernet bridging.

If you don't get a good answer here try the ebtables list:
[email protected]

Quoted 27 lines

I'm starting with a clean rh9 installation.

I've tried applying the ebtables-brnf-5_vs_2.4.24.diff patch. This compiles ok but my machine completely hangs moments after I bring the bridge up.

http://article.gmane.org/gmane.linux.network.bridge.ebtables.devel/221 describes same problem (I emailed author who just suggested moving on to newer kernel which is what I've tried)

I've since been using 2.4.25 kernel (and then 2.4.26). Kernel compiles and the system doesn't hang when the bridge comes up but I don't seem to be able to get it to actually do the bridging. (Bridging does work with initial rh9 install). The ethernet cards work fine until I bring the bridge up. After that I can't ping from the bridge or forward packets through the bridge.

I'm wondering whether I've incorrectly set/missed some options while configuring the kernel but I don't know what to try.

Any clues / pointers hugely appreciated.

Mark.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mark Sandford,
Research Associate,
Department of Electronic and Electrical Engineering, Loughborough University,
Loughborough,
Leicestershire.
LE11 3TU

tel: (01509) 227079
e-mail: <[email protected]>
http://www.lboro.ac.uk/departments/el/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#2 lore raw
In reply to Mark Sandford
Quoted 11 lines · Mark Sandford

I've since been using 2.4.25 kernel (and then 2.4.26). Kernel compiles and the system doesn't hang when the bridge comes up but I don't seem to be able to get it to actually do the bridging. (Bridging does work with initial rh9 install). The ethernet cards work fine until I bring the bridge up. After that I can't ping from the bridge or forward packets through the bridge.

I'm wondering whether I've incorrectly set/missed some options while configuring the kernel but I don't know what to try.

Any clues / pointers hugely appreciated.

Please check your firewalling rules.

cheers,
Bart

#3 lore raw

[Bridge] unregister_netdevice: waiting for tap_0 to become free. Usage count = 2

Hello,

I'm using tap devices connected to bridge, and I've been seeing these messages on my 2.6 hosts during a script which brings down the interface and then back up.

unregister_netdevice: waiting for tap_0 to become free. Usage count = 2

Does this look like a refcount leak, and if so, I'm assuming it's in the tuntap code and I'm barking up the wrong tree :)

Thanks,
-Chris

#4 lore raw

Re: [Bridge] unregister_netdevice: waiting for tap_0 to become free. Usage count = 2

Quoted 9 lines · On Tue, 27 Apr 2004 13:17:46 -0500 "Christopher S. Aker" <[email protected]>…

Hello,

I'm using tap devices connected to bridge, and I've been seeing these messages on my 2.6 hosts during a script which brings down the interface and then back up.

unregister_netdevice: waiting for tap_0 to become free. Usage count = 2

Does this look like a refcount leak, and if so, I'm assuming it's in the tuntap code and I'm barking up the wrong tree :)

Since the tuntap device has an api in user space. Probably means you still have an application with the tun tap device open. It can't complete unregister until the application closes the file.