Skip to content

基于ASN和BGP的国内运营商IP地址表 - 每日更新

Notifications You must be signed in to change notification settings

Detavern/bgpip-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BGPIP Tools

An IP address fetch tool based on ASN and BGP data.

The data acquisition logic is inspired by china-operator-ip.

How to Getting the Data

The IP list (in CIDR format) is stored in the ip-lists branch of this repository,
and is automatically updated daily via GitHub Actions.

Data Sources

BGP routing data RIB snapshots (in MRT format) fetched via bgpkit-broker. Currently:

  • The collector id used for IPv4 is rrc00
  • The collector id used for IPv6 is route-views6

Instructions

Dependencies

  • wget
  • python3
  • asninfo (cargo binstall asninfo)
  • bgpkit (cargo binstall bgpkit-broker@0.7.6)
  • libbgpstream (refer to the link for installation instructions)

Installation

pip install .
# or pip install -e .

Usage

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 commands

Generate IP Network List

bgpip-tools bgp generate

Acknowledgements

About

基于ASN和BGP的国内运营商IP地址表 - 每日更新

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages