'智能'的 OpenWrt 的一些问题

2015-11-25 18:36:13 +08:00
 sengxian
在电脑上 ss 一切正常。但路由器上就不行,国外的还是打不开
如图, dns 转发已经设置好

ss 的 udp 转发也设置好了

chinadns 配置


电脑上打开国外的网站,会出现 dns 解析错误,于是在路由器上测试 dns 服务器
```
root@Gargoyle:~# nslookup www.baidu.com 127.0.0.1:5354
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost

Name: www.baidu.com
Address 1: 119.75.218.70
Address 2: 119.75.217.109
root@Gargoyle:~# nslookup www.google.com 127.0.0.1:5354
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost

Name: www.google.com
Address 1: (null)
root@Gargoyle:~# nslookup www.google.com 127.0.0.1:5152
Server: 127.0.0.1
Address 1: 127.0.0.1

Name: www.google.com
Address 1: (null)
Address 2: 74.125.239.50 nuq04s19-in-f18.1e100.net
Address 3: 74.125.239.52 nuq04s19-in-f20.1e100.net
Address 4: 74.125.239.51 nuq04s19-in-f19.1e100.net
Address 5: 74.125.239.49 nuq04s19-in-f17.1e100.net
Address 6: 74.125.239.48 nuq04s19-in-f16.1e100.net
root@Gargoyle:~# nslookup www.baidu.com 127.0.0.1:5152
Server: 127.0.0.1
Address 1: 127.0.0.1

Name: www.baidu.com
Address 1: 103.235.46.39
```
5152 是 ss udp 转发的端口
5354 是 chinadns 的端口
现在看来是 ss udp 转发的问题?怎么解决?
2485 次点击
所在节点    问与答
9 条回复
acrisliu
2015-11-25 18:54:22 +08:00
都升级到最新版
jasontse
2015-11-25 19:02:40 +08:00
你的服务端支持 UDP 吗
sengxian
2015-11-25 19:07:29 +08:00
@jasontse 嗯,支持,刚搭的最新版,我电脑上是好的
@acrisliu 之前可以用,不知怎么调了一下又不行了
anyfc
2015-11-25 19:53:50 +08:00
chinadns 太旧了?
yaoppp
2015-11-25 19:57:04 +08:00
玩不转 chinadns ,我用白名单
cst4you
2015-11-25 23:51:01 +08:00
@yaoppp 白名单+1
可控性一流, 直接进路由器 vim 名单重启下 dns 服务就好.
k9982874
2015-11-25 23:59:40 +08:00
我的经验是不要用 op 官方 ss , github 上有编译好的 ss 。一般的路由器不要用 gfwlist 或 chiandns ,规则匹配很花时间。你的路由性能特别 nb 当我没说。
且在使用 chibadns 时会把所有非国内地址的流量都走代理,无意义的耗费大量流量。
建议使用 ipset 搭配自己的白名单。
jonechenug
2015-11-26 00:04:47 +08:00
只用 ss 就行了,不用上 chiandns ,另外如果用了转发(或者 chinadns),你要保证你的 ss 服务器是 ip 地址,要不然重启后会发现无法连上 ss 服务器域名(无解析)。用户友好做的最好的应该是极路由第三方,一键安装脚本,图形设置界面。
wgf2008
2015-11-26 12:23:03 +08:00
其实我也遇到了,不知道咋搞

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

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

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

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

© 2021 V2EX