Hi Esteban
You can try my patch to filter OGMs: http://git.open-mesh.org/batman-adv.git/shortlog/refs/heads/hundeboll/filter
The commit message tells how to use it. Unfortunately, its base is quite old, but it should be easy to rebase. Otherwise I can rebase it when I return from Canada next week...
Cheers, Martin
PS: Sorry for top posting. This Android client want let me change it :(
Sven Eckelmann sven@narfation.org wrote:
On Friday 07 September 2012 16:58:33 Esteban Municio wrote:
Hi list
Is there any way to block some links between nodes in order to force a specific network topology in batman-adv?
Por example, if y have 3 nodes A, B, C and I want to create a string topology A <-> B <-> C, where A can not connect directly with C, how could I get it without move far away the nodes?
You can try to add a your interface to a bridge (only one interface per bridge) and add this bridge to batman-adv. Now you can filter packets using ebtables (and therefore drop packets from specific hosts).
Kind regards, Sven
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
And then, should I install ebtables in all the nodes(now we have 9 nodes, and only 1 have internet access to install it directly) It seem a little difficult for me :-)
Could I try another method?something like set paths manually? In 802.11s we have a usefull comand for block links undesirables: iw dev INTERFACE_MESH_NAME station set MAC_ADD plink_option block nothing similar like that in batman-adv?
Regards
2012/9/7 Martin Hundebøll martin@hundeboll.net:
Hi Esteban
You can try my patch to filter OGMs: http://git.open-mesh.org/batman-adv.git/shortlog/refs/heads/hundeboll/filter
The commit message tells how to use it. Unfortunately, its base is quite old, but it should be easy to rebase. Otherwise I can rebase it when I return from Canada next week...
Cheers, Martin
PS: Sorry for top posting. This Android client want let me change it :(
Sven Eckelmann sven@narfation.org wrote:
On Friday 07 September 2012 16:58:33 Esteban Municio wrote:
Hi list
Is there any way to block some links between nodes in order to force a specific network topology in batman-adv?
Por example, if y have 3 nodes A, B, C and I want to create a string topology A <-> B <-> C, where A can not connect directly with C, how could I get it without move far away the nodes?
You can try to add a your interface to a bridge (only one interface per bridge) and add this bridge to batman-adv. Now you can filter packets using ebtables (and therefore drop packets from specific hosts).
Kind regards, Sven
Hi Martin
Thanks you, I have seen the description and I think that your patch is what we are looking for. I'm gonna try to test it, but I'm a totally newbie in patches issues. Could you tell me superficially what I have to do for rebase the patch before to build it and add it to our nodes?
Thanks you
2012/9/10 Esteban Municio emunicio@gmail.com:
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
And then, should I install ebtables in all the nodes(now we have 9 nodes, and only 1 have internet access to install it directly) It seem a little difficult for me :-)
Could I try another method?something like set paths manually? In 802.11s we have a usefull comand for block links undesirables: iw dev INTERFACE_MESH_NAME station set MAC_ADD plink_option block nothing similar like that in batman-adv?
Regards
2012/9/7 Martin Hundebøll martin@hundeboll.net:
Hi Esteban
You can try my patch to filter OGMs: http://git.open-mesh.org/batman-adv.git/shortlog/refs/heads/hundeboll/filter
The commit message tells how to use it. Unfortunately, its base is quite old, but it should be easy to rebase. Otherwise I can rebase it when I return from Canada next week...
Cheers, Martin
PS: Sorry for top posting. This Android client want let me change it :(
Sven Eckelmann sven@narfation.org wrote:
On Friday 07 September 2012 16:58:33 Esteban Municio wrote:
Hi list
Is there any way to block some links between nodes in order to force a specific network topology in batman-adv?
Por example, if y have 3 nodes A, B, C and I want to create a string topology A <-> B <-> C, where A can not connect directly with C, how could I get it without move far away the nodes?
You can try to add a your interface to a bridge (only one interface per bridge) and add this bridge to batman-adv. Now you can filter packets using ebtables (and therefore drop packets from specific hosts).
Kind regards, Sven
-- Esteban
On Monday 10 September 2012 10:18:31 Esteban Municio 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
no bridgeWlan should have been added to bat0 and not mesh-bridge. It is necessary because ebtables can only operate on bridges.
And then, should I install ebtables in all the nodes(now we have 9 nodes, and only 1 have internet access to install it directly)
scp or flash it.
It seem a little difficult for me :-)
You want to create special network topologies for tests and see changes as an problem...
Could I try another method?something like set paths manually? In 802.11s we have a usefull comand for block links undesirables: iw dev INTERFACE_MESH_NAME station set MAC_ADD plink_option block nothing similar like that in batman-adv?
Please read the mail from Martin Hundebøll. And no, it is not included by default.
Kind regards, Sven
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.
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.
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
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
b.a.t.m.a.n@lists.open-mesh.org