我之前设置的在 ssrp 里把 linkedin.com 强制代理之后,用绕过大陆 ip 的方式是可以访问的
但是上周我重新刷了一遍软路由,同样的办法就行布通了,
我怀疑是大陆 ip 的列表没有原先的全。。。
有没有好的解决方案,求一个
![]() |
1
coffeecat 8 天前
用最新版本 chinadns-ng ,把这个网址加到 gfwlist 列表 txt 里面。
运行举例: chinadns-ng -m chnlist.txt -g rgfwlist.txt 含义: 在 chnlist.txt 里面网址的走 china-dns ,在 gfwlist.txt 里面的走 trust-dns ,其他的网址同时给两组 dns 解析,根据大陆 ip 列表判断取哪个结果,完美。 |
![]() |
2
coffeecat 8 天前
如果只是 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 |
![]() |
3
coffeecat 8 天前 ![]() 补充一下,还要确保 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; } |
4
doudouisamomo OP @coffeecat 我更新了 ssrp 之后似乎就 Ok 了,之前那个版本可能太老了是 21 年的,^_^
|