initial commit

master
ademant 2019-02-11 11:50:24 +01:00
commit 392a7ae479
3 changed files with 22 additions and 0 deletions

18
filter_mac.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
startstop=$1
if [ -z "$startstop" ]; then
startstop="start"
fi
macsrc=$(cat ./mac.txt)
case "$startstop" in
start)
for i in $macsrc; do
echo iptables -I INPUT -m mac --mac-src $i -j DROP
done
;;
stop)
;;
esac

1
ip_lists.sh Normal file
View File

@ -0,0 +1 @@
#!/bin/sh

3
mac.txt Normal file
View File

@ -0,0 +1,3 @@
00:50:8b:01:02:03
00:07:e9:01:02:03
00:60:2f:01:02:03