|
debian11是全新DD安装,客户端和服务端均使用官方一键安装singbox,已开启内核转发,没装防火墙,相同配置下手机能正常工作,debian11启动一会儿提示规则下载失败,循环重启,求大佬指导。
代码是参考下面的。
[ol]{ "log": { "level": "info", "timestamp": true }, "dns": { "servers": [ { "tag": "cloudflare", "address": "https://1.1.1.1/dns-query" }, { "tag": "dnspod", "address": "https://1.12.12.12/dns-query", "detour": "direct" }, { "tag": "block", "address": "rcode://success" } ], "rules": [ { "geosite": "category-ads-all", "server": "block", "disable_cache": true }, { "outbound": "any", "server": "dnspod" }, { "geosite": "cn", "server": "dnspod" } ], "strategy": "ipv4_only" }, "inbounds": [ { "type": "tun", "tag": "tun-in", "interface_name": "tun0", "inet4_address": "172.28.0.1/30", "auto_route": true, "strict_route": true, "stack": "system", "sniff": true } ], "outbounds": [ { "type": "vless", "tag": "vless-out", "server": "115.201.11.215", //改你上面服务端的IP "server_port": 10086, //改你上面服务端配置的端口 "uuid": "f26d12dc-5bb2-4631-93fc-ffceff0b14df", //改你上面服务端修改的uuid "flow": "", "tls": { "enabled": true, "server_name": "itunes.apple.com", //改你上面服务端的网站 "utls": { "enabled": true, "fingerprint": "chrome" }, "reality": { "enabled": true, "public_key": "YAgjTLMijdBzmT-cxHUQT41MmrPv0VkomyXq1-OPvTU", //改你上面服务端的公钥,私钥是填服务端的,成对出现。 "short_id": "164168844958a16d" //改你上面服务端 } }, "packet_encoding": "xudp", "multiplex": { "enabled": true, "protocol": "h2mux", "max_streams": 10, "padding": true, "brutal":{ "enabled": true, "up_mbps": 30, //因为配的是tun模式,安卓手机,我的手机5G测速,只有30M上行,可能这里信号不好,改你自己的 "down_mbps": 1000 //这个随便填,实际不启作用。 } } }, { "type": "direct", "tag": "direct" }, { "type": "block", "tag": "block" }, { "type": "dns", "tag": "dns" } ], "route": { "geoip": { "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", "download_detour": "vless-out" }, "geosite": { "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", "download_detour": "vless-out" }, "rules": [ { "protocol": "dns", "outbound": "dns" }, { "geosite": "cn", "geoip": [ "cn", "private" ], "outbound": "direct" }, { "geosite": "category-ads-all", "outbound": "block" } ], "auto_detect_interface": true }}[/ol]复制代码 |
|