An IP address fetch tool based on ASN and BGP data.
The data acquisition logic is inspired by china-operator-ip.
The IP list (in CIDR format) is stored in the ip-lists branch of this repository,
and is automatically updated daily via GitHub Actions.
BGP routing data RIB snapshots (in MRT format) fetched via bgpkit-broker.
Currently:
- The
collector idused for IPv4 isrrc00 - The
collector idused for IPv6 isroute-views6
wgetpython3- asninfo (
cargo binstall asninfo) - bgpkit (
cargo binstall bgpkit-broker@0.7.6) - libbgpstream (refer to the link for installation instructions)
pip install .
# or pip install -e .bgpip-tools --help
Usage: bgpip-tools [OPTIONS] COMMAND [ARGS]...
Options:
-c, --config-dir TEXT Configuration directory
--help Show this message and exit.
Commands:
asn ASN-related commands
bgp BGP-related commands
bogon Bogon network-related commands
config Configuration-related commandsbgpip-tools bgp generate- Thanks to the original project and author gaoyifan/china-operator-ip
- Thanks to the RIPE RIS project for providing BGP data sources
- Thanks to the University of Oregon Route Views Archive Project for BGP data sources
- Thanks to the bgpkit project for related tools
- Thanks to the bgpstream project for related tools