rc.local: all macs of the router
This commit is contained in:
parent
4dbc45a217
commit
fc0fbb0dce
|
@ -1,8 +1,17 @@
|
||||||
# Put your custom commands here that should be executed once
|
# Put your custom commands here that should be executed once
|
||||||
# the system init finished. By default this file does nothing.
|
# the system init finished. By default this file does nothing.
|
||||||
|
|
||||||
|
|
||||||
/usr/sbin/ebtables -A FORWARD -i wlan+ -o wlan+ -j DROP
|
/usr/sbin/ebtables -A FORWARD -i wlan+ -o wlan+ -j DROP
|
||||||
/usr/sbin/ebtables -A FORWARD -i wlan+ -s 00:1e:0b:d9:bb:6a -j DROP
|
|
||||||
/usr/sbin/ebtables -A FORWARD -i eth+ -o wlan+ -s ! 00:1e:0b:d9:bb:6a -j DROP
|
for mac in 70:85:c2:a2:d2:16 00:07:43:13:2c:a0 00:07:43:13:2c:a8; do
|
||||||
|
/usr/sbin/ebtables -A FORWARD -i wlan+ -s ${mac} -j DROP
|
||||||
|
done
|
||||||
|
|
||||||
|
for mac in 70:85:c2:a2:d2:16 00:07:43:13:2c:a0 00:07:43:13:2c:a8; do
|
||||||
|
/usr/sbin/ebtables -A FORWARD -i eth+ -o wlan+ -s ${mac} -j ACCEPT
|
||||||
|
done
|
||||||
|
|
||||||
|
/usr/sbin/ebtables -A FORWARD -i eth+ -o wlan+ -j DROP
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue