|
@@ -7,7 +7,7 @@ source $CONFD/config
|
|
|
tmp=$(mktemp)
|
|
tmp=$(mktemp)
|
|
|
trap "/bin/rm -f ${tmp}" EXIT SIGHUP SIGINT SIGTERM
|
|
trap "/bin/rm -f ${tmp}" EXIT SIGHUP SIGINT SIGTERM
|
|
|
|
|
|
|
|
-curl -f -s -m 60 -o $tmp "https://www.badips.com/get/list/${banservice}/${banlevel}?age=${rangecheck}"
|
|
|
|
|
|
|
+curl -f -s -S -m 60 -o $tmp "https://www.badips.com/get/list/${banservice}/${banlevel}?age=${rangecheck}"
|
|
|
while read -r ip ; do
|
|
while read -r ip ; do
|
|
|
ipset -! add ${banset} ${ip} timeout $bantime
|
|
ipset -! add ${banset} ${ip} timeout $bantime
|
|
|
done < $tmp
|
|
done < $tmp
|