On Mon, Jul 04, 2011 at 06:06:19PM +0200, Max Ip wrote:
Hi all,
This is something to be posted in other forums. But just wanted to know if you faced the same problem.
I tried to drop the connections between the end users (node_1 and node_3) of
node_1 ----node_2-----node_3
iptables -t raw -A PREROUTING -i wlan0 -m mac --mac-source 00:13:a9:c3:ae:8f -j DROP
This will not work because in this way you are blocking IP datagram with source mac address equal to 00:13:a9:c3:ae:8f. Batman packets are not IP datagram, so you can't block them by means of iptables.
As Marek suggested, you should use something like ebtables. But honestly I remember that ebtables support has been removed from batman some time ago.
Regards,