sing-box android过了一夜,没有网,反复出现,开关代理恢复
Open
Nobody has claimed this yet.
bug
- Dominant language
- Go
- Stars
- 38.1k
- Forks
- 4.6k
- Avg merge
- 19d 15h
- Merged PRs (30d)
- 1
Description
错误日志如下
Sing-box早上还是没网:
ERROR[0498] [2111062657 1.3s] connection: connection download closed: splice read: software caused connection abort
ERROR[0498] [536130882 8m17s] connection: connection download closed: read tcp 10.25.1.160:34818->xxxx:443: read: software caused connection abort
ERROR[0498] [2748566145 22.5s] connection: connection download closed: splice read: software caused connection abort
ERROR[0498] [1154454977 1ms] connection: open connection to 52.80.168.91:5229 using outbound/direct[direct]: dial wlan0 (45): dial tcp 52.80.168.91:5229: connect: network is unreachable
ERROR[0498] [3592424668 5ms] connection: open connection to xfr-ss.getui.com:5225 using outbound/direct[direct]: lookup xfr-ss.getui.com: (exchange4: connection refused | exchange6: connection refused)
ERROR[0498] network: missing default interface
ERROR[0498] [968820073 1ms] connection: open connection to mtalk.google.com:5228 using outbound/vless[proxy]: no available network interface
ERROR[0509] [1397596503 0ms] connection: open connection to mtalk.google.com:5228 using outbound/vless[proxy]: no available network interface
ERROR[0532] [1076050283 0ms] connection: open connection to connectivitycheck.gstatic.com:443 using outbound/vless[proxy]: no available network interface
ERROR[0532] [3116333821 0ms] connection: open connection to play.googleapis.com:443 using outbound/vless[proxy]: no available network interface
ERROR[0532] [111547255 0ms] connection: open connection to connectivitycheck.gstatic.com:443 using outbound/vless[proxy]: no available network interface
ERROR[0536] [184297957 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0536] [1395728515 0ms] connection: open connection to play-fe.googleapis.com:443 using outbound/vless[proxy]: no available network interface
ERROR[0536] [3774279309 0ms] connection: open connection to play-fe.googleapis.com:443 using outbound/vless[proxy]: no available network interface
ERROR[0536] [507259973 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0536] [3444225891 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0538] [4119945922 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0540] [3245927802 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0540] [2099912034 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0540] [2042977052 0ms] connection: open connection to play-fe.googleapis.com:443 using outbound/vless[proxy]: no available network interface
ERROR[0540] [1282206929 0ms] connection: open connection to play-fe.googleapis.com:443 using outbound/vless[proxy]: no available network interface
ERROR[0540] [582844276 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0541] [1413164889 1ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0542] [1682262754 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0544] [3132186214 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0554] [3464856554 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0557] [1616717422 1ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0563] [3530225157 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0567] [646001100 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0570] [2833794823 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0576] [4112226854 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0579] [990297394 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0582] [4291884040 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0588] [151225292 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0589] [3827720753 0ms] connection: open connection to play.googleapis.com:443 using outbound/vless[proxy]: no available network interface
ERROR[0593] [953091376 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0596] [2309823966 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0602] [1472228474 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0623] [1437848066 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0623] [3669007297 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0624] [2368680751 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
ERROR[0625] [4241336684 0ms] connection: listen packet connection using using outbound/vless[proxy]: no available network interface
配置如下:
{
"log": {
"level": "warn",
"timestamp": true
},
"dns": {
"servers": [
{
"type": "fakeip",
"tag": "fakeip",
"inet4_range": "11.0.0.0/8"
},
{
"type": "hosts",
"tag": "hosts",
"predefined": {
"dns.alidns.com": [
"2400:3200::1",
"223.5.5.5",
"2400:3200:baba::1",
"223.6.6.6"
],
"cloudflare-dns.com": [
"2606:4700:4700::1111",
"1.1.1.1",
"2606:4700:4700::1001",
"1.0.0.1"
]
}
},
{
"type": "local",
"tag": "direct_dns"
},
{
"type": "https",
"tag": "remote_dns",
"detour": "proxy",
"domain_resolver": "hosts",
"server": "cloudflare-dns.com"
},
{
"type": "https",
"tag": "direct_dns2",
"domain_resolver": "hosts",
"server": "dns.alidns.com"
}
],
"rules": [
{
"query_type": [
"SVCB",
"HTTPS",
"AAAA"
],
"action": "predefined",
"rcode": "NOTIMP"
},
{
"query_type": "A",
"server": "fakeip"
},
{
"clash_mode": "Global",
"server": "remote_dns"
},
{
"clash_mode": "Direct",
"server": "direct_dns"
},
{
"rule_set": "geosite-private",
"server": "direct_dns"
},
{
"rule_set": "geosite-google",
"server": "remote_dns"
},
{
"rule_set": "geosite-cn",
"server": "direct_dns"
},
{
"rule_set": "geosite-geolocation-!cn",
"server": "remote_dns"
},
{
"domain_suffix": [
"alidns.com",
"doh.pub",
"dot.pub",
"360.cn",
"onedns.net"
],
"server": "direct_dns"
}
],
"final": "direct_dns",
"independent_cache": true
},
"inbounds": [
{
"type": "tun",
"tag": "tun-in",
"interface_name": "singbox_tun",
"mtu": 9000,
"address": [
"172.18.0.1/30",
"fdfe:dcba:9876::1/126"
],
"auto_route": true,
"strict_route": true,
"stack": "system"
}
],
"outbounds": [
{
"type": "vless",
"tag": "proxy",
"domain_resolver": {
"server": "remote_dns",
"strategy": "prefer_ipv6"
},
"server": "",
"server_port": 443,
"uuid": "",
"flow": "xtls-rprx-vision",
"tls": {
"enabled": true,
"server_name": "",
"utls": {
"enabled": true,
"fingerprint": "chrome"
},
"reality": {
"enabled": true,
"public_key": "",
"short_id": ""
}
},
"packet_encoding": "xudp"
},
{
"type": "direct",
"tag": "direct",
"domain_resolver": {
"server": "direct_dns",
"strategy": "prefer_ipv6"
}
}
],
"route": {
"rules": [
{
"port": 53,
"action": "hijack-dns"
},
{
"port": 853,
"action": "reject"
},
{
"clash_mode": "Global",
"outbound": "proxy"
},
{
"clash_mode": "Direct",
"outbound": "direct"
},
{
"rule_set": "geosite-private",
"outbound": "direct"
},
{
"rule_set": "geosite-google",
"outbound": "proxy"
},
{
"rule_set": "geosite-cn",
"outbound": "direct"
},
{
"rule_set": "geosite-geolocation-!cn",
"outbound": "proxy"
},
{
"action": "resolve"
},
{
"ip_is_private": true,
"outbound": "direct"
},
{
"rule_set": "geoip-cn",
"outbound": "direct"
}
],
"rule_set": [
{
"type": "remote",
"tag": "geosite-cn",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs",
"download_detour": "proxy",
"update_interval": "240h0m0s"
},
{
"type": "remote",
"tag": "geosite-geolocation-!cn",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
"download_detour": "proxy",
"update_interval": "240h0m0s"
},
{
"type": "remote",
"tag": "geosite-google",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-google.srs",
"download_detour": "proxy",
"update_interval": "240h0m0s"
},
{
"type": "remote",
"tag": "geosite-private",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-private.srs",
"download_detour": "proxy",
"update_interval": "240h0m0s"
},
{
"type": "remote",
"tag": "geoip-cn",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
"download_detour": "proxy",
"update_interval": "240h0m0s"
}
],
"final": "proxy",
"auto_detect_interface": true,
"default_domain_resolver": "direct_dns"
},
"experimental": {
"cache_file": {
"enabled": true
}
}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the overnight failure on Android with the supplied TUN configuration, then correlate the repeated “missing default interface” and “no available network interface” messages with the proxy toggle. Confirm the affected network state and determine whether connectivity recovers without restarting or toggling the proxy.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, go
- Domain
- mobile-dev, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100