I have looking for a solution, but I think that it is imposible do this for this way.
This topic talks about it: https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2011-July/005167.html
and Sven talks about two diferent ways:
change the driver of mac80211 in order to be compatible with 4addr mode or make a transparent bridge(that I don't know how do it)
Other solutios would be simulate the network, or add a OMG filter patch to batman-adv.
Am I correct?
Regards
2012/9/13 Esteban Municio emunicio@gmail.com:
Hi again
I'm still having problems with this issue
I can not bridge wlan0 for use ebtables.Now I am bridging without eth0, only with the wireless interfaces. With the device freshly rebooted and with empty /etc/rc.local :
brctl addbr bridgeWlan brctl addif bridgeWlan wlan0 brctl: bridge bridgeWlan: Operation not supported
I searched for this I found that you can set this if you do:
iw dev wlan0 set 4addr on
but you only can do this if your wireless interface is in mode ap, and mine is on adhoc. So I can't set the bridge with batman (batctl if add bridgeWlan) This is my wireless device configuration in /etc/confiog/wireless
config wifi-iface option device radio0 option network lan option mode adhoc option ssid netmesh option encryption none
¿Do you know how could I set the bridges correctly for ebtables filtering?
Thanks! Regards
Esteban
2012/9/10 Esteban Municio emunicio@gmail.com:
Thanks you very much Gui and Sven
Now I understand the configuration and install ebtables has seem quite simple.
Regards
2012/9/10 Gui Iribarren gui@altermundi.net:
On Mon, Sep 10, 2012 at 12:18 PM, Esteban Municio emunicio@gmail.com wrote:
Hi Sven
I don't understand very well what are you meaning. Now I have 1 bridge over with batman-adv:
batctl if add wlan0 brctl addbr mesh-bridge brctl addif mesh-bridge eth0 brctl addif mesh-bridge bat0
Then, should I add a bridge to wlan0 and after bridge it again with the eth0?
brctl addbr bridgeWlan brctl addif bridgeWlan wlan0
batctl if add mesh-bridge brctl addbr mesh-bridge brctl addif mesh-bridge eth0 brctl addif mesh-bridge bat0
Not quite. I think he meant:
brctl addbr mesh-bridge brctl addif mesh-bridge eth0 brctl addif mesh-bridge bat0
batctl if del wlan0 brctl addbr bridgeWlan brctl addif bridgeWlan wlan0
batctl if add bridgeWlan
and from there, ebtables.
-- Esteban
-- Esteban