|
|
@@ -5,6 +5,7 @@ CONFD=/etc/e-router
|
|
|
source $CONFD/config
|
|
|
|
|
|
tmp=$(mktemp)
|
|
|
+trap "/bin/rm -f ${tmp}" EXIT SIGHUP SIGINT SIGTERM
|
|
|
|
|
|
while read -r asn ; do
|
|
|
[[ "$asn" =~ ^AS[0-9]{1,}$ ]] || continue
|
|
|
@@ -14,5 +15,3 @@ done < $CONFD/WHITE.asn
|
|
|
grep -Eo "([0-9.]+){4}/[0-9]+" $tmp | while read -r net ; do
|
|
|
ipset -! add $whiteset $net timeout $routettl
|
|
|
done
|
|
|
-
|
|
|
-trap "/bin/rm -f ${tmp}" EXIT SIGHUP SIGINT SIGTERM
|