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
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
b.a.t.m.a.n@lists.open-mesh.org