Closed sosojustdo closed 1 month ago
"dns": { "servers": [ { "tag": "local_dns", "address": "https://223.5.5.5/dns-query", "address_strategy": "ipv4_only", "strategy": "ipv4_only", "detour": "direct" }, { "tag": "dns_proxy", "address": "https://1.1.1.1/dns-query", "strategy": "ipv4_only", "address_resolver": "dns_resolver", "detour": "direct" }, { "tag": "block", "address": "rcode://success" }, { "tag": "fake_dns", "address": "fakeip" }, { "tag": "dns_resolver", "address": "https://223.5.5.5/dns-query", "strategy": "ipv4_only", "detour": "direct" } ], "rules": [ { "outbound": "any", "server": "local_dns" }, { "rule_set": "geosite-geolocation-cn", "server": "local_dns" }, { "geosite": [ "cn" ], "domain_suffix": [ ".cn" ], "server": "local_dns", "disable_cache": false }, { "query_type": [ "A", "AAAA" ], "server": "fake_dns" }, { "type": "logical", "mode": "and", "rules": [ { "rule_set": "geosite-geolocation-!cn", "invert": true }, { "rule_set": "geoip-cn" } ], "server": "dns_proxy", "client_subnet": "114.114.114.114/24" }, { "geosite": [ "category-ads-all" ], "server": "block", "disable_cache": true } ], "fakeip": { "enabled": true, "inet4_range": "198.18.0.0/15", "inet6_range": "fc00::/18" }, "independent_cache": true, "final": "dns_proxy", "strategy": "ipv4_only", "disable_cache": false, "disable_expire": false },
mac os 1.9.3 version SFM works good
{ "log": { "disabled": false, "level": "info" }, "dns": { "servers": [ { "tag": "local_dns", "address": "https://223.5.5.5/dns-query", "address_strategy": "ipv4_only", "strategy": "ipv4_only", "detour": "direct" }, { "tag": "dns_proxy", "address": "https://1.1.1.1/dns-query", "strategy": "ipv4_only", "address_resolver": "dns_resolver", "detour": "direct" }, { "tag": "block", "address": "rcode://success" }, { "tag": "fake_dns", "address": "fakeip" }, { "tag": "dns_resolver", "address": "https://223.5.5.5/dns-query", "strategy": "ipv4_only", "detour": "direct" } ], "rules": [ { "outbound": "any", "server": "local_dns" }, { "rule_set": "geosite-geolocation-cn", "server": "local_dns" }, { "geosite": [ "cn" ], "domain_suffix": [ ".cn" ], "server": "local_dns", "disable_cache": false }, { "query_type": [ "A", "AAAA" ], "server": "fake_dns" }, { "type": "logical", "mode": "and", "rules": [ { "rule_set": "geosite-geolocation-!cn", "invert": true }, { "rule_set": "geoip-cn" } ], "server": "dns_proxy", "client_subnet": "114.114.114.114/24" }, { "geosite": [ "category-ads-all" ], "server": "block", "disable_cache": true } ], "fakeip": { "enabled": true, "inet4_range": "198.18.0.0/15", "inet6_range": "fc00::/18" }, "independent_cache": true, "final": "dns_proxy", "strategy": "ipv4_only", "disable_cache": false, "disable_expire": false }, "inbounds": [ { "type": "tun", "tag": "tun-in", "auto_route": true, "strict_route": true, "stack": "system", "mtu": 1500, "sniff": true, "inet4_address": [ "172.19.0.1/30" ], "inet6_address": [ "fdfe:dcba:9876::1/126" ] } ], "outbounds": [ { "type": "vless", "tag": "my_vless_proxy" }, { "type": "direct", "tag": "direct" }, { "type": "block", "tag": "block" }, { "type": "dns", "tag": "dns-out" } ], "route": { "geoip": { "path": "geoip.db", "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", "download_detour": "direct", "download_detour": "my_vless_proxy" }, "geosite": { "path": "geosite.db", "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", "download_detour": "direct", "download_detour": "my_vless_proxy" }, "rule_set": [ { "type": "remote", "tag": "geoip-cn", "format": "binary", "url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs", "download_detour": "my_vless_proxy" }, { "type": "remote", "tag": "geosite-geolocation-!cn", "format": "binary", "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs", "download_detour": "my_vless_proxy" }, { "type": "remote", "tag": "geosite-geolocation-cn", "format": "binary", "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs", "download_detour": "my_vless_proxy" } ], "rules": [ { "protocol": "dns", "outbound": "dns-out" }, { "geosite": [ "cn", "private" ], "geoip": [ "cn", "private" ], "domain_suffix": [ ".cn" ], "outbound": "direct" }, { "geosite": [ "category-ads-all" ], "outbound": "block" } ], "auto_detect_interface": true, "final": "my_vless_proxy" }, "experimental": { "cache_file": { "enabled": true, "store_fakeip": true, "store_rdrc": true }, "clash_api": { "default_mode": "Rule" } } }
@wade0317 感谢您的分享,首先我将本地sing-box更新到1.9.3,然后我根据您提供的内容重新整理了sing-box客户端配置: { "log": { "disabled": false, "level": "info" }, "dns": { "servers": [ { "tag": "local_dns", "address": "https://223.5.5.5/dns-query", "address_strategy": "ipv4_only", "strategy": "ipv4_only", "detour": "direct" }, { "tag": "dns_proxy", "address": "https://1.1.1.1/dns-query", "strategy": "ipv4_only", "address_resolver": "dns_resolver", "detour": "direct" }, { "tag": "block", "address": "rcode://success" }, { "tag": "fake_dns", "address": "fakeip" }, { "tag": "dns_resolver", "address": "https://223.5.5.5/dns-query", "strategy": "ipv4_only", "detour": "direct" } ], "rules": [ { "outbound": "any", "server": "local_dns" }, { "rule_set": "geosite-geolocation-cn", "server": "local_dns" }, { "geosite": [ "cn" ], "domain_suffix": [ ".cn" ], "server": "local_dns", "disable_cache": false }, { "query_type": [ "A", "AAAA" ], "server": "fake_dns" }, { "type": "logical", "mode": "and", "rules": [ { "rule_set": "geosite-geolocation-!cn", "invert": true }, { "rule_set": "geoip-cn" } ], "server": "dns_proxy", "client_subnet": "114.114.114.114/24" }, { "geosite": [ "category-ads-all" ], "server": "block", "disable_cache": true } ], "fakeip": { "enabled": true, "inet4_range": "198.18.0.0/15", "inet6_range": "fc00::/18" }, "independent_cache": true, "final": "dns_proxy", "strategy": "ipv4_only", "disable_cache": false, "disable_expire": false }, "inbounds": [ { "type": "tun", "tag": "tun-in", "auto_route": true, "strict_route": true, "stack": "system", "mtu": 1500, "sniff": true, "inet4_address": [ "172.19.0.1/30" ], "inet6_address": [ "fdfe:dcba:9876::1/126" ] }, { "type": "socks", "listen": "127.0.0.1", "listen_port": 1089, "sniff": true, "users": [ { "username": "admin", "password": "admin" } ] } ], "outbounds": [ { "type": "hysteria2", "tag": "Hysteria2-2302", "server": "我的vpsip", "server_port": 443, "up_mbps": 20, "down_mbps": 100, "password": "hysteria2服务端设置的密码", "tls": { "enabled": true, "insecure": true, "server_name": "bing.com" } }, { "type": "vless", "tag": "my_vless_proxy" }, { "type": "direct", "tag": "direct" }, { "type": "block", "tag": "block" }, { "type": "dns", "tag": "dns-out" } ], "route": { "geoip": { "path": "geoip.db", "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", "download_detour": "my_vless_proxy" }, "geosite": { "path": "geosite.db", "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", "download_detour": "my_vless_proxy" }, "rule_set": [ { "type": "remote", "tag": "geoip-cn", "format": "binary", "url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs", "download_detour": "my_vless_proxy" }, { "type": "remote", "tag": "geosite-geolocation-!cn", "format": "binary", "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs", "download_detour": "my_vless_proxy" }, { "type": "remote", "tag": "geosite-geolocation-cn", "format": "binary", "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs", "download_detour": "my_vless_proxy" } ], "rules": [ { "protocol": "dns", "outbound": "dns-out" }, { "geosite": [ "cn", "private" ], "geoip": [ "cn", "private" ], "domain_suffix": [ ".cn" ], "outbound": "direct" }, { "geosite": [ "category-ads-all" ], "outbound": "block" } ], "auto_detect_interface": true, "final": "my_vless_proxy" }, "experimental": { "cache_file": { "enabled": true, "store_fakeip": true, "store_rdrc": true }, "clash_api": { "default_mode": "Rule" } } }
我的VPS上hysteria2的配置是: listen: :443
tls: cert: /etc/hysteria/server.crt key: /etc/hysteria/server.key
auth: type: password password: hysteria2服务端设置的密码
masquerade: type: proxy proxy: url: https://www.bing.com rewriteHost: true
log: level: debug file: /var/log/hysteria/hysteria.log
sing-box启动报错:
Operating system
macOS
System version
13.6.1
Installation type
sing-box for macOS Graphical Client
If you are using a graphical client, please provide the version of the client.
1.7.4
Version
No response
Description
macos sing-box DNS servers config: { "tag": "dns_proxy", "address": "https://dns.google/dns-query", "address_resolver": "dns_local", "detour": "select" }
{ "tag": "dns_proxy", "address": "https://1.1.1.1/dns-query", "address_resolver": "dns_local", "detour": "select" }
Reproduction
Can't visit google.com
Logs
No response
Supporter
Integrity requirements