* [B.A.T.M.A.N.] How to force a specific network topology
@ 2012-09-07 21:58 Esteban Municio
2012-09-07 22:02 ` Sven Eckelmann
0 siblings, 1 reply; 10+ messages in thread
From: Esteban Municio @ 2012-09-07 21:58 UTC (permalink / raw)
To: b.a.t.m.a.n
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?
Thanks you!
Regards
--
Esteban
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [B.A.T.M.A.N.] How to force a specific network topology
2012-09-07 21:58 Esteban Municio
@ 2012-09-07 22:02 ` Sven Eckelmann
0 siblings, 0 replies; 10+ messages in thread
From: Sven Eckelmann @ 2012-09-07 22:02 UTC (permalink / raw)
To: b.a.t.m.a.n
[-- Attachment #1: Type: text/plain, Size: 614 bytes --]
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [B.A.T.M.A.N.] How to force a specific network topology
@ 2012-09-07 22:39 Martin Hundebøll
2012-09-10 15:18 ` Esteban Municio
0 siblings, 1 reply; 10+ messages in thread
From: Martin Hundebøll @ 2012-09-07 22:39 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [B.A.T.M.A.N.] How to force a specific network topology
2012-09-07 22:39 [B.A.T.M.A.N.] How to force a specific network topology Martin Hundebøll
@ 2012-09-10 15:18 ` Esteban Municio
2012-09-10 15:23 ` Esteban Municio
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Esteban Municio @ 2012-09-10 15:18 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [B.A.T.M.A.N.] How to force a specific network topology
2012-09-10 15:18 ` Esteban Municio
@ 2012-09-10 15:23 ` Esteban Municio
2012-09-10 15:30 ` Sven Eckelmann
2012-09-10 15:33 ` Gui Iribarren
2 siblings, 0 replies; 10+ messages in thread
From: Esteban Municio @ 2012-09-10 15:23 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
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
--
Esteban
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [B.A.T.M.A.N.] How to force a specific network topology
2012-09-10 15:18 ` Esteban Municio
2012-09-10 15:23 ` Esteban Municio
@ 2012-09-10 15:30 ` Sven Eckelmann
2012-09-10 15:33 ` Gui Iribarren
2 siblings, 0 replies; 10+ messages in thread
From: Sven Eckelmann @ 2012-09-10 15:30 UTC (permalink / raw)
To: b.a.t.m.a.n
[-- Attachment #1: Type: text/plain, Size: 1354 bytes --]
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [B.A.T.M.A.N.] How to force a specific network topology
2012-09-10 15:18 ` Esteban Municio
2012-09-10 15:23 ` Esteban Municio
2012-09-10 15:30 ` Sven Eckelmann
@ 2012-09-10 15:33 ` Gui Iribarren
2012-09-10 15:43 ` Esteban Municio
2 siblings, 1 reply; 10+ messages in thread
From: Gui Iribarren @ 2012-09-10 15:33 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [B.A.T.M.A.N.] How to force a specific network topology
2012-09-10 15:33 ` Gui Iribarren
@ 2012-09-10 15:43 ` Esteban Municio
2012-09-13 17:00 ` Esteban Municio
0 siblings, 1 reply; 10+ messages in thread
From: Esteban Municio @ 2012-09-10 15:43 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [B.A.T.M.A.N.] How to force a specific network topology
2012-09-10 15:43 ` Esteban Municio
@ 2012-09-13 17:00 ` Esteban Municio
2012-09-14 17:18 ` Esteban Municio
0 siblings, 1 reply; 10+ messages in thread
From: Esteban Municio @ 2012-09-13 17:00 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [B.A.T.M.A.N.] How to force a specific network topology
2012-09-13 17:00 ` Esteban Municio
@ 2012-09-14 17:18 ` Esteban Municio
0 siblings, 0 replies; 10+ messages in thread
From: Esteban Municio @ 2012-09-14 17:18 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
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
--
Esteban
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-09-14 17:18 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-07 22:39 [B.A.T.M.A.N.] How to force a specific network topology Martin Hundebøll
2012-09-10 15:18 ` Esteban Municio
2012-09-10 15:23 ` Esteban Municio
2012-09-10 15:30 ` Sven Eckelmann
2012-09-10 15:33 ` Gui Iribarren
2012-09-10 15:43 ` Esteban Municio
2012-09-13 17:00 ` Esteban Municio
2012-09-14 17:18 ` Esteban Municio
-- strict thread matches above, loose matches on Subject: below --
2012-09-07 21:58 Esteban Municio
2012-09-07 22:02 ` Sven Eckelmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox