p4gefau1t / trojan-go

Go实现的Trojan代理,支持多路复用/路由功能/CDN中转/Shadowsocks混淆插件,多平台,无依赖。A Trojan proxy written in Go. An unidentifiable mechanism that helps you bypass GFW. https://p4gefau1t.github.io/trojan-go/
GNU General Public License v3.0
7.8k stars 1.68k forks source link

请问trojan-go能实现特定分流吗? #258

Open dzhl opened 3 years ago

dzhl commented 3 years ago

我看到v2ray可以实现奈非分流,配置文件如下,请问trojan-go可以实现这一分流吗? { "inbounds": [, "sniffing": { "enabled": true, //一定要开启 sniffing,V2Ray 才能识别 Netflix 的流量 "destOverride": ["http", "tls"] },

}], "outbounds": [{ "protocol": "blackhole", "settings": {}, "tag": "blocked" },{ "tag":"IP4_out", "protocol": "freedom", "settings": {} },{ "tag":"IP6_out", "protocol": "freedom", "settings": { "domainStrategy": "UseIPv6" // 指定使用 IPv6 } } ], "routing": { "rules": [ { "type": "field", "ip": ["geoip:private"], "outboundTag": "blocked" }, { "type": "field", "outboundTag": "IP6_out", "domain": ["geosite:netflix"] // netflix 走 IPv6 }, { "type": "field", "outboundTag": "IP4_out", "network": "udp,tcp"// 其余走 IPv4 } ] } }

BrunuhVille commented 3 years ago

仅实现优先走ipv6也行,不需要指定域名走ipv6,想问下trojan-go能做到吗

"outbounds": [ { "protocol": "freedom", "settings": { "domainStrategy": "UseIPv6" } 优先走ipv6。在v2ray里这样设置"outbounds"就好了,不需要配置"routing" 想请教下trojan-go能否实现

eeff11 commented 2 years ago

继续请教,如何实现类似V2ray这样的功能?如何配置?

iKingEast commented 2 years ago

同问,同需求

Tom2Sia commented 1 year ago

你可以使用clash之类的客户端配置分流,估计trojan-go自身的客户端是无法分流的,只能一个客户端对应一个服务器。