commit 392a7ae479a74e1c1b1c51b722441f411375a06e Author: ademant Date: Mon Feb 11 11:50:24 2019 +0100 initial commit diff --git a/filter_mac.sh b/filter_mac.sh new file mode 100755 index 0000000..8039cc9 --- /dev/null +++ b/filter_mac.sh @@ -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 diff --git a/ip_lists.sh b/ip_lists.sh new file mode 100644 index 0000000..1a24852 --- /dev/null +++ b/ip_lists.sh @@ -0,0 +1 @@ +#!/bin/sh diff --git a/mac.txt b/mac.txt new file mode 100644 index 0000000..ea655ea --- /dev/null +++ b/mac.txt @@ -0,0 +1,3 @@ +00:50:8b:01:02:03 +00:07:e9:01:02:03 +00:60:2f:01:02:03