wifi/files/all/etc/rc.local

18 lines
558 B
Plaintext
Raw Normal View History

2015-11-02 05:16:50 +02:00
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
2019-10-28 12:19:12 +02:00
2015-11-02 05:16:50 +02:00
/usr/sbin/ebtables -A FORWARD -i wlan+ -o wlan+ -j DROP
2019-10-28 12:19:12 +02:00
2021-08-10 18:48:24 +03:00
for mac in a0:36:9f:01:fc:e4 70:85:c2:a2:d2:16 2c:59:e5:73:c2:d0 2c:59:e5:73:c2:d4; do
2019-10-28 12:19:12 +02:00
/usr/sbin/ebtables -A FORWARD -i wlan+ -s ${mac} -j DROP
done
2021-08-10 18:48:24 +03:00
for mac in a0:36:9f:01:fc:e4 70:85:c2:a2:d2:16 2c:59:e5:73:c2:d0 2c:59:e5:73:c2:d4; do
2019-10-28 12:19:12 +02:00
/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
2015-11-02 05:16:50 +02:00
exit 0