diff --git a/files/all/etc/rc.local b/files/all/etc/rc.local index ac306d2..aad01b3 100644 --- a/files/all/etc/rc.local +++ b/files/all/etc/rc.local @@ -1,8 +1,17 @@ # Put your custom commands here that should be executed once # 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+ -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