From 09fd98d7c894adce1afc47391f76ae968de39c40 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Mon, 2 Nov 2015 05:16:50 +0200 Subject: [PATCH] ebtables configuration --- files/all/etc/rc.local | 8 ++++++++ files/archer-c5/etc/rc.local | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 files/all/etc/rc.local diff --git a/files/all/etc/rc.local b/files/all/etc/rc.local new file mode 100644 index 0000000..ac306d2 --- /dev/null +++ b/files/all/etc/rc.local @@ -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 diff --git a/files/archer-c5/etc/rc.local b/files/archer-c5/etc/rc.local index 03491d3..a6114c5 100644 --- a/files/archer-c5/etc/rc.local +++ b/files/archer-c5/etc/rc.local @@ -6,4 +6,8 @@ # echo Y > $file #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