Closed qazwsdc closed 7 months ago
{ "dns": { "servers": [ { "tag": "google", "address": "tls://8.8.8.8" }, { "tag": "local", "address": "223.5.5.5", "detour": "direct" } ], "rules": [ { "outbound": "any", "server": "local" } ], "strategy": "ipv4_only" }, "inbounds": [ { "type": "tun", "inet4_address": "172.19.0.1/30", "auto_route": true, "strict_route": false } ], "outbounds": [ // ...梯子配置 { "type": "direct", "tag": "direct" }, { "type": "dns", "tag": "dns-out" } ], "route": { "rules": [ { "protocol": "dns", "outbound": "dns-out" }, { "geoip": [ "private" ], "outbound": "direct" } ], "auto_detect_interface": true } }
这是透明代理的配置文件。服务端用的是VLESS-Vision-TLS 游戏机将网关指向该透明代理ip,dns设为1.1.1.1。NAT类型为严格
客户端配置建议去sing-box官方群咨询
{ "dns": { "servers": [ { "tag": "google", "address": "tls://8.8.8.8" }, { "tag": "local", "address": "223.5.5.5", "detour": "direct" } ], "rules": [ { "outbound": "any", "server": "local" } ], "strategy": "ipv4_only" }, "inbounds": [ { "type": "tun", "inet4_address": "172.19.0.1/30", "auto_route": true, "strict_route": false } ], "outbounds": [ // ...梯子配置 { "type": "direct", "tag": "direct" }, { "type": "dns", "tag": "dns-out" } ], "route": { "rules": [ { "protocol": "dns", "outbound": "dns-out" }, { "geoip": [ "private" ], "outbound": "direct" } ], "auto_detect_interface": true } }
这是透明代理的配置文件。服务端用的是VLESS-Vision-TLS 游戏机将网关指向该透明代理ip,dns设为1.1.1.1。NAT类型为严格