Loading... ## 什么是自选IP 早期的时候就在思考,如果套上cf之后能自选ip,那么多好啊?特别是这些**香港的ip**。果不其然,这不是就发现真有大佬,利用CF partner设置了自选ip ## 原理 先说原理,这是很多人不明白的根本。 <!--more--> > 浏览器-Dnspod解析-分线路解析-自选ip-CFAnycast内部网络-源IP 这里实际上利用了CF Anycast的一个特性,就是在任意一个边缘节点上,可以和边缘出口互通。 本来CF是自动分配边缘节点,从自动分配的边缘节点在连接到源站ip,但是期间经过多少跳转不得而知。这里就是强制解析到自选ip,利用这个特点回源。 ## 配置 ### 回源 找一个CF partner配置,这里A记录解析到源站IP,就是设置回源。 ![chrome_2018-12-07_09-21-05-1-1-1.png](https://imgki.com/usr/uploads/2019/03/955248415.png) 之后面板会自动跳出CNAME地址,只有在partner这个面板中才会有cname ![chrome_2018-12-07_09-22-29-1-1-1.png](https://imgki.com/usr/uploads/2019/03/3624848511.png) ### 分线路解析 去Dnspod分线路解析,其中要有默认的ip地址。 境外:CNAME解析到上面的CNAME地市 默认:A记录到加速IP 移动/联通/电信分别设置加速IP ![chrome_2018-12-07_09-23-15-1-1-1.png](https://imgki.com/usr/uploads/2019/03/2978897065.png) 效果还有的 ![chrome_2018-12-07_09-28-12-1-1.png](https://imgki.com/usr/uploads/2019/03/624592442.png) ## 加速IP 我也没有什么扫描的方法,ip都是来源于网上的大佬 ```````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````` 104.18.62.1/24 香港hkix.net 104.16.35.1/24 香港hkix.net 104.16.36.1/24 香港hkix.net 104.18.35.1/24 香港hkix.net 104.18.36.1/24 香港hkix.net 104.16.54.1/24 香港 104.16.55.1/24 香港 104.18.128.1/24 香港 104.18.129.1/24 香港 104.18.130.1/24 香港 104.18.131.1/24 香港 104.18.132.1/24 香港 104.19.195.1/24 香港 104.19.196.1/24 香港 104.19.197.1/24 香港 104.19.198.1/24 香港 104.19.199.1/24 香港 ```````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````` --- 2018.12.16增加两个ip 新加坡-联通 104.28.12.1/24 日本-移动 104.20.157.1/24 --- 2019.3.1更新 实际上,通过最近一段时间来看,这样做也就是ping延迟低了,带宽没有太大提升。 --- 2019.5.2更新 ### 电信 大多数省直接使用1.0.0.0即可,延迟低,丢包少, 少部分还是需要换ip 新加坡 172.64.32.0-172.64.47.254 ### 移动 新加坡 104.18.48.0-104.18.63.255 104.24.112.0-104.24.127.255 104.27.128.0-104.27.143.255 104.28.0.0-104.28.15.255 圣何塞 cogentco.com 104.28.16.0-31.255 104.27.144.0-243.254 104.23.240.0-243.254 香港cloudflare1-100g.hkix.net 大部分都是这个通道 1.0.0.0-254 1.1.1.0-254 66.235.200.0-254 此段为IPOWER.COM endurance.com专用,有可能被跳转到IPOWER.COM endurance.com页面 104.16.80.0-95.255 104.16.175.255-104.16.191.255 香港直连 23.227.63.0-254 此段为shopify.com专用,有可能被跳转到shopify.com页面 104.16.0.0-79.255 104.16.96.0-175.254 104.16.192.0-207.255 新加坡 ae-0.cloudflare.sngpsi07.sg.bb.gin.ntt.net 都从香港ntt转发 104.28.0.0-15.255 ###联通 172.64.19.16 --- 2019.6.13 更新 hostloc上一个大佬发了一个扫描结果,测试了几个丢包还凑合 104.16.84.* ...... ...... [cf.zip][5] ## 关于扫IP 以下是几个关于扫IP的项目: [https://github.com/olixu/cloudflare-ip-ping]() [https://cfyes.net/]() 另外就是一个hostloc发现一个大佬用5天时间遍历扫描CF的节点 抓取并遍历所有Cloud Flare IPv4公开地址 ``` curl -X GET "https://api.cloudflare.com/client/v4/ips" ``` 大约有178万个IPv4地址: 173.245.48.0/20, 103.21.244.0/22, 103.22.200.0/22, 103.31.4.0/22, 141.101.64.0/18, 108.162.192.0/18, 190.93.240.0/20, 188.114.96.0/20, 197.234.240.0/22, 198.41.128.0/17, 162.158.0.0/15, 104.16.0.0/12, 172.64.0.0/13, 131.0.72.0/22 ``` {"result":{"ipv4_cidrs":["173.245.48.0\/20","103.21.244.0\/22","103.22.200.0\/22","103.31.4.0\/22","141.101.64.0\/18","108.162.192.0\/18","190.93.240.0\/20","188.114.96.0\/20","197.234.240.0\/22","198.41.128.0\/17","162.158.0.0\/15","104.16.0.0\/12","172.64.0.0\/13","131.0.72.0\/22"],"ipv6_cidrs":["2400:cb00::\/32","2606:4700::\/32","2803:f800::\/32","2405:b500::\/32","2405:8100::\/32","2a06:98c0::\/29","2c0f:f248::\/32"],"etag":"fb21705459fea38d23b210ee7d67b753"},"success":true,"errors":[],"messages":[]} ``` 遍历一次大概需要5天时间,不知道结果如何 [1]: https://imgki.com/usr/uploads/2019/03/955248415.png [2]: https://imgki.com/usr/uploads/2019/03/3624848511.png [3]: https://imgki.com/usr/uploads/2019/03/2978897065.png [4]: https://imgki.com/usr/uploads/2019/03/624592442.png [5]: https://imgki.com/usr/uploads/2019/06/1836638450.zip Last modification:September 5, 2020 © Allow specification reprint Like 1 如果觉得我的文章对你有用,请随意赞赏
6 comments
2024年8月份了,看到这篇文章属实有些晚了,有个疑惑想要请教下博主,希望可以得到答复。
移动-新加坡 104.18.48.0-104.18.63.255请问这里的"新加坡"指的是 这几个IP是新加坡的CDN入口地址吗?
还是指如果VPS部署在新加坡,那么推荐使用这几个IP地址来作为CDN?
如果是后者,是否意味着每个不同CDN IP都有自己的最快回源区域(即,虽然每个IP都能做到全球回源,但个别的IP在回源某些地区的时候更快)?
移动是指用户使用的运营商,相当于建议移动的用户使用这个线路。新加坡是指CF的节点入口是新加坡。CF是全球Anycast的,出口不一定是哪里(有可能有规律,但是目前我不知道),所以一般我只考虑入口问题。
ps,这个确实太老了,现在cf自选一般都是自己跑脚本确定自选ip,Github有几个项目你可以看看。
博主 按照你的教材配置好了,然后v2ray客户端和服务端需要配置什么呢?本来可以fq的,现在不能fq了
v2ray 都不用动 看不到你的配置不好说啥问题
6
所以,博主,后续有增加带宽的方法吗?我是移动宽带,好慢啊。。。