Re: [B.A.T.M.A.N.] Filtering BATMAN-ADV packet

Sven Eckelmann
2011-07-21T06:56:49Z

[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]

On Thursday 21 July 2011 11:33:55 Nik M. Anas Kamarudin wrote:
[...]
> /sbin/modprobe /lib/modules/`2.6.35.13/batman-adv/batman-adv.ko
> /usr/sbin/batctl if add br0
> /sbin/ifconfig bat0 192.168.5.41 up
> /sbin/ifconfig br0 192.168.5.1 up

Why has br0 an IP address (and one which seems to be in the same subnet
like the one from bat0)?

> and filter up the batman-adv packet using etables like this:
> `/usr/sbin/ebtables -A INPUT -s AA:AA:AA:AA:AA -j DROP`
>
> BUT, this only work for Ethernet interface/ wire.. i need to do this
> same thing using wireless interface. Anyone got any ideas?

Why shouldn't that work on wireless interfaces? Maybe you should provide more
information about your problem or your statement is just wrong. Just to
provide a easy to reproduce counterexample: Take your standard ath9k master
interface, add it to a bridge and add the correct ebtables filter rules
(depends on the actual scenario, but just assume INPUT, FORWARD and OUTPUT
of of the filter table with the source/destination macs and DROP target).

And there is still the possibility to revert and extend
http://git.open-mesh.org/?p=batman-adv.git;a=commit;h=660d20261343e0b2ff57e51e50d7eb0e557d5e5b

Kind regards,
Sven

[-- Attachment #2: This is a digitally signed message part. --]