Replies: 13 comments
-
|
我没有 OpenWrt 系统设备,所以无法给予你该系统相关帮助。 有些 DNS 程序也能实现类似的功能。 |
Beta Was this translation helpful? Give feedback.
-
怎么根据IP判断Cloudflare CDN,是不是有一个IP列表的 |
Beta Was this translation helpful? Give feedback.
-
|
Cloudflare CDN 的 IP 列表: |
Beta Was this translation helpful? Give feedback.
-
|
我搞了套mosdns来当dns,如果 域名dns请求 返回的 ip 在CF的ip段,则自动替换dns响应 ip为优选ip,试了下我这里效果不算好,经常tls握手不成功,还不如dns默认返回的cf ip 连接性好了,你要无聊可以试试 |
Beta Was this translation helpful? Give feedback.
-
|
我想了用iptables来实现,但是不行,在openwrt上写了规则,但nas没起作用,奇怪 |
Beta Was this translation helpful? Give feedback.
-
ipset -N cf hash:net;
for i in $(</etc/config/ip.txt grep -oE "[0-9\.\/]+");do echo $i;ipset add cf $i;done;
iptables -t nat -I PREROUTING ! -d 172.64.68.79 -m set --match-set cf dst -j DNAT --to-destination 172.64.68.79/etc/config/ip.txt 就是cloudflare的IP段. |
Beta Was this translation helpful? Give feedback.
-
|
我是在 openwrt 上修改 hosts 使用的。 |
Beta Was this translation helpful? Give feedback.
-
这个有什么最新的进展么~ |
Beta Was this translation helpful? Give feedback.
-
在Openwrt下使用 |
Beta Was this translation helpful? Give feedback.
-
再具体一点呗.. 看不懂这两条命令 IP段丢哪里 |
Beta Was this translation helpful? Give feedback.
-
@ihuanx 这个就是具体命令了,上面 |
Beta Was this translation helpful? Give feedback.
-
|
@tofuliang |
Beta Was this translation helpful? Give feedback.
-
这个过程对于浏览器来说应该是透明的.可以进一步做下测试,直接把 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
或者怎么判断那些站点是套了CF的
Beta Was this translation helpful? Give feedback.
All reactions