求助 singbox 无法访问 docker hub 和 youtube 的问题 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
airycanon
V2EX    问与答

求助 singbox 无法访问 docker hub 和 youtube 的问题

  •  
  •   airycanon 180 天前 1179 次点击
    这是一个创建于 180 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题,是在 Mac 上用 Gui For SingBox 配置的,对应版本如下:

    • MacOS:15.4
    • Gui For SingBox:1.9.5
    • singbox 内核:1.11.7

    开启之后可以访问 https://google.com 以及 https://docker.com
    但是无法访问 https://hub.docker.com 以及 https://youtube.com

    通过 curl 发现会返回一个错误的证书

     curl -vv https://hub.docker.com * Host hub.docker.com:443 was resolved. * IPv6: (none) * IPv4: 157.240.12.5 * Trying 157.240.12.5:443... * Connected to hub.docker.com (157.240.12.5) port 443 * ALPN: curl offers h2,http/1.1 * (304) (OUT), TLS handshake, Client hello (1): * CAfile: /etc/ssl/cert.pem * CApath: none * (304) (IN), TLS handshake, Server hello (2): * (304) (IN), TLS handshake, Unknown (8): * (304) (IN), TLS handshake, Certificate (11): * (304) (IN), TLS handshake, CERT verify (15): * (304) (IN), TLS handshake, Finished (20): * (304) (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256 / [blank] / UNDEF * ALPN: server accepted h2 * Server certificate: * subject: C=US; ST=California; L=Menlo Park; O=Meta Platforms, Inc.; CN=*.atlassolutions.com * start date: Jan 24 00:00:00 2025 GMT * expire date: Apr 24 23:59:59 2025 GMT * subjectAltName does not match host name hub.docker.com * SSL: no alternative certificate subject name matches target host name 'hub.docker.com' * Closing connection curl: (60) SSL: no alternative certificate subject name matches target host name 'hub.docker.com' More details here: https://curl.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above. 

    对应的 singbox 配置如下,隐藏了节点的配置

    { "log": { "disabled": false, "level": "info", "output": "", "timestamp": false }, "experimental": { "clash_api": { "external_controller": "127.0.0.1:20123", "external_ui": "", "external_ui_download_url": "", "external_ui_download_detour": " Direct", "secret": "ID_r4fgwjn7", "default_mode": "rule", "access_control_allow_origin": [ "*" ], "access_control_allow_private_network": false }, "cache_file": { "enabled": true, "path": "cache.db", "cache_id": "", "store_fakeip": true, "store_rdrc": true, "rdrc_timeout": "7d" } }, "inbounds": [ { "type": "mixed", "tag": "mixed-in", "listen": "127.0.0.1", "listen_port": 20122, "tcp_fast_open": false, "tcp_multi_path": false, "udp_fragment": false } ], "outbounds": ["节点信息..."], "route": { "rules": [ { "action": "route", "rule_set": [ "Youtube", "Docker" ], "outbound": " Select" }, { "action": "route", "rule_set": [ "Bilibili" ], "outbound": " Direct" }, { "action": "hijack-dns", "protocol": "dns" }, { "action": "route", "clash_mode": "direct", "outbound": " Direct" }, { "action": "route", "clash_mode": "global", "outbound": "GLOBAL" }, { "action": "reject", "protocol": "quic" }, { "action": "reject", "rule_set": [ "Category-Ads" ] }, { "action": "route", "rule_set": [ "GeoSite-Private" ], "outbound": " Direct" }, { "action": "route", "rule_set": [ "GeoSite-CN" ], "outbound": " Direct" }, { "action": "route", "rule_set": [ "GeoIP-Private" ], "outbound": " Direct" }, { "action": "route", "rule_set": [ "GeoIP-CN" ], "outbound": " Direct" }, { "action": "route", "rule_set": [ "GeoLocation-!CN" ], "outbound": " Select" } ], "rule_set": [ { "tag": "Youtube", "type": "remote", "url": "https://github.com/MetaCubeX/meta-rules-dat/raw/sing/geo/geosite/youtube.srs", "format": "binary", "download_detour": " Select" }, { "tag": "Docker", "type": "remote", "url": "https://github.com/MetaCubeX/meta-rules-dat/raw/refs/heads/sing/geo/geosite/docker.srs", "format": "binary", "download_detour": " Select" }, { "tag": "Bilibili", "type": "remote", "url": "https://github.com/MetaCubeX/meta-rules-dat/raw/refs/heads/sing/geo-lite/geosite/bilibili.srs", "format": "binary", "download_detour": " Select" }, { "tag": "Category-Ads", "type": "remote", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/category-ads-all.srs", "format": "binary", "download_detour": " Direct" }, { "tag": "GeoIP-Private", "type": "remote", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/private.srs", "format": "binary", "download_detour": " Direct" }, { "tag": "GeoSite-Private", "type": "remote", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/private.srs", "format": "binary", "download_detour": " Direct" }, { "tag": "GeoIP-CN", "type": "remote", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/cn.srs", "format": "binary", "download_detour": " Direct" }, { "tag": "GeoSite-CN", "type": "remote", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/cn.srs", "format": "binary", "download_detour": " Direct" }, { "tag": "GeoLocation-!CN", "type": "remote", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/geolocation-!cn.srs", "format": "binary", "download_detour": " Direct" } ], "auto_detect_interface": true, "final": " Fallback" }, "dns": { "servers": [ { "tag": "FakeIp", "address": "fakeip" }, { "tag": "Local-DNS", "address": "https://223.5.5.5:443/dns-query", "address_resolver": "Local-DNS-Resolver", "detour": " Direct" }, { "tag": "Local-DNS-Resolver", "address": "udp://223.5.5.5:53", "detour": " Direct" }, { "tag": "Remote-DNS", "address": "tls://8.8.8.8:853", "address_resolver": "Remote-DNS-Resolver", "detour": " Select" }, { "tag": "Remote-DNS-Resolver", "address": "udp://8.8.8.8:53", "detour": " Select" } ], "rules": [ { "action": "route", "server": "Local-DNS", "outbound": "any" }, { "action": "route", "rule_set": [ "GeoLocation-!CN" ], "server": "Remote-DNS" }, { "action": "route", "rule_et": [ "GeoSite-CN" ], "server": "Local-DNS" } ], "disable_cache": false, "disable_expire": false, "independent_cache": false, "final": "Remote-DNS", "fakeip": { "enabled": true } } } 
    2 条回复    2025-04-17 16:27:45 +08:00
    clhlc
        1
    clhlc  
       180 天前
    inbound 是 mix ,命令行使用 curl 需要加上代理;建议 inbound 使用 tun 模式
    airycanon
        2
    airycanon  
    OP
       180 天前
    @clhlc 感谢回复,不好意思,这个是我刚刚手动配置的,忘记打开了,打开之后仍然不行,打开 tun 之后的配置:

    ```
    "inbounds": [
    {
    "type": "mixed",
    "tag": "mixed-in",
    "listen": "127.0.0.1",
    "listen_port": 20122,
    "tcp_fast_open": false,
    "tcp_multi_path": false,
    "udp_fragment": false
    },
    {
    "type": "tun",
    "tag": "tun-in",
    "interface_name": "",
    "address": [
    "172.18.0.1/30",
    "fdfe:dcba:9876::1/126"
    ],
    "mtu": 9000,
    "auto_route": true,
    "strict_route": true,
    "route_address": [
    "0.0.0.0/1",
    "128.0.0.0/1",
    "::/1",
    "8000::/1"
    ],
    "endpoint_independent_nat": false,
    "stack": "mixed"
    }
    ]
    ```gment": false
    },
    {
    "type": "tun",
    "tag": "tun-in",
    "interface_name": "",
    "address": [
    "172.18.0.1/30",
    "fdfe:dcba:9876::1/126"
    ],
    "mtu": 9000,
    "auto_route": true,
    "strict_route": true,
    "route_address": [
    "0.0.0.0/1",
    "128.0.0.0/1",
    "::/1",
    "8000::/1"
    ],
    "endpoint_independent_nat": false,
    "stack": "mixed"
    }
    ]
    ```
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     3246 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 25ms UTC 11:30 PVG 19:30 LAX 04:30 JFK 07:30
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86