Fresh import of RIPE lines; also added ilines.asn.conf which is a list
of AS numbers assigned to Switzerland and Liechtenstein according to the RIPE NCC's database (ie delegated-ripencc-latest) Added class 250 for the asn I lines, and inserted them in users.conf This also obsoletes the update_ilines.sh shell script, replaced by the ilines_update.cron which will be run manually for a little while and then cronned every month/quarter or so. git-svn-id: svn+ssh://svn.ipng.nl/usr/share/subversion/repositories/ircnet.ipng.ch@34 c5d60b8d-fdcb-4146-b734-af4215e9eb71
This commit is contained in:
@ -6,19 +6,20 @@ MASTERLOG="/home/ircd/cronscripts/logs/${NAME}.log"
|
||||
|
||||
PATH=/usr/local/bin:/usr/bin:/bin:/home/ircd/bin
|
||||
|
||||
INPUT_DELEGATED="/home/ircd/ircd/ripedb/delegated-ripencc-latest"
|
||||
INPUT_DELEGATED="/home/ircd/ircd/etc/ripedb/delegated-ripencc-latest"
|
||||
OUTPUT_ROOT="/home/ircd/ircd/etc"
|
||||
|
||||
do_country()
|
||||
# $1=country $2=class $3=threshold
|
||||
{
|
||||
delegated_ilines.py -i $INPUT -o ilines.$1.$$ -c $1 -y $2
|
||||
delegated_ilines.py -i $INPUT_DELEGATED -o ilines.$1.$$ -c $1 -y $2
|
||||
[ ! -r ilines.$1.$$ ] && return -1
|
||||
[ `wc -l ilines.$1.$$ | awk '{ print $1 }'` -lt $3 ] && {
|
||||
warning "$1: File too short, less than $3 lines"
|
||||
rm -f -- ilines.$1.$$
|
||||
return -2
|
||||
}
|
||||
mv ilines.$1.$$ ../include/ilines.$1.conf
|
||||
mv ilines.$1.$$ $OUTPUT_ROOT/include/ilines.$1.conf
|
||||
return 0
|
||||
}
|
||||
|
||||
@ -32,7 +33,7 @@ do_asn()
|
||||
rm -f -- ilines.asn.$$
|
||||
return -2
|
||||
}
|
||||
mv ilines.asn.$$ ../include/ilines.asn.conf
|
||||
mv ilines.asn.$$ $OUTPUT_ROOT/include/ilines.asn.conf
|
||||
return 0
|
||||
}
|
||||
|
||||
@ -46,7 +47,7 @@ do_asset()
|
||||
rm -f -- ilines.as-set.$$
|
||||
return -2
|
||||
}
|
||||
mv ilines.as-set.$$ ../include/ilines.as-set.conf
|
||||
mv ilines.as-set.$$ $OUTPUT_ROOT/include/ilines.as-set.conf
|
||||
return 0
|
||||
}
|
||||
|
||||
@ -72,5 +73,6 @@ function bitcron_main()
|
||||
do_asset AS-IP-MAN-PEERING-TIX,AS-IP-MAN-PEERING-CIXP,AS-IP-MAN-PEERING-SWISSIX 300 1000
|
||||
|
||||
# svn commit -m "Automatic I-lines update by ilines_update.cron"
|
||||
# pkill -HUP ircd
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user