V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
sengxian
V2EX  ›  问与答

'智能'的 OpenWrt 的一些问题

  •  
  •   sengxian · 2015-11-25 18:36:13 +08:00 · 2470 次点击
    这是一个创建于 3080 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在电脑上 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 转发的问题?怎么解决?
    9 条回复    2015-11-26 12:23:03 +08:00
    acrisliu
        1
    acrisliu  
       2015-11-25 18:54:22 +08:00 via Android
    都升级到最新版
    jasontse
        2
    jasontse  
       2015-11-25 19:02:40 +08:00 via Android
    你的服务端支持 UDP 吗
    sengxian
        3
    sengxian  
    OP
       2015-11-25 19:07:29 +08:00
    @jasontse 嗯,支持,刚搭的最新版,我电脑上是好的
    @acrisliu 之前可以用,不知怎么调了一下又不行了
    anyfc
        4
    anyfc  
       2015-11-25 19:53:50 +08:00
    chinadns 太旧了?
    yaoppp
        5
    yaoppp  
       2015-11-25 19:57:04 +08:00 via Android
    玩不转 chinadns ,我用白名单
    cst4you
        6
    cst4you  
       2015-11-25 23:51:01 +08:00
    @yaoppp 白名单+1
    可控性一流, 直接进路由器 vim 名单重启下 dns 服务就好.
    k9982874
        7
    k9982874  
       2015-11-25 23:59:40 +08:00 via iPhone
    我的经验是不要用 op 官方 ss , github 上有编译好的 ss 。一般的路由器不要用 gfwlist 或 chiandns ,规则匹配很花时间。你的路由性能特别 nb 当我没说。
    且在使用 chibadns 时会把所有非国内地址的流量都走代理,无意义的耗费大量流量。
    建议使用 ipset 搭配自己的白名单。
    jonechenug
        8
    jonechenug  
       2015-11-26 00:04:47 +08:00 via Android
    只用 ss 就行了,不用上 chiandns ,另外如果用了转发(或者 chinadns),你要保证你的 ss 服务器是 ip 地址,要不然重启后会发现无法连上 ss 服务器域名(无解析)。用户友好做的最好的应该是极路由第三方,一键安装脚本,图形设置界面。
    wgf2008
        9
    wgf2008  
       2015-11-26 12:23:03 +08:00
    其实我也遇到了,不知道咋搞
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2192 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 202ms · UTC 02:12 · PVG 10:12 · LAX 19:12 · JFK 22:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.