sing-box
sing-box copied to clipboard
debian 12: FATAL[0001] start service: initialize rule-set[1]: initial rule-set: cnsite
操作系统
Linux
系统版本
Debian GNU/Linux 12 (bookworm)
安装类型
sing-box 原始命令行程序
如果您使用图形客户端程序,请提供该程序版本。
No response
版本
sing-box version 1.9.3
Environment: go1.22.4 linux/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_acme,with_clash_api
Revision: 085f60337799afc906069b540a38368968c123e4
CGO: disabled
描述
相同的配置在 ios 端的 sing-box for ios 客户端能够正常运行,在 Android 端的 sing-box for android 和 debian 上就报错,无法启动。
xinebf@debian:~/app/sing$ sudo ./sing-box run -D .
+0800 2024-07-15 20:14:51 INFO router: updated default interface wlp1s0, index 3
+0800 2024-07-15 20:14:51 INFO clash-api: downloading external ui
+0800 2024-07-15 20:14:51 INFO outbound/vmess[🔴]: outbound connection to github.com:443
+0800 2024-07-15 20:14:51 INFO outbound/direct[direct-out]: outbound packet connection to 223.5.5.5:53
+0800 2024-07-15 20:14:52 INFO outbound/vmess[🔴]: outbound connection to codeload.github.com:443
+0800 2024-07-15 20:14:55 INFO clash-api: restful api listening at 127.0.0.1:9090
+0800 2024-07-15 20:14:55 INFO inbound/direct[dns-in]: tcp server started at [::]:7853
+0800 2024-07-15 20:14:55 INFO inbound/direct[dns-in]: udp server started at [::]:7853
+0800 2024-07-15 20:14:55 INFO inbound/mixed[mixed-in]: tcp server started at [::]:7890
+0800 2024-07-15 20:14:55 INFO outbound/vmess[🔴]: outbound connection to github.com:443
+0800 2024-07-15 20:14:55 INFO outbound/vmess[🟠]: outbound connection to www.gstatic.com:443
+0800 2024-07-15 20:14:55 INFO outbound/vmess[🔴]: outbound connection to github.com:443
+0800 2024-07-15 20:14:55 INFO outbound/vmess[🔴]: outbound connection to www.gstatic.com:443
FATAL[0001] start service: initialize rule-set[1]: initial rule-set: cnsite: Get "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo-lite/geosite/cn.srs": read tcp 192.168.1.8:48476->171.151.51.11:8879: use of closed network connection | initialize rule-set[1]: initial rule-set: cnip: Get "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo-lite/geoip/cn.srs": context canceled
重现方式
xinebf@debian:~/app/sing$ ls -a
. .. config.json sing-box
config.json 文件内容如下,仅修改了配置文件中的服务器地址和 uuid:
{
"log": {
"disabled": false,
"level": "info",
"timestamp": true
},
"dns": {
"servers": [
{
"tag": "default-dns",
"address": "223.5.5.5",
"detour": "direct-out"
},
{
"tag": "system-dns",
"address": "local",
"detour": "direct-out"
},
{
"tag": "block-dns",
"address": "rcode://name_error"
},
{
"tag": "google-doh",
"address": "https://dns.google/dns-query",
"address_resolver": "default-dns",
"address_strategy": "ipv4_only",
"strategy": "ipv4_only",
"detour": "auto-out",
"client_subnet": "1.0.1.0"
}
],
"rules": [
{
"outbound": "any",
"server": "default-dns"
},
{
"query_type": "HTTPS",
"server": "block-dns"
},
{
"clash_mode": "direct",
"server": "default-dns"
},
{
"clash_mode": "global",
"server": "google-doh"
},
{
"rule_set": "cnsite",
"server": "default-dns"
}
],
"strategy": "ipv4_only",
"disable_cache": false,
"disable_expire": false,
"independent_cache": false,
"final": "google-doh"
},
"inbounds": [
{
"type": "direct",
"tag": "dns-in",
"listen": "::",
"listen_port": 7853
},
{
"type": "mixed",
"tag": "mixed-in",
"listen": "::",
"listen_port": 7890,
"sniff": true,
"sniff_override_destination": false,
"set_system_proxy": false
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct-out",
"routing_mark": 100
},
{
"type": "block",
"tag": "block-out"
},
{
"type": "dns",
"tag": "dns-out"
},
{
"type": "selector",
"tag": "select-out",
"outbounds": [
"direct-out",
"block-out",
"auto-out",
"🔴",
"🟠"
],
"default": "auto-out"
},
{
"type": "urltest",
"tag": "auto-out",
"outbounds": [
"🔴",
"🟠"
]
},
{
"type": "selector",
"tag": "GLOBAL",
"outbounds": [
"direct-out",
"select-out",
"auto-out",
"🔴",
"🟠"
],
"default": "auto-out"
},
{
"type": "vmess",
"tag": "🔴",
"server": "vmess1.example.com",
"server_port": 8879,
"uuid": "ebc0f831-3512-42fd-8d84-9d3bccd32ea8",
"packet_encoding": "xudp",
"security": "auto",
"alter_id": 0
},
{
"type": "vmess",
"tag": "🟠",
"server": "vmess2.example.com",
"server_port": 8879,
"uuid": "7095b0f3-e425-4636-9b8c-1fe94de1e9c9",
"packet_encoding": "xudp",
"security": "auto",
"alter_id": 0
}
],
"route": {
"rules": [
{
"inbound": "dns-in",
"outbound": "dns-out"
},
{
"protocol": "dns",
"outbound": "dns-out"
},
{
"protocol": "quic",
"outbound": "block-out"
},
{
"clash_mode": "direct",
"outbound": "direct-out"
},
{
"clash_mode": "global",
"outbound": "GLOBAL"
},
{
"rule_set": [
"cnip",
"cnsite"
],
"outbound": "direct-out"
}
],
"rule_set": [
{
"type": "remote",
"tag": "cnip",
"format": "binary",
"url": "https://github.com/MetaCubeX/meta-rules-dat/raw/sing/geo-lite/geoip/cn.srs",
"download_detour": "auto-out"
},
{
"type": "remote",
"tag": "cnsite",
"format": "binary",
"url": "https://github.com/MetaCubeX/meta-rules-dat/raw/sing/geo-lite/geosite/cn.srs",
"download_detour": "auto-out"
}
],
"auto_detect_interface": true,
"final": "select-out"
},
"experimental": {
"cache_file": {
"enabled": true,
"path": "cache.db"
},
"clash_api": {
"external_controller": "127.0.0.1:9090",
"external_ui": "clash-dashboard",
"external_ui_download_detour": "auto-out",
"secret": "1234567890",
"default_mode": "rule"
}
}
}
日志
No response
支持我们
- [ ] 我已经 赞助
完整性要求
- [X] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- [X] 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
- [X] 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
- [X] 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。