wifi/files/all/etc/rc.local

18 lines
522 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
2019-11-04 10:24:10 +02:00
for mac in 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
2019-11-04 10:24:10 +02:00
for mac in 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