ebtables configuration

This commit is contained in:
Petko Bordjukov 2015-11-02 05:16:50 +02:00
parent 2e52e0546e
commit 09fd98d7c8
2 changed files with 12 additions and 0 deletions

8
files/all/etc/rc.local Normal file
View File

@ -0,0 +1,8 @@
# 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
exit 0

View File

@ -6,4 +6,8 @@
# echo Y > $file # echo Y > $file
#done #done
/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
exit 0 exit 0