public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [B.A.T.M.A.N] simulate multihop
@ 2016-04-06 23:47 Fábio Carvalho
  2016-04-06 23:58 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Fábio Carvalho @ 2016-04-06 23:47 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi all,

I have a network with three nodes and i wanted simulate multihop with
batman-adv protocol.

node 1 <-> node 2 <-> node3

For this, i have to block mac address of node 3 on node 1 and mac
address of node 1 on node 3. Thus, they only communicate via node2.

I can not use iptables (iptables -A INPUT -m mac --mac-source $MAC -j
DROP) because the protocol works on layer 2 and iptables works on
layer 3, so, when the packet arrive at the node is handled by protocol
before being blocked by iptables.

After read some post, another solution is using ebtables, but ebtables
only works with interfaces in mode bridge. If i execute these rules on
nodes it does not work.

node 1:
ebtables -I INPUT -s <MAC_node3> -j DROP

node3:
ebtables -I INPUT -s <MAC_node1> -j DROP

Anyone have another solution or i am doing something wrong? I think
that ebtables does not work because my interface (wireless) is not on
bridge mode, i cannot set it for bridge mode because i need create a
mesh network (the wireless interface have to be in ad hoc mode).

Cumprimentos,
Fábio Carvalho

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [B.A.T.M.A.N.] [B.A.T.M.A.N] simulate multihop
  2016-04-06 23:47 [B.A.T.M.A.N.] [B.A.T.M.A.N] simulate multihop Fábio Carvalho
@ 2016-04-06 23:58 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2016-04-06 23:58 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

> Anyone have another solution or i am doing something wrong? I think
> that ebtables does not work because my interface (wireless) is not on
> bridge mode, i cannot set it for bridge mode because i need create a
> mesh network (the wireless interface have to be in ad hoc mode).

If you look on the list, there are patches to make BATMAN network
namespace aware. You can then put the instances in different
namespaces, and use veth's to connect them together in the topology
you want.

    Andrew

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-06 23:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-06 23:47 [B.A.T.M.A.N.] [B.A.T.M.A.N] simulate multihop Fábio Carvalho
2016-04-06 23:58 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox