mack-a / v2ray-agent

Xray、Tuic、hysteria2、sing-box 八合一一键脚本
https://www.592083.xyz
GNU Affero General Public License v3.0
13.92k stars 4.55k forks source link

求问使用sing-box的tun模式开启透明代理后,nat类型是类型3的问题 #957

Closed qazwsdc closed 7 months ago

qazwsdc commented 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类型为严格

mack-a commented 7 months ago

客户端配置建议去sing-box官方群咨询