Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最新HP,URLTest + DoH,刷完机后有2种情况会启动失败。 #274

Open
8 of 9 tasks
VIKINGYFY opened this issue Jan 18, 2025 · 0 comments
Open
8 of 9 tasks
Labels
bug Something isn't working

Comments

@VIKINGYFY
Copy link

VIKINGYFY commented Jan 18, 2025

Bug description

最新HP,URLTest + DoH,有2种情况会无法启动。

1、保留配置刷完机后会启动失败,提示配置文件错误。

�[31mFATAL�[0m[0000] parse route options: parse dns server[default-dns]: missing address_resolver

2025-01-18 17:46:57 [DAEMON] Error: wrong client configuration detected.

2、不保留配置刷完机后初次使用,会提示rule-set下载失败。

Sun Jan 19 21:44:37 2025 daemon.err sing-box[11538]: �[31mFATAL�[0m[0001] start service: initialize rule-set[2]: initial rule-set: geosite-cn: Get "https://github.com/1715173329/sing-geosite/raw/rule-set-unstable/geosite-geolocation-cn.srs": read tcp 192.168.1.10:50682->120.241.29.101:14002: use of closed network connection | initialize rule-set[2]: initial rule-set: geoip-cn: Get "https://github.com/1715173329/IPCIDR-CHINA/raw/rule-set/cn.srs": read tcp 192.168.1.10:50682->120.241.29.101:14002: use of closed network connection | initialize rule-set[2]: initial rule-set: geosite-noncn: Get "https://github.com/1715173329/sing-geosite/raw/rule-set-unstable/geosite-geolocation-!cn.srs": read tcp 192.168.1.10:50682->120.241.29.101:14002: use of closed network connection

Sun Jan 19 21:44:43 2025 daemon.err sing-box[11587]: �[31mFATAL�[0m[0000] start service: initialize rule-set[2]: initial rule-set: geoip-cn: Get "https://github.com/1715173329/IPCIDR-CHINA/raw/rule-set/cn.srs": read tcp 192.168.1.10:50696->120.241.29.101:14002: use of closed network connection | initialize rule-set[2]: initial rule-set: geosite-noncn: read tcp 192.168.1.10:50696->120.241.29.101:14002: use of closed network connection | initialize rule-set[2]: initial rule-set: geosite-cn: Get "https://github.com/1715173329/sing-geosite/raw/rule-set-unstable/geosite-geolocation-cn.srs": read tcp 192.168.1.10:50696->120.241.29.101:14002: use of closed network connection

Sun Jan 19 21:44:49 2025 daemon.err sing-box[11598]: �[31mFATAL�[0m[0000] start service: initialize rule-set[2]: initial rule-set: geosite-noncn: Get "https://github.com/1715173329/sing-geosite/raw/rule-set-unstable/geosite-geolocation-!cn.srs": read tcp 192.168.1.10:47032->120.241.29.101:14002: use of closed network connection | initialize rule-set[2]: initial rule-set: geoip-cn: Get "https://github.com/1715173329/IPCIDR-CHINA/raw/rule-set/cn.srs": read tcp 192.168.1.10:47032->120.241.29.101:14002: use of closed network connection | initialize rule-set[2]: initial rule-set: geosite-cn: Get "https://github.com/1715173329/sing-geosite/raw/rule-set-unstable/geosite-geolocation-cn.srs": read tcp 192.168.1.10:47032->120.241.29.101:14002: use of closed network connection

Sun Jan 19 21:44:54 2025 daemon.err sing-box[11609]: �[31mFATAL�[0m[0000] start service: initialize rule-set[2]: initial rule-set: geoip-cn: read tcp 192.168.1.10:47186->120.241.29.101:14002: use of closed network connection | initialize rule-set[2]: initial rule-set: geosite-cn: read tcp 192.168.1.10:47186->120.241.29.101:14002: use of closed network connection | initialize rule-set[2]: initial rule-set: geosite-noncn: Get "https://github.com/1715173329/sing-geosite/raw/rule-set-unstable/geosite-geolocation-!cn.srs": read tcp 192.168.1.10:47186->120.241.29.101:14002: use of closed network connection

Sun Jan 19 21:45:00 2025 daemon.err sing-box[11621]: �[31mFATAL�[0m[0000] start service: initialize rule-set[2]: initial rule-set: geosite-cn: read tcp 192.168.1.10:37484->120.241.29.101:14002: use of closed network connection | initialize rule-set[2]: initial rule-set: geosite-noncn: read tcp 192.168.1.10:37484->120.241.29.101:14002: use of closed network connection

Sun Jan 19 21:45:06 2025 daemon.err sing-box[11632]: �[31mFATAL�[0m[0000] start service: initialize rule-set[2]: initial rule-set: geosite-noncn: read tcp 192.168.1.10:46768->120.241.29.101:14002: use of closed network connection | initialize rule-set[2]: initial rule-set: geosite-cn: Get "https://github.com/1715173329/sing-geosite/raw/rule-set-unstable/geosite-geolocation-cn.srs": read tcp 192.168.1.10:46768->120.241.29.101:14002: use of closed network connection

Sun Jan 19 21:45:06 2025 daemon.info procd: Instance homeproxy::sing-box-c s in a crash loop 6 crashes, 1 seconds since last crash

这两种情况下都可以先切回普通节点再切回来就能正常使用,经过我的测试,发现把这3个文件地址换成cdn地址,一样的会提示下载失败。

HomeProxy configuration

config homeproxy 'infra'
option __warning 'DO NOT EDIT THIS SECTION, OR YOU ARE ON YOUR OWN!'
option common_port '22,53,80,143,443,465,853,873,993,995,5222,8080,8443,9418'
option mixed_port '5330'
option redirect_port '5331'
option tproxy_port '5332'
option dns_port '5333'
option tun_name 'singtun0'
option tun_addr4 '172.19.0.1/30'
option tun_addr6 'fdfe:dcba:9876::1/126'
option tun_mtu '9000'
option tun_gso '0'
option table_mark '100'
option self_mark '100'
option tproxy_mark '101'
option tun_mark '102'

config homeproxy 'config'
option main_node 'urltest'
option main_udp_node 'same'
option dns_server 'https://dns.quad9.net/dns-query'
option routing_mode 'bypass_mainland_china'
option routing_port 'common'
option proxy_mode 'redirect_tproxy'
option ipv6_support '1'
option china_dns_server 'https://dns.alidns.com/dns-query'
list main_urltest_nodes '2bcc35e5893487c9eae4a4ea3c3a1184'
list main_urltest_nodes '4fcc0c5c874297f71bb4b32f0dbca6e1'
list main_urltest_nodes 'a53e618fab1a66a5f498732ec4eeda76'
option main_urltest_interval '300'

config homeproxy 'control'
option lan_proxy_mode 'disabled'
list wan_proxy_ipv4_ips '91.105.192.0/23'
list wan_proxy_ipv4_ips '91.108.4.0/22'
list wan_proxy_ipv4_ips '91.108.8.0/21'
list wan_proxy_ipv4_ips '91.108.16.0/21'
list wan_proxy_ipv4_ips '91.108.56.0/22'
list wan_proxy_ipv4_ips '95.161.64.0/20'
list wan_proxy_ipv4_ips '149.154.160.0/20'
list wan_proxy_ipv4_ips '185.76.151.0/24'
list wan_proxy_ipv6_ips '2001:67c:4e8::/48'
list wan_proxy_ipv6_ips '2001:b28:f23c::/47'
list wan_proxy_ipv6_ips '2001:b28:f23f::/48'
list wan_proxy_ipv6_ips '2a0a:f280::/32'

config homeproxy 'routing'
option sniff_override '1'
option default_outbound 'direct-out'
option udp_timeout '300'
option bypass_cn_traffic '0'

config homeproxy 'dns'
option dns_strategy 'prefer_ipv4'
option default_server 'default-dns'

config homeproxy 'server'
option enabled '0'
option auto_firewall '0'

config dns_rule 'nodes_domain'
option label 'NodesDomain'
option enabled '1'
option mode 'default'
list outbound 'any-out'
option server 'default-dns'

sing-box configuration

{
"log": {
"disabled": false,
"level": "warn",
"output": "/var/run/homeproxy/sing-box-c.log",
"timestamp": true
},
"dns": {
"servers": [
{
"tag": "default-dns",
"address": "192.168.1.1",
"detour": "direct-out"
},
{
"tag": "system-dns",
"address": "local",
"detour": "direct-out"
},
{
"tag": "block-dns",
"address": "rcode://name_error"
},
{
"tag": "main-dns",
"address": "https://dns.quad9.net/dns-query",
"address_resolver": "default-dns",
"detour": "main-out"
},
{
"tag": "china-dns",
"address": "https://dns.alidns.com/dns-query",
"address_resolver": "default-dns",
"detour": "direct-out"
}
],
"rules": [
{
"outbound": "any",
"server": "default-dns"
},
{
"rule_set": "geosite-cn",
"server": "china-dns"
},
{
"type": "logical",
"mode": "and",
"rules": [
{
"rule_set": "geosite-noncn",
"invert": true
},
{
"rule_set": "geoip-cn"
}
],
"server": "china-dns"
}
],
"disable_cache": false,
"disable_expire": false,
"independent_cache": false,
"final": "main-dns"
},
"inbounds": [
{
"type": "direct",
"tag": "dns-in",
"listen": "::",
"listen_port": 5333
},
{
"type": "mixed",
"tag": "mixed-in",
"listen": "::",
"listen_port": 5330,
"sniff": true,
"sniff_override_destination": true,
"set_system_proxy": false
},
{
"type": "redirect",
"tag": "redirect-in",
"listen": "::",
"listen_port": 5331,
"sniff": true,
"sniff_override_destination": true
},
{
"type": "tproxy",
"tag": "tproxy-in",
"listen": "::",
"listen_port": 5332,
"network": "udp",
"sniff": true,
"sniff_override_destination": true
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct-out",
"routing_mark": 100
},
{
"type": "block",
"tag": "block-out"
},
{
"type": "dns",
"tag": "dns-out"
},
{
"type": "urltest",
"tag": "main-out",
"outbounds": [
"cfg-2bcc35e5893487c9eae4a4ea3c3a1184-out",
"cfg-4fcc0c5c874297f71bb4b32f0dbca6e1-out",
"cfg-a53e618fab1a66a5f498732ec4eeda76-out"
],
"interval": "300s"
},
],
"route": {
"rules": [
{
"inbound": "dns-in",
"outbound": "dns-out"
}
],
"rule_set": [
{
"type": "remote",
"tag": "geoip-cn",
"format": "binary",
"url": "https://github.com/1715173329/IPCIDR-CHINA/raw/rule-set/cn.srs",
"download_detour": "main-out"
},
{
"type": "remote",
"tag": "geosite-cn",
"format": "binary",
"url": "https://github.com/1715173329/sing-geosite/raw/rule-set-unstable/geosite-geolocation-cn.srs",
"download_detour": "main-out"
},
{
"type": "remote",
"tag": "geosite-noncn",
"format": "binary",
"url": "https://github.com/1715173329/sing-geosite/raw/rule-set-unstable/geosite-geolocation-!cn.srs",
"download_detour": "main-out"
}
],
"auto_detect_interface": true,
"final": "main-out"
},
"experimental": {
"cache_file": {
"enabled": true,
"path": "/var/run/homeproxy/cache.db"
}
}
}

HomeProxy log

FATAL[0000] parse route options: parse dns server[default-dns]: missing address_resolver
2025-01-18 17:46:57 [DAEMON] Error: wrong client configuration detected.
2025-01-18 17:46:58 [DAEMON] Reloading service...
2025-01-18 17:47:02 [DAEMON] Service stopped.
2025-01-18 17:47:04 [DAEMON] sing-box 1.10.7 started.
2025-01-18 17:49:25 [DAEMON] Reloading service...
2025-01-18 17:49:30 [DAEMON] Service stopped.
2025-01-18 17:49:32 [DAEMON] sing-box 1.10.7 started.
2025-01-18 17:49:53 [DAEMON] Reloading service...
2025-01-18 17:49:57 [DAEMON] Service stopped.
2025-01-18 17:50:00 [DAEMON] sing-box 1.10.7 started.

sing-box log

+0000 2025-01-19 16:04:52 ERROR [650800817 394ms] outbound/urltest[main-out]: dial tcp 120.198.71.240:20643: operation was canceled

+0000 2025-01-19 16:04:52 ERROR [650800817 394ms] outbound/urltest[main-out]: dial tcp 120.198.71.240:20643: operation was canceled

+0000 2025-01-19 16:21:35 ERROR [2320621486 473ms] outbound/urltest[main-out]: context canceled

+0000 2025-01-19 16:21:35 ERROR [2320621486 473ms] outbound/urltest[main-out]: dial tcp 120.233.70.118:14002: operation was canceled | dial tcp 120.233.70.122:14002: operation was canceled

+0000 2025-01-19 16:21:36 ERROR [1160468262 511ms] outbound/urltest[main-out]: context canceled

+0000 2025-01-19 16:21:36 ERROR [1160468262 511ms] outbound/urltest[main-out]: dial tcp 120.233.70.118:14002: operation was canceled | dial tcp 120.233.70.122:14002: operation was canceled

+0000 2025-01-19 16:23:59 ERROR [2550919593 3.54s] dns: exchange failed for 42.1.60.106.in-addr.arpa. IN PTR: unexpected status: 502 Bad Gateway

+0000 2025-01-19 16:24:02 ERROR [2550919593 6.53s] dns: exchange failed for 42.1.60.106.in-addr.arpa. IN PTR: unexpected status: 502 Bad Gateway

+0000 2025-01-19 16:25:46 ERROR [4110725088 386ms] outbound/urltest[main-out]: context canceled

+0000 2025-01-19 16:25:46 ERROR [4110725088 386ms] outbound/urltest[main-out]: dial tcp 120.233.70.118:14002: operation was canceled | dial tcp 120.233.70.122:14002: operation was canceled

+0000 2025-01-19 16:25:46 ERROR [1389594908 401ms] outbound/urltest[main-out]: context canceled

+0000 2025-01-19 16:25:46 ERROR [1389594908 401ms] outbound/urltest[main-out]: dial tcp 120.233.70.118:14002: operation was canceled | dial tcp 120.233.70.122:14002: operation was canceled

+0000 2025-01-19 16:25:46 ERROR [1389594908 650ms] outbound/urltest[main-out]: context canceled

+0000 2025-01-19 16:25:46 ERROR [1389594908 650ms] outbound/urltest[main-out]: dial tcp 120.233.70.118:14002: operation was canceled | dial tcp 120.233.70.122:14002: operation was canceled

+0000 2025-01-19 16:26:32 ERROR [3008705048 3.9s] outbound/urltest[main-out]: EOF

+0000 2025-01-19 16:26:32 ERROR [1670321945 3.10s] outbound/urltest[main-out]: EOF

+0000 2025-01-19 16:27:55 ERROR [3610088468 471ms] outbound/urltest[main-out]: dial tcp 120.233.70.118:14002: operation was canceled | dial tcp 120.233.70.122:14002: operation was canceled

+0000 2025-01-19 16:27:55 ERROR [3610088468 471ms] outbound/urltest[main-out]: dial tcp 120.233.70.118:14002: operation was canceled | dial tcp 120.233.70.122:14002: operation was canceled

+0000 2025-01-19 16:35:47 ERROR [3521322463 351ms] outbound/urltest[main-out]: dial tcp 120.241.226.13:14004: operation was canceled | dial tcp 120.241.226.12:14004: operation was canceled

+0000 2025-01-19 16:35:47 ERROR [3521322463 351ms] outbound/urltest[main-out]: dial tcp 120.241.226.13:14004: operation was canceled | dial tcp 120.241.226.12:14004: operation was canceled

+0000 2025-01-19 16:40:36 ERROR [32378804 419ms] outbound/urltest[main-out]: context canceled

+0000 2025-01-19 16:40:36 ERROR [32378804 419ms] outbound/urltest[main-out]: dial tcp 120.241.226.13:14004: operation was canceled | dial tcp 120.241.226.12:14004: operation was canceled

+0000 2025-01-19 16:45:27 ERROR [717158430 3.10s] outbound/urltest[main-out]: EOF

+0000 2025-01-19 16:45:27 ERROR [207552832 3.8s] outbound/urltest[main-out]: EOF

OpenWrt/ImmortalWrt release

SNAPSHOT r0-264ea4a

Device

JDCloud RE-CS-03

Additional information

sing-box 1.10.7-r1
luci-app-homeproxy 25.018.19819~5cfc914

Terms

  • I confirm that the HomeProxy I installed is from official source, like GitHub artifacts or official ImmortalWrt opkg feeds.
  • I confirm that the Homeproxy I installed does not contain Clash mode support.
  • I confirm that the version of OpenWrt/ImmortalWrt I installed is >= 23.05.
  • I confirm that I have installed the latest version of HomeProxy and sing-box.
  • I confirm that I have read the sing-box documentation, understand the meaning of all the configuration items I added.
  • I confirm that I have not mixed iptables and nftables rules.
  • I confirm that I have not modified system DNS settings, or enabled any other DNS servers like MosDNS and SmartDNS.
  • I confirm that I have cleared the browser cache.
  • I confirm that I have selected all terms blindly.
@VIKINGYFY VIKINGYFY added the bug Something isn't working label Jan 18, 2025
@VIKINGYFY VIKINGYFY changed the title 最新HP,URLTest + DoH,保留配置刷完机后会启动失败 最新HP,URLTest + DoH,刷完机后有2种情况会启动失败。 Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant