2015-11-28 14:25:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
INTERFACE="$3"
|
2016-01-26 23:48:21 +00:00
|
|
|
MAC="$8"
|
2016-01-24 21:37:34 +00:00
|
|
|
brctl=/sbin/brctl
|
2016-03-05 17:51:02 +00:00
|
|
|
BLACKLISTFILE=/opt/freifunk/tunneldigger-blacklist.txt
|
|
|
|
wget -q -O /opt/freifunk/tunneldigger-blacklist.txt https://raw.githubusercontent.com/Freifunk-Troisdorf/tunneldigger-blockliste/master/macs.txt
|
|
|
|
if [ -f $BLACKLISTFILE ]
|
|
|
|
then
|
|
|
|
BLOCKLISTE=$(cat /opt/freifunk/tunneldigger-blacklist.txt)
|
|
|
|
else
|
|
|
|
touch=$BLOCKLISTE
|
|
|
|
fi
|
|
|
|
|
|
|
|
for i in $BLOCKLISTE;
|
|
|
|
do
|
|
|
|
if [[ $i == $MAC ]]; then
|
|
|
|
exit 1
|
|
|
|
echo "$MAC wurde blockiert"
|
|
|
|
fi
|
|
|
|
done
|
2015-11-29 21:34:32 +00:00
|
|
|
|
2015-12-13 12:33:33 +00:00
|
|
|
/bin/ip link set dev $INTERFACE up mtu 1312
|
2016-01-24 21:37:34 +00:00
|
|
|
#echo "enabled" > /sys/devices/virtual/net/$INTERFACE/batman_adv/no_rebroadcast
|
2016-01-24 21:39:36 +00:00
|
|
|
$brctl addif br-nodes $INTERFACE
|