initial commit
commit
392a7ae479
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
#!/bin/sh
|
Loading…
Reference in New Issue