除了全局模式,有办法可以正常访问 linkedin.com 吗

23 天前
 doudouisamomo

我之前设置的在 ssrp 里把 linkedin.com 强制代理之后,用绕过大陆 ip 的方式是可以访问的

但是上周我重新刷了一遍软路由,同样的办法就行布通了,

我怀疑是大陆 ip 的列表没有原先的全。。。

有没有好的解决方案,求一个

496 次点击
所在节点    OpenWrt
5 条回复
coffeecat
16 天前
用最新版本 chinadns-ng ,把这个网址加到 gfwlist 列表 txt 里面。
运行举例:
chinadns-ng -m chnlist.txt -g rgfwlist.txt
含义:
在 chnlist.txt 里面网址的走 china-dns ,在 gfwlist.txt 里面的走 trust-dns ,其他的网址同时给两组 dns 解析,根据大陆 ip 列表判断取哪个结果,完美。
coffeecat
16 天前
如果只是 dns 的问题,用上面就好,如果搭配透明代理(例如监听了 1060 ),则要运行
chinadns-ng -m chnlist.txt -g gfwlist.txt -A inet@global@gfwip,inet@global@gfwip6
前提是运行:
nft add table inet global
nft add set inet global gfwip { type ipv4_addr;flags interval; }
chinadns-ng 会把解析出来的 ip v4 动态写入 gfwip
然后设置:
nft add rule inet global prerouting ip daddr @gfwip tcp dport 0-65535 counter redirect to :1060
nft add rule inet global output ip daddr @gfwip tcp dport 0-65535 counter redirect to :1060
coffeecat
16 天前
补充一下,还要确保 prerouting/output 链存在
nft create chain inet global prerouting { type nat hook prerouting priority dstnat; }
nft create chain inet global output { type nat hook output priority -100; }
doudouisamomo
15 天前
@coffeecat 我更新了 ssrp 之后似乎就 Ok 了,之前那个版本可能太老了是 21 年的,^_^
coffeecat
1 天前

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

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

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

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

© 2021 V2EX