使用 Cloudflare 自选 IP 优化移动宽带下 Notion 访问

2020-07-16 12:50:59 +08:00
 Baboonowen

简明操作

  1. 下载 Cloudflare 边缘节点批量测试工具 ( https://github.com/olixu/cloudflare-ip-ping)
  2. 解压压缩包用 Python 运行 pingip.py ,需要设定两个参数看说明即可;
  3. 批量测试结束过后根据目录内生成的 log 文件选择几个不丢包的 IP,写入系统 hosts 文件,例如西南地区移动家宽可以直接使用:
# Notion
104.19.101.15 notion.so
104.19.92.15 notion.so
104.19.31.15 notion.so
104.19.7.15 notion.so
104.19.72.15 notion.so
104.19.55.15 notion.so
104.20.242.15 notion.so
104.20.235.15 notion.so
104.20.239.15 notion.so
172.65.212.15 notion.so
172.65.70.15 notion.so
172.67.17.15 notion.so
104.19.20.15 notion.so
104.19.191.15 notion.so
104.19.38.15 notion.so
104.16.24.15 notion.so
104.19.21.15 notion.so
104.19.57.15 notion.so
104.19.3.15 notion.so
104.18.153.15 notion.so
104.19.68.15 notion.so
104.18.135.15 notion.so
104.19.86.15 notion.so
162.159.193.15 notion.so
162.159.13.15 notion.so
104.18.235.15 notion.so
104.19.105.15 notion.so
162.159.41.15 notion.so
198.41.193.15 notion.so
104.18.185.15 notion.so
104.20.88.15 notion.so
104.20.169.15 notion.so
104.20.81.15 notion.so
104.19.230.15 notion.so
104.20.236.15 notion.so
104.19.216.15 notion.so
104.20.195.15 notion.so
172.65.37.15 notion.so
172.65.109.15 notion.so
172.65.110.15 notion.so
172.65.2.15 notion.so
172.65.31.15 notion.so
172.65.252.15 notion.so
172.65.43.15 notion.so
172.65.237.15 notion.so
172.65.238.15 notion.so
172.67.18.15 notion.so
104.19.101.15 www.notion.so
104.19.92.15 www.notion.so
104.19.31.15 www.notion.so
104.19.7.15 www.notion.so
104.19.72.15 www.notion.so
104.19.55.15 www.notion.so
104.20.242.15 www.notion.so
104.20.235.15 www.notion.so
104.20.239.15 www.notion.so
172.65.212.15 www.notion.so
172.65.70.15 www.notion.so
172.67.17.15 www.notion.so
104.19.20.15 www.notion.so
104.19.191.15 www.notion.so
104.19.38.15 www.notion.so
104.16.24.15 www.notion.so
104.19.21.15 www.notion.so
104.19.57.15 www.notion.so
104.19.3.15 www.notion.so
104.18.153.15 www.notion.so
104.19.68.15 www.notion.so
104.18.135.15 www.notion.so
104.19.86.15 www.notion.so
162.159.193.15 www.notion.so
162.159.13.15 www.notion.so
104.18.235.15 www.notion.so
104.19.105.15 www.notion.so
162.159.41.15 www.notion.so
198.41.193.15 www.notion.so
104.18.185.15 www.notion.so
104.20.88.15 www.notion.so
104.20.169.15 www.notion.so
104.20.81.15 www.notion.so
104.19.230.15 www.notion.so
104.20.236.15 www.notion.so
104.19.216.15 www.notion.so
104.20.195.15 www.notion.so
172.65.37.15 www.notion.so
172.65.109.15 www.notion.so
172.65.110.15 www.notion.so
172.65.2.15 www.notion.so
172.65.31.15 www.notion.so
172.65.252.15 www.notion.so
172.65.43.15 www.notion.so
172.65.237.15 www.notion.so
172.65.238.15 www.notion.so
172.67.18.15 www.notion.so
172.67.18.15 notion.so
104.19.101.15 msgstore.www.notion.so
104.19.92.15 msgstore.www.notion.so
104.19.31.15 msgstore.www.notion.so
104.19.7.15 msgstore.www.notion.so
104.19.72.15 msgstore.www.notion.so
104.19.55.15 msgstore.www.notion.so
104.20.242.15 msgstore.www.notion.so
104.20.235.15 msgstore.www.notion.so
104.20.239.15 msgstore.www.notion.so
172.65.212.15 msgstore.www.notion.so
172.65.70.15 msgstore.www.notion.so
172.67.17.15 msgstore.www.notion.so
104.19.20.15 msgstore.www.notion.so
104.19.191.15 msgstore.www.notion.so
104.19.38.15 msgstore.www.notion.so
104.16.24.15 msgstore.www.notion.so
104.19.21.15 msgstore.www.notion.so
104.19.57.15 msgstore.www.notion.so
104.19.3.15 msgstore.www.notion.so
104.18.153.15 msgstore.www.notion.so
104.19.68.15 msgstore.www.notion.so
104.18.135.15 msgstore.www.notion.so
104.19.86.15 msgstore.www.notion.so
162.159.193.15 msgstore.www.notion.so
162.159.13.15 msgstore.www.notion.so
104.18.235.15 msgstore.www.notion.so
104.19.105.15 msgstore.www.notion.so
162.159.41.15 msgstore.www.notion.so
198.41.193.15 msgstore.www.notion.so
104.18.185.15 msgstore.www.notion.so
104.20.88.15 msgstore.www.notion.so
104.20.169.15 msgstore.www.notion.so
104.20.81.15 msgstore.www.notion.so
104.19.230.15 msgstore.www.notion.so
104.20.236.15 msgstore.www.notion.so
104.19.216.15 msgstore.www.notion.so
104.20.195.15 msgstore.www.notion.so
172.65.37.15 msgstore.www.notion.so
172.65.109.15 msgstore.www.notion.so
172.65.110.15 msgstore.www.notion.so
172.65.2.15 msgstore.www.notion.so
172.65.31.15 msgstore.www.notion.so
172.65.252.15 msgstore.www.notion.so
172.65.43.15 msgstore.www.notion.so
172.65.237.15 msgstore.www.notion.so
172.65.238.15 msgstore.www.notion.so
172.67.18.15 msgstore.www.notion.so

注意事项

使用效果

经西南某地区移动家宽测试,notion 访问时间从 20+s (包含复杂的 dashboard 和数据库载入),变为几秒钟内全部加载完成。简单的页面几乎秒开,推荐使用。

原理阐释

Notion 使用 Cloudflare 作内容分发与攻击防御,但该服务在中国的情况比较复杂。
Cloudflare 通过 anycast 技术智能分配边缘节点,但是中国网络状况复杂,自动分配的节点可能会遭遇较高的丢包(特别是在移动宽带之下),甚至有人直接无法直连 notion 。
在这里,我们通过测试不丢包的服务器地址并将其在 hosts 文件中指向 notion 即可实现经由最佳服务器的流畅访问。

Source: 言理( https://quoth.win/943.html)

2014 次点击
所在节点    分享发现
9 条回复
wysnylc
2020-07-16 14:15:35 +08:00
用 pinginfoview 就行
Baboonowen
2020-07-16 15:36:23 +08:00
@wysnylc 这个也有 cf ip 的库吗?
leafleave
2020-07-16 15:42:08 +08:00
有时候延迟丢包都低,但是传输速率,有没有什么方法测试到不同服务器的传输速率
cnrting
2020-07-16 15:48:24 +08:00
hosts 放么多。。。另外 cf 现在不是被随机阻断了吗
Baboonowen
2020-07-16 15:53:39 +08:00
@leafleave 网上倒是有一个脚本但是有点问题我跑不动
Baboonowen
2020-07-16 15:53:59 +08:00
@cnrting 这些挑出来的服务器还行哦
wysnylc
2020-07-16 16:00:31 +08:00
whileFalse
2020-07-16 16:24:49 +08:00
加个 requirements.txt 吧。缺包跑不起来。
Baboonowen
2020-07-16 17:33:03 +08:00
@wysnylc 哈别人都弄好了呀

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/690547

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX