Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

订阅trojan节点信息不全 #1037

Closed
l4326769 opened this issue Oct 7, 2020 · 5 comments
Closed

订阅trojan节点信息不全 #1037

l4326769 opened this issue Oct 7, 2020 · 5 comments

Comments

@l4326769
Copy link

l4326769 commented Oct 7, 2020

订阅的trojan节点里面少了很多配置
比如SNI这一项

@2dust
Copy link
Owner

2dust commented Oct 7, 2020

@h31105
Copy link

h31105 commented Oct 10, 2020

订阅的trojan节点里面少了很多配置
比如SNI这一项

虽然目前v2ray-core的trojan inbound、outbound配置中,没有关于SNI的定义(应该是在"streamSettings": { "tlsSettings": { "serverName" }中定义 )

但我们暂时可以通过修改guiNConfig.json文件中:"requestHost"选项 添加 SNI 值(亲测有效)

SNI选项 对于中转分流等场景还是十分重要的,希望v2rayN可以考虑支持。

另外经过测试,v2rayN支持trojan协议后,可以支持目前所有兼容trojan协议的服务端,比如v2ray-trojan、trojan-gfw、trojan-go(暂不支持新特性)

@l4326769
Copy link
Author

订阅的trojan先前里面少了很多配置
例如SNI这一项

虽然目前v2ray-core的木马inbound,outbound配置中,没有关于SNI的定义(应该是在“ streamSettings”:{“ tlsSettings”:{“ serverName”}中定义)

但我们暂时可以通过修改guiNConfig.json文件中:“ requestHost”选项添加SNI值(亲测有效)

SNI选项对话对于中转分流等场景还是十分重要的,希望v2rayN可以考虑支持。

另外经过测试,v2rayN支持trojan协议后,可以支持当前所有兼容trojan协议的服务端,例如v2ray-trojan,trojan-gfw,trojan-go(暂不支持新特性)

谢谢可以了

@2dust
Copy link
Owner

2dust commented Oct 11, 2020

能否给个可用的配置信息。测试后可行的话可以加入UI

@h31105
Copy link

h31105 commented Oct 11, 2020

能否给个可用的配置信息。测试后可行的话可以加入UI

guiNConfig.json
{
"configVersion": 2,
"address": "abc.xyz.com",
"port": 443,
"id": "1134c81f697", //trojan-password
"alterId": 0,
"security": "",
"network": "",
"remarks": "123",
"headerType": "",
"requestHost": "trojan.xyz.com", //trojan-tls-servername(SNI)
"path": "",
"streamSecurity": "tls",
"allowInsecure": "false",
"configType": 6,
"testResult": "",
"subid": "",
"flow": ""
},

激活节点后,v2rayN生成的config.json, outbounds部分

"outbounds": [
{
"tag": "proxy",
"protocol": "trojan",
"settings": {
"vnext": null,
"servers": [
{
"email": null,
"address": "abc.xyz.com",
"method": "chacha20",
"ota": false,
"password": "1134c81f697",
"port": 443,
"level": 1,
"users": null
}
],
"response": null
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"allowInsecure": false,
"serverName": "trojan.xyz.com"
},
"tcpSettings": null,
"kcpSettings": null,
"wsSettings": null,
"httpSettings": null,
"quicSettings": null,
"xtlsSettings": null
},
"mux": {
"enabled": false,
"concurrency": -1
}
},

关于trojan订阅链接格式,以下可供参考:
目前Trojan 通用规范:
trojan://$(trojan-password)@$(serveraddress):$(port)?sni=$(tls-servername)&allowinsecure=0#remarks

trojan-go规范(未来可能支持?)参考
p4gefau1t/trojan-go#132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants