rc.local: all macs of the router

This commit is contained in:
Vasil Kolev 2019-10-28 12:19:12 +02:00
parent 4dbc45a217
commit fc0fbb0dce
1 changed files with 11 additions and 2 deletions

View File

@ -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