mod_asn looks up the AS and network prefix of IP address
mod_asn is an Apache module doing lookups of the autonomous system (AS)[1], and the network prefix[2] which contains a given (clients) IP address. It is written with scalability in mind. To do high-speed lookups, it uses the PostgreSQL ip4r datatype[3] that is indexable with a Patricia Trie[4] algorithm to store network prefixes. This is the only algorithm that can search through the ~250.000 existing prefixes in a breeze. It comes with script to create such a database (and keep it up to date) with snapshots from global routing data - from a router's "view of the world", so to speak. Apache-internally, the module sets the looked up data as env table variables, for perusal by other Apache modules. In addition, it can send it as response headers to the client. It is published under the Apache License, Version 2.0. Source code can be obtained here: http://svn.poeml.de/svn/mod_asn/ Author: Peter Poeml Links: [1] http://en.wikipedia.org/wiki/Autonomous_system_(Internet) [2] http://en.wikipedia.org/wiki/Subnetwork [3] http://pgfoundry.org/projects/ip4r/ [4] http://en.wikipedia.org/wiki/Radix_tree
Source Files
Filename | Size | Changed | Actions |
---|---|---|---|
INSTALL | 00000049434.83 KB | 1239578062over 15 years ago | |
README | 00000037603.67 KB | 1239578064over 15 years ago | |
apache2-mod_asn.changes | 00000032053.13 KB | 1283754600over 14 years ago | |
apache2-mod_asn.spec | 00000031353.06 KB | 1283754600over 14 years ago | |
asn.sql | 0000000271271 Bytes | 1239578068over 15 years ago | |
asn_get_routeviews.py | 00000053945.27 KB | 1239578068over 15 years ago | |
asn_import.py | 00000013951.36 KB | 1239578069over 15 years ago | |
mod_asn-1.3.tar.gz | 000002122820.7 KB | 1248924558over 15 years ago | |
mod_asn-1.4.tar.gz | 000002228221.8 KB | 1269691779over 14 years ago | |
mod_asn-1.5.tar.gz | 000002297622.4 KB | 1283754600over 14 years ago | |
mod_asn.c | 000001297712.7 KB | 1239578071over 15 years ago | |
mod_asn.conf | 0000000904904 Bytes | 1239578072over 15 years ago |
Revision 13 (latest revision is 14)
hostmaster
committed
over 14 years ago (revision 13)
update