Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

移除 amazon 中国(宁夏)的地址 #5

Open
zh99998 opened this issue Feb 2, 2020 · 5 comments
Open

移除 amazon 中国(宁夏)的地址 #5

zh99998 opened this issue Feb 2, 2020 · 5 comments
Assignees
Labels

Comments

@zh99998
Copy link

zh99998 commented Feb 2, 2020

52.82 下有多个段归属 amazon 中国(宁夏)

示例:
https://whois.ipip.net/AS135629/52.82.128.0/24

@SteamedFish SteamedFish self-assigned this Feb 2, 2020
@SteamedFish SteamedFish added the bug label Feb 2, 2020
@zh99998
Copy link
Author

zh99998 commented Feb 2, 2020

@zh99998 zh99998 changed the title 移除 amazon 中国的地址 移除 amazon 中国(宁夏)的地址 Feb 2, 2020
@SteamedFish
Copy link
Owner

宁夏应该是新增的,之前只排除了北京。明天改一下

@zh99998
Copy link
Author

zh99998 commented Feb 2, 2020

还有个 https://whois.ipip.net/AS23650/103.96.214.0/24
归属于 g3s,在中国电信有宣告。

@SteamedFish
Copy link
Owner

Amazon 网段的处理

那个 aws.py 脚本早就废弃了,我把它删了,现在还能用的是 generate_from_template.py

generate_from_template.py 脚本是正确排除了所有中国的网段的。问题是 amazon 把 52.82.128.0/19 网段标记成了 GLOBAL 而不是 cn-northwest-1,不知道为什么。

    {
      "ip_prefix": "52.82.128.0/19",
      "region": "GLOBAL",
      "service": "CLOUDFRONT"
    },

暂时没想好要怎么优雅的处理这些网段。我先研究一下 amazon 的文档看看 GLOBAL 是什么含义再决定怎么处理。

he.net 网段的处理

目前看起来用 AS6939 来指代 he.net 是不合适的。在找到更好的办法之前,我先把 he.net 整个去掉

SteamedFish added a commit that referenced this issue Feb 3, 2020
@SteamedFish
Copy link
Owner

看了一下文档

The AWS Region or GLOBAL for edge locations. Note that the CLOUDFRONT and ROUTE53 ranges are GLOBAL.

所有的边缘节点都是 GLOBAL,没有区分国家。这种情况比较难处理了 -_- 排除掉所有 GLOBAL 也不太合适。回头我把 GLOBAL 部分单独摘出来,单独处理吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants