ansible.fftdf.supernode/roles/10.3-tunneldigger/templates/bataddif.sh.j2

17 lines
422 B
Plaintext
Raw Normal View History

2023-04-08 12:49:34 +00:00
#!/bin/bash
INTERFACE="$3"
MAC="$8"
brctl=/sbin/brctl
BLOCKLISTE=$(/bin/cat /opt/freifunk/tunneldigger-blacklist.txt)
wget -q -O /opt/freifunk/tunneldigger-blacklist.txt https://raw.githubusercontent.com/Freifunk-Troisdorf/tunneldigger-blockliste/master/macs.txt
/bin/ip link set dev $INTERFACE up mtu 1312
for i in $BLOCKLISTE;
do
if [[ $i == $MAC ]]; then
exit 1
fi
done
$brctl addif br-nodes $INTERFACE