DustinWin / clash_singbox-tutorials

Clash 和 sing-box 教程合集——安装、配置、自定义规则、DNS 分流
951 stars 119 forks source link

sing-box非tun模式能正常工作吗,不知道你有没有能成功运行的配置 #28

Closed mebest100 closed 3 weeks ago

mebest100 commented 3 weeks ago

我看到sing-box网上大多都是基于inbounds的tun模式配置,这是全局代理模式,但是我需要的是http/socks这种监听某个端口的代理的模式,我试了网上很多的配置,但是结果都不行,基本可以断定原因是dns不能远程解析。

http/socks端口监听模式配置如下:

    "inbounds": [

        {
            "domain_strategy": "prefer_ipv4",
            "listen": "127.0.0.1",
            "listen_port": 2333,
            "tag": "socks-in",
            "type": "socks",
            "users": []
        },
        {
            "domain_strategy": "prefer_ipv4",
            "listen": "127.0.0.1",
            "listen_port": 2334,
            "tag": "mixed-in",
            "type": "mixed",
            "users": []
        }
    ],

那么问题来了,sing-box非tun模式到底能正常工作吗,不知道你有没有能成功运行的配置。

DustinWin commented 3 weeks ago

我这边没有配置过。😅