OpenWrt wifi mac filter
From wiki.perl.lt
/etc/init.d/wlmacfilter
#!/bin/sh /etc/rc.common
# The macfilter 2 means that the filter works in "Allow" mode.
# Other options are: 0 - disabled, or 1 - Deny.
# wlc ifname wl0 maclist "xx:xx:xx:xx:xx:xx xx:xx:xx:xx:xx:xx"
START=47
start() {
wlc ifname wl0 maclist "00:00:00:00:00:01 00:00:00:00:00:02"
wlc ifname wl0 macfilter 2
}
stop() {
wlc ifname wl0 maclist none
wlc ifname wl0 macfilter 0
}
# chmod 755 /etc/init.d/wlmacfilter # /etc/init.d/wlmacfilter start