NTOP: Regenerating AS-list.txt
I’m currently deploying ntop as a monitoring service between our firewall and internet gateway. Ntop comes with the ability to give me a report on what trafic goes to which AS number. However, it does this by using a plain text file, called AS-list.txt, containing a list of prefixes by AS number. The bundled file is very old and I’ve until now had difficulties getting it updated. One mail on the list suggested using the report from cidr-report.org, but I’ve found the data incomplete. I’ve written a small script to generate this data with raw data from RIPE, ARIN and APNIC. I therefore lack information from LACNIC and AfriNic, but that information isn’t important for me. My main interest is mapping European trafic.
You can find the file here: http://agitate.dk/files/whois.route.parser.rb
The file generates a file called AS-list.txt in your current directory. Change the outputfile variable to adjust this.
My sources are the database dumps from RIPE and RADB on APNIC, as well as the origins report from ARIN.
Tell me if you got any problems with the script.
4 Comments
Jump to comment form | comments rss [?] | trackback uri [?]