| 
 | 
 
 本帖最后由 yippee 于 2025-9-1 22:14 编辑  
 
最近在换爬墙工具, 用sing-box tun模式打不开本站 
ping<1ms判断是dns阻断, 把正确ip写到host正常访问本站 
是我dns配置的问题吗 
18cm好哥哥帮看下哪里有问题 
--------------------------- 
配置问题已解决, 仅供参考 
---------------------- 
 
- {
 
 -     "log": {
 
 -         "level": "info",
 
 -         "timestamp": true
 
 -     },
 
 -     "dns": {
 
 -         "servers": [
 
 -             {
 
 -                 "tag": "dns_proxy",
 
 -                 "address": "https://1.1.1.1/dns-query",
 
 -                 "address_resolver": "dns_resolver",
 
 -                 "strategy": "ipv4_only",
 
 -                 "detour": "proxy"
 
 -             },
 
 -             {
 
 -                 "tag": "dns_direct",
 
 -                 "address": "https://dns.alidns.com/dns-query",
 
 -                 "address_resolver": "dns_resolver",
 
 -                 "strategy": "ipv4_only",
 
 -                 "detour": "direct"
 
 -             },
 
 -             {
 
 -                 "tag": "dns_resolver",
 
 -                 "address": "223.5.5.5",
 
 -                 "detour": "direct"
 
 -             }
 
 -         ],
 
 -         "rules": [
 
 -             {
 
 -                 "rule_set": "geosite-geolocation-!cn",
 
 -                 "server": "dns_direct"
 
 -             }
 
 -         ],
 
 -         "final": "dns_proxy"
 
 -     },
 
 -     "route": {
 
 -         "rule_set": [
 
 -             {
 
 -                 "tag": "geosite-geolocation-!cn",
 
 -                 "type": "remote",
 
 -                 "format": "binary",
 
 -                 "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
 
 -                 "download_detour": "proxy"
 
 -             },
 
 -             {
 
 -                 "tag": "geoip-cn",
 
 -                 "type": "remote",
 
 -                 "format": "binary",
 
 -                 "url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
 
 -                 "download_detour": "proxy"
 
 -             },
 
 -             {
 
 -                 "tag": "AdGuardSDNSFilter",
 
 -                 "type": "remote",
 
 -                 "format": "binary",
 
 -                 "url": "https://raw.githubusercontent.com/xmdhs/sing-box-ruleset/rule-set/AdGuardSDNSFilterSingBox.srs"
 
 -             }
 
 -         ],
 
 -         "rules": [
 
 -             {
 
 -                 "protocol": "dns",
 
 -                 "outbound": "dns-out"
 
 -             },
 
 -             {
 
 -                 "port": 853,
 
 -                 "network": "tcp",
 
 -                 "outbound": "block"
 
 -             },
 
 -             {
 
 -                 "port": [
 
 -                     443,
 
 -                     853
 
 -                 ],
 
 -                 "network": "udp",
 
 -                 "outbound": "block"
 
 -             },
 
 -             {
 
 -                 "rule_set": "AdGuardSDNSFilter",
 
 -                 "outbound":"block"
 
 -             },
 
 -             {
 
 -                 "type": "logical",
 
 -                 "mode": "and",
 
 -                 "rules": [
 
 -                     {
 
 -                         "rule_set": "geoip-cn",
 
 -                         "invert": true
 
 -                     },
 
 -                     {
 
 -                         "rule_set": "geosite-geolocation-!cn"
 
 -                     }
 
 -                 ],
 
 -                 "outbound": "proxy"
 
 -             },
 
 -             {
 
 -                 "rule_set": "geoip-cn",
 
 -                 "outbound": "direct"
 
 -             },
 
 -             {
 
 -                 "ip_is_private": true,
 
 -                 "outbound": "direct"
 
 -             }
 
 -         ],
 
 -         "final": "proxy",
 
 -         "default_domain_resolver": "dns_proxy",
 
 -         "auto_detect_interface": true
 
 -     },
 
 -     "inbounds": [
 
 -         {
 
 -             "type": "tun",
 
 -             "tag": "tun-in",
 
 -             "address": [
 
 -                 "172.16.0.1/30",
 
 -                 "fd00::1/126"
 
 -             ],
 
 -             "mtu": 1492,
 
 -             "auto_route": true,
 
 -             "strict_route": true,
 
 -             "stack": "system",
 
 -             "sniff": true,
 
 -             "sniff_override_destination": false
 
 -         }
 
 -     ],
 
 -     "outbounds": [
 
 -         {
 
 -             "tag": "proxy",
 
 -             "xxxxxxxxx"
 
 -         },
 
 -         {
 
 -             "type": "direct",
 
 -             "tag": "direct"
 
 -         },
 
 -         {
 
 -             "type": "block",
 
 -             "tag": "block"
 
 -         },
 
 -         {
 
 -             "type": "dns",
 
 -             "tag": "dns-out"
 
 -         }
 
 -     ],
 
 -     "experimental": {
 
 -         "cache_file": {
 
 -             "enabled": true,
 
 -             "path": "cache.db"
 
 -         }
 
 -     }
 
 - }
 
  复制代码 
 
 |   
 
 
 
 |