moonshawdo / checkgoogleip

主要是用来检查哪些IP可以用在goagent上面
Apache License 2.0
584 stars 241 forks source link

添加IPV6地址检测 #5

Closed wugh closed 9 years ago

wugh commented 10 years ago

能不能添加IPV6地址检测呢?

moonshawdo commented 10 years ago

我的光猫不知道要怎么配置才可以弄出ipv6,试装了gogoCLIENT,也连接不了服务器,因此也用不了ipv6,所以暂时不能支持。

gshmu commented 10 years ago

@wugh 把你的网开个VPN,给开发者连上,然后就有ipv6帮你测试了。

wugh commented 10 years ago

那我先试试自己改代码测试一下

blob2015 commented 9 years ago

期待ipv6

wugh commented 9 years ago

不知道有没有办法获取到google的ipv6网段,我都是通过ping来获取网段,然后获取里面的一些ip,目前写了个脚本,自己用着没问题,你可以尝试尝试,只能在linux下用哦 https://gist.github.com/wugh/5ed0f4d7bf98a3741409

CNMan commented 9 years ago

@wugh http://bgp.he.net/AS15169#_prefixes6 其他AS类似 AS15169 AS36384 AS16591 AS41264 AS36492 AS22577 AS24424 AS36040 AS19448 AS22859 AS36039 AS36385 AS45566 AS36987

NSLOOKUP也能获取一些:

C:\Windows\system32>nslookup -q=TXT _netblocks2.google.com 8.8.8.8
服务器:  google-public-dns-a.google.com
Address:  8.8.8.8

非权威应答:
_netblocks2.google.com  text =

        "v=spf1 ip6:2001:4860:4000::/36 ip6:2404:6800:4000::/36 ip6:2607:f8b0:4000::/36 ip6:2800:3f0:4000::/36 ip6:2a00:1450:4000::/36 ip6:2c0f:fb50:4000::/36 ~all"

C:\Windows\system32>nslookup -q=TXT _netblocks2.google.com 8.8.4.4
服务器:  google-public-dns-b.google.com
Address:  8.8.4.4

非权威应答:
_netblocks2.google.com  text =

        "v=spf1 ip6:2001:4860:4000::/36 ip6:2404:6800:4000::/36 ip6:2607:f8b0:4000::/36 ip6:2800:3f0:4000::/36 ip6:2a00:1450:4000::/36 ip6:2c0f:fb50:4000::/36 ~all"
wugh commented 9 years ago

@CNMan 我当时也去查询这个netblocks里面的IP,但是这个range非常大,而且好多都无法ping通,是不是因为虽然google有这么多v6的IP网段,但是很多都没有启用呢?

CNMan commented 9 years ago

@wugh 所以v6是不是该换个思路了?整个IP段check不是好办法 感觉 https://github.com/lennylxx/ipv6-hosts 这个项目的思路不错,找出domain规律,再check dns返回的结果