Closed CuriousandTime closed 9 months ago
box.config 内容
#!/system/bin/sh bin_name="sing-box" redir_port="7891" tproxy_port="1536" clash_dns_port="1053" clash_dns_listen="0.0.0.0:${clash_dns_port}" clash_fake_ip_range="28.0.0.1/8" tun_device="tun0" box_user_group="root:net_admin" bin_name_list=("sing-box" "clash" "xray" "v2ray") box_path="/data/adb/box" bin_path="${box_path}/bin/${bin_name}" run_path="${box_path}/run" pid_file="${run_path}/${bin_name}.pid" intranet=(0.0.0.0/8 10.0.0.0/8 100.64.0.0/10 127.0.0.0/8 169.254.0.0/16 192.0.0.0/24 192.0.2.0/24 192.88.99.0/24 192.168.0.0/16 198.51.100.0/24 203.0.113.0/24 224.0.0.0/4 240.0.0.0/4 255.255.255.255/32) intranet6=(::/128 ::1/128 ::ffff:0:0/96 100::/64 64:ff9b::/96 2001::/32 2001:10::/28 2001:20::/28 2001:db8::/32 2002::/16 fe80::/10 ff00::/8) ipv6="disable" proxy_method="TPROXY" proxy_mode="blacklist" user_packages_list=() gid_list=() ap_list=("wlan+" "ap+" "rndis+") ignore_out_list=()
不知道哪里错误,什么都没敢修改,只修改了运行核心bin_name="sing-box"运行就会报错: /data/adb/box/scripts/box.tproxy[559]: can't create /proc/sys/net/ipv6/conf/wlan0/accept_ra: No such file or directory
proxy_mode="blacklist"修改为proxy_mode="core"就没问题了但仍然打不开管理面板。手机U是联发科的。 sing-box 配置
{ "log": { "disabled": false, "level": "warn", "output": "box.log", "timestamp": true }, "dns": { "servers": [ { "tag": "cloudflare", "address": "tls://8.8.8.8", "detour": "Proxy" }, { "tag": "dnspod", "address": "https://223.5.5.5/dns-query", "detour": "direct" }, { "tag": "fakedns", "address": "fakeip" }, { "tag": "block", "address": "rcode://success" } ], "rules": [ { "outbound": "any", "server": "dnspod" // "disable_cache": true }, { "geosite": "category-ads-all", "server": "block", "disable_cache": true }, { "domain_keyword": [ "ntp", "time" ], "domain_regex": [ "(^|\\.)(alt[1-8]-mtalk|mtalk|mtalk4)\\.google\\.com$" ], "geosite": [ "cn", "apple@cn", "category-games@cn", "private" ], "server": "dnspod" }, { "query_type": [ "A", "AAAA" ], "server": "fakedns" } ], "fakeip": { "enabled": true, "inet4_range": "198.18.0.0/15", "inet6_range": "fc00::/18" }, "strategy": "prefer_ipv4", // "strategy": "ipv4_only" "independent_cache": true }, "inbounds": [ // { // "type": "mixed", // "tag": "mixed-in", // "listen": "::", // "listen_port": 1080, // "sniff": true // "domain_strategy": "prefer_ipv4" // remove this line if you want to resolve the domain remotely (if the server is not sing-box, UDP may not work due to wrong behavior). // "set_system_proxy": false // }, { "type": "tun", "tag": "tun-in", "interface_name": "tun3", "inet4_address": "172.19.0.1/30", // "inet6_address": "fdfe:dcba:9876::1/126", "stack": "system", "auto_route": true, "strict_route": true, "sniff": true, "platform": { "http_proxy": { "enabled": true, "server": "127.0.0.1", "server_port": 1080 } } } // { // "type": "tproxy", // "tag": "tproxy-in", // "listen": "::", // "listen_port": 1536, // "sniff": true // } ], // proviedrs 需要使用 https://github.com/qjebbs/sing-box // "providers": [ { "tag": "国际", "url": "https://xxx", "interval": "24h", "cache_file": "provider1.txt", "download_detour": "direct" } // { // "tag": "provider2", // "url": "base64 订阅链接2", // "interval": "18h", // "cache_file": "provider2.txt", // "download_detour": "direct", // // "exclude": "官网|剩余|到期|流量" // }, // { // "tag": "provider3", // "url": "base64 订阅链接3", // "interval": "12h", // "cache_file": "provider3.txt", // "download_detour": "direct", // // "include": "IEPL|专线" // } ], "outbounds": [ { "type": "direct", "tag": "direct", "domain_strategy": "prefer_ipv4" }, { "type": "block", "tag": "block" }, { "type": "dns", "tag": "dns-out" }, { "type": "selector", "tag": "Proxy", "providers": [ "国际" // "provider2", // "provider3" ], "outbounds": [ "direct" ] }, { "type": "selector", "tag": "Domestic", "providers": [ "国际" // "provider2", // "provider3" ], "outbounds": [ "direct" ] } ], "route": { "rules": [ { "port": 53, "outbound": "dns-out" }, { "port": [ 123 ], "port_range": [ "5228:5230" ], "outbound": "direct" }, { "geosite": "category-ads-all", "outbound": "block" }, { "geosite": [ "apple@cn", "category-games@cn", "private" ], "outbound": "direct" }, { "geosite": [ "geolocation-!cn", "microsoft", "apple", "google" ], "outbound": "direct" }, { "geosite": [ "cn" ], "outbound": "direct" }, { "geoip": [ "cn", "private" ], "outbound": "direct" } ], // "auto_detect_interface": true, "find_process": true, "final": "Proxy" }, "experimental": { "clash_api": { "external_controller": "0.0.0.0:9999", "secret": "singbox", "external_ui": "dashboard", "store_selected": true, "store_fakeip": true }, "debug": { "listen": "0.0.0.0:8964" } } }
你提供的报错不影响使用 至于打不开网页面板,没有日志,我无能为力
至于没有网络,因为使用了 TPROXY 并同时启用了 sing-box 的 tun 而导致冲突,使用 core 模式搭配 tun 自然没问题
还有我想提醒你,订阅漏了
box.config 内容
不知道哪里错误,什么都没敢修改,只修改了运行核心bin_name="sing-box"运行就会报错: /data/adb/box/scripts/box.tproxy[559]: can't create /proc/sys/net/ipv6/conf/wlan0/accept_ra: No such file or directory
proxy_mode="blacklist"修改为proxy_mode="core"就没问题了但仍然打不开管理面板。手机U是联发科的。 sing-box 配置