All Projects → gaoyifan → China Operator Ip

gaoyifan / China Operator Ip

Licence: mit
中国运营商IPv4/IPv6地址库-每日更新

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to China Operator Ip

ebook
Third edition of the Computer Networking: Principles, Protocols and Practice ebook
Stars: ✭ 64 (-94.9%)
Mutual labels:  ipv6, bgp, ip
Cnp3
Computer Networking : Principles, Protocols and Practice (first and second edition, third edition is being written on https://github.com/cnp3/ebook)
Stars: ✭ 471 (-62.47%)
Mutual labels:  ipv6, ip, bgp
captcp
A open source program for TCP analysis of PCAP files
Stars: ✭ 110 (-91.24%)
Mutual labels:  ipv6, ip
hphr
Halophile Router (a VyOS-based, SaltStack-automated, NetBox-configured router for small provider networks)
Stars: ✭ 39 (-96.89%)
Mutual labels:  ipv6, bgp
Geolocate-IP-Browser-Extension
A browser extension, which shows you the origin of your IP address.
Stars: ✭ 21 (-98.33%)
Mutual labels:  ipv6, ip
go-external-ip
a Golang library to get your external ip from multiple services
Stars: ✭ 55 (-95.62%)
Mutual labels:  ipv6, ip
node-ip2region
IP/IPv6 to region on Node.js (IP/IPv6 地址到区域运营商)
Stars: ✭ 95 (-92.43%)
Mutual labels:  ipv6, ip
bacnet-stack
BACnet Protocol Stack library provides a BACnet application layer, network layer and media access (MAC) layer communications services.
Stars: ✭ 199 (-84.14%)
Mutual labels:  ipv6, ip
Php Ip Tools
Useful tools for IP manipulations
Stars: ✭ 152 (-87.89%)
Mutual labels:  ipv6, ip
Aggregator
A stand-alone class implementation of the IPv4+IPv6 IP+CIDR aggregator from CIDRAM.
Stars: ✭ 19 (-98.49%)
Mutual labels:  ipv6, ip
Ip
🌏根据IpV4、IpV6地址获取定位信息的PHP🐘组件 PHP components that obtain location information based on IpV4, IpV6 addresses
Stars: ✭ 23 (-98.17%)
Mutual labels:  ipv6, ip
private-ip
Check if IP address is private.
Stars: ✭ 26 (-97.93%)
Mutual labels:  ipv6, ip
IPpy
🚀 Ping IP addresses and domains in parallel to find the accessible and inaccessible ones.
Stars: ✭ 54 (-95.7%)
Mutual labels:  ipv6, ip
pocketinternet
A Pocket Internet for teaching how the Internet really works.
Stars: ✭ 28 (-97.77%)
Mutual labels:  ipv6, bgp
Iptools
PHP Library for manipulating network addresses (IPv4 and IPv6)
Stars: ✭ 163 (-87.01%)
Mutual labels:  ipv6, ip
china-ip-list
每小时更新中国IP范围列表,Update Mainland China ip‘s list in everyhour
Stars: ✭ 40 (-96.81%)
Mutual labels:  ip, china
The router
TheRouter is a software packet router based on DPDK an NPF libraries.
Stars: ✭ 123 (-90.2%)
Mutual labels:  ipv6, bgp
Exabgp
The BGP swiss army knife of networking
Stars: ✭ 1,713 (+36.49%)
Mutual labels:  ipv6, bgp
ip
Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
Stars: ✭ 212 (-83.11%)
Mutual labels:  ipv6, ip
Bgp Dashboard
BGP Dashboard and Monitoring Web Application
Stars: ✭ 268 (-78.65%)
Mutual labels:  ipv6, bgp

中国运营商IP地址库

FOSSA Status

依据中国网络运营商分类的IP地址库

为什么创造这个项目

在国内,BGP/ASN数据分析的商业服务只有一个ipip.net,是目前运营商IP库准确度最高的服务商,我认为没有之一。

随着互联网规模的增加,为了处理大批量的路由数据,边界网关协议(即BGP,下同)应运而生,是互联网的基础协议之一。为了保证了全球网络路由的可达性,但凡需要在互联网中注册一个IP(段),都需要借助BGP协议对外广播,这样互联网中的其他自治域才能学习到这段地址的路由信息,其它主机才能成功访问这个IP(段)。因此可以说,BGP数据是最适合分析运营商IP地址的数据来源之一。

但是,目前国内绝大多数IP库都由WHOIS数据库作为基础数据来源。WHOIS数据仅表示某个IP被哪个机构注册,但无从知晓该IP被用在何处,这就导致许多非运营商自己注册的IP地址无法被正确分类。ipip.net是最早开始做BGP/ASN数据分析的公司之一,数据准确性甩其它库几条街。但很可惜是,ipip.net作为商业公司,绝大多数高质量的IP数据都是收费的,且价格不菲。

由于在做其他课题时需要处理BGP数据,本着开源精神,我将这部分代码重新封装,创造了这个项目。至于如何使用,大家可以自己发挥想象力。如:@ustclug将其用在权威DNS服务器上做分域解析;我则借助这个IP库做了一个多出口的网关,访问不同的运营商时走不同的线路(如果都不匹配则走国外vps,原因你懂的)。

但由于个人精力有限,IP库的覆盖率并不及ipip.net,尤其是一些骨干网节点的地址,这些地址往往是核心路由设备或企业托管给运营商的地址,对普通用户影响不大。

如果大家有任何建议或疑问,欢迎提交issue。

收录的运营商

  • 中国电信(chinanet)
  • 中国移动(cmcc)
  • 中国联通(unicom)
  • 中国铁通(tietong)
  • 教育网(cernet)
  • 科技网(cstnet)
  • 鹏博士(drpeng) <试验阶段>
  • 谷歌中国(googlecn) <试验阶段>

P.S. 鹏博士集团(包括:鹏博士数据、北京电信通、长城宽带、宽带通)的IP地址并非全都由独立的自治域做广播,目前大部分地址仍由电信、联通、科技网代为广播。故列表中的地址仅为鹏博士拥有的部分IP地址,且这些IP同时具有电信、联通两个上级出口。详见issue #2.

如何获取数据

使用预生成结果

IP列表(CIDR格式)保存在仓库的ip-lists分支中,Travis CI每日自动更新。

git clone -b ip-lists https://github.com/gaoyifan/china-operator-ip.git

P.S. stat文件记录了各运营商的IP数量的统计信息。

从BGP数据生成

安装依赖

生成IP列表

./generate.sh

统计IP数量

./stat.sh

致谢

协议

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].