[GH-ISSUE #50] TLS/XTLS Not Work #14

Closed
opened 2026-10-31 20:08:32 +07:00 by bsakaguchi · 12 comments
Owner

Originally created by @PrivyXe on GitHub (Mar 20, 2023).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/50

Hello dear developer. I use the software you created individually, but with the last update, vmess, vless and trojan that I created as tls and xtls do not work. What is the problem ? Thanks

Originally created by @PrivyXe on GitHub (Mar 20, 2023). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/50 Hello dear developer. I use the software you created individually, but with the last update, vmess, vless and trojan that I created as tls and xtls do not work. What is the problem ? Thanks
bsakaguchi 2026-10-31 20:08:32 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@alireza0 commented on GitHub (Mar 22, 2023):

Hello @VPNCI ,
Could you please send us more information about your tls/xtls configuration ?
There is a known bug that we are not sure if it is related to this problem.

P.S. Could you please test them by setting ALPN to none ?

<!-- gh-comment-id:1479290539 --> @alireza0 commented on GitHub (Mar 22, 2023): Hello @VPNCI , Could you please send us more information about your tls/xtls configuration ? There is a known bug that we are not sure if it is related to this problem. P.S. Could you please test them by setting ALPN to `none` ?
Author
Owner

@ghost commented on GitHub (Mar 22, 2023):

It does not work for me with the same problem, XTLS only works with previous configurations and any new XTLS will not work with this xray configuration.

`{
"log": {
"loglevel": "warning",
"access": "./access.log"
},

"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"policy": {
"levels": {
"0": {
"statsUserUplink": true,
"statsUserDownlink": true
}
},
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"ip": [
"geoip:private",
"geoip:ir"
],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field"
}
]
},
"stats": {}
}`

<!-- gh-comment-id:1479297987 --> @ghost commented on GitHub (Mar 22, 2023): It does not work for me with the same problem, XTLS only works with previous configurations and any new XTLS will not work with this xray configuration. `{ "log": { "loglevel": "warning", "access": "./access.log" }, "api": { "services": [ "HandlerService", "LoggerService", "StatsService" ], "tag": "api" }, "inbounds": [ { "listen": "127.0.0.1", "port": 62789, "protocol": "dokodemo-door", "settings": { "address": "127.0.0.1" }, "tag": "api" } ], "outbounds": [ { "protocol": "freedom", "settings": {} }, { "protocol": "blackhole", "settings": {}, "tag": "blocked" } ], "policy": { "levels": { "0": { "statsUserUplink": true, "statsUserDownlink": true } }, "system": { "statsInboundDownlink": true, "statsInboundUplink": true } }, "routing": { "domainStrategy": "IPIfNonMatch", "rules": [ { "inboundTag": [ "api" ], "outboundTag": "api", "type": "field" }, { "ip": [ "geoip:private", "geoip:ir" ], "outboundTag": "blocked", "type": "field" }, { "outboundTag": "blocked", "protocol": [ "bittorrent" ], "type": "field" } ] }, "stats": {} }`
Author
Owner

@PrivyXe commented on GitHub (Mar 22, 2023):

Screenshot_2023-03-22-13-34-37-119_com server auditor ssh client-edit

Normal TLS or xtls settings that I always create. After the last update, when I try to connect, I get a timeout warning. Shadowsocks works fine as it doesn't want TLS.

`{
"log": {
"loglevel": "warning",
"access": "./access.log"
},

"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"policy": {
"levels": {
"0": {
"statsUserUplink": true,
"statsUserDownlink": true
}
},
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field"
}
]
},
"stats": {}
}
`

Also, I request you to add a DNS address entry field to the panel. Thanks for your work 🤜🤛

<!-- gh-comment-id:1479307631 --> @PrivyXe commented on GitHub (Mar 22, 2023): ![Screenshot_2023-03-22-13-34-37-119_com server auditor ssh client-edit](https://user-images.githubusercontent.com/82672037/226877281-c69ec3f2-af05-41f0-85cc-c8fa37bdf64c.jpg) Normal TLS or xtls settings that I always create. After the last update, when I try to connect, I get a timeout warning. Shadowsocks works fine as it doesn't want TLS. `{ "log": { "loglevel": "warning", "access": "./access.log" }, "api": { "services": [ "HandlerService", "LoggerService", "StatsService" ], "tag": "api" }, "inbounds": [ { "listen": "127.0.0.1", "port": 62789, "protocol": "dokodemo-door", "settings": { "address": "127.0.0.1" }, "tag": "api" } ], "outbounds": [ { "protocol": "freedom", "settings": {} }, { "protocol": "blackhole", "settings": {}, "tag": "blocked" } ], "policy": { "levels": { "0": { "statsUserUplink": true, "statsUserDownlink": true } }, "system": { "statsInboundDownlink": true, "statsInboundUplink": true } }, "routing": { "rules": [ { "inboundTag": [ "api" ], "outboundTag": "api", "type": "field" }, { "ip": [ "geoip:private" ], "outboundTag": "blocked", "type": "field" }, { "outboundTag": "blocked", "protocol": [ "bittorrent" ], "type": "field" } ] }, "stats": {} } ` Also, I request you to add a DNS address entry field to the panel. Thanks for your work 🤜🤛
Author
Owner

@alireza0 commented on GitHub (Mar 22, 2023):

@VPNCI Thank youfor providing this data.
But I need next page of your screenshot which contains more tlsSettings

<!-- gh-comment-id:1479313396 --> @alireza0 commented on GitHub (Mar 22, 2023): @VPNCI Thank youfor providing this data. But I need next page of your screenshot which contains more `tlsSettings`
Author
Owner

@PrivyXe commented on GitHub (Mar 22, 2023):

Of course

IMG_20230322_134245

<!-- gh-comment-id:1479317642 --> @PrivyXe commented on GitHub (Mar 22, 2023): Of course ![IMG_20230322_134245](https://user-images.githubusercontent.com/82672037/226879541-a4a11ae9-d641-47ca-8e65-347aaa1020c1.jpg)
Author
Owner

@alireza0 commented on GitHub (Mar 22, 2023):

@VPNCI

Not this one actually. But in file /usr/loca/x-ui/bin/config.json

<!-- gh-comment-id:1479318886 --> @alireza0 commented on GitHub (Mar 22, 2023): @VPNCI Not this one actually. But in file `/usr/loca/x-ui/bin/config.json`
Author
Owner

@PrivyXe commented on GitHub (Mar 22, 2023):

Trojan TLS settings

{
"listen": null,
"port": 443,
"protocol": "trojan",
"settings": {
"clients": [
{
"email": "m9szcvl38v",
"expiryTime": "",
"flow": "",
"limitIp": 0,
"password": "03PlHRa7iG",
"totalGB": 0
}
],
"fallbacks": []
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"serverName": "xxxx.com",
"minVersion": "1.2",
"maxVersion": "1.3",
"cipherSuites": ""
"certificates": [
{
"certificateFile": "/etc/letsencrypt/live/xxx.com/fullchain.pem>
"keyFile": "/etc/letsencrypt/live/xxx.xom/privkey.pem"
}
],
"alpn": [
""
],
"settings": [
{
"allowInsecure": false,
"fingerprint": "",
"serverName": "xxx.com"
}
]
},
"tcpSettings": {
"header": {
"type": "none"
},
"acceptProxyProtocol": false
}
},
"tag": "inbound-443",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},`

<!-- gh-comment-id:1479370393 --> @PrivyXe commented on GitHub (Mar 22, 2023): Trojan TLS settings { "listen": null, "port": 443, "protocol": "trojan", "settings": { "clients": [ { "email": "m9szcvl38v", "expiryTime": "", "flow": "", "limitIp": 0, "password": "03PlHRa7iG", "totalGB": 0 } ], "fallbacks": [] }, "streamSettings": { "network": "tcp", "security": "tls", "tlsSettings": { "serverName": "xxxx.com", "minVersion": "1.2", "maxVersion": "1.3", "cipherSuites": "" "certificates": [ { "certificateFile": "/etc/letsencrypt/live/xxx.com/fullchain.pem> "keyFile": "/etc/letsencrypt/live/xxx.xom/privkey.pem" } ], "alpn": [ "" ], "settings": [ { "allowInsecure": false, "fingerprint": "", "serverName": "xxx.com" } ] }, "tcpSettings": { "header": { "type": "none" }, "acceptProxyProtocol": false } }, "tag": "inbound-443", "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] } } ], "outbounds": [ { "protocol": "freedom", "settings": {} },`
Author
Owner

@alireza0 commented on GitHub (Mar 22, 2023):

It seems the problem is in ALPN only!
Could you please set it to "h2" only and test if it works ?

<!-- gh-comment-id:1479485646 --> @alireza0 commented on GitHub (Mar 22, 2023): It seems the problem is in ALPN only! Could you please set it to "h2" only and test if it works ?
Author
Owner

@PrivyXe commented on GitHub (Mar 22, 2023):

It seems the problem is in ALPN only! Could you please set it to "h2" only and test if it works ?

Hello again. I tried ALPN h2 connection failed. I also tried http/1.1 and failed. If you want, I can send you panel and server information. Do you have a Telegram address?

<!-- gh-comment-id:1479500014 --> @PrivyXe commented on GitHub (Mar 22, 2023): > It seems the problem is in ALPN only! Could you please set it to "h2" only and test if it works ? Hello again. I tried ALPN h2 connection failed. I also tried http/1.1 and failed. If you want, I can send you panel and server information. Do you have a Telegram address?
Author
Owner

@alireza0 commented on GitHub (Mar 22, 2023):

Please send an email to me

<!-- gh-comment-id:1479510814 --> @alireza0 commented on GitHub (Mar 22, 2023): Please send an email to me
Author
Owner

@PrivyXe commented on GitHub (Mar 23, 2023):

Please send an email to me

I have sent you the information by e-mail. Thanks for your hard work

<!-- gh-comment-id:1480739348 --> @PrivyXe commented on GitHub (Mar 23, 2023): > Please send an email to me I have sent you the information by e-mail. Thanks for your hard work
Author
Owner

@MHSanaei commented on GitHub (Mar 23, 2023):

مشکل حل شده در نسخه 1.1.2 که به زودی منتشر میشه
با تشکر از مهدس علیرضا

<!-- gh-comment-id:1481189483 --> @MHSanaei commented on GitHub (Mar 23, 2023): مشکل حل شده در نسخه 1.1.2 که به زودی منتشر میشه با تشکر از مهدس علیرضا
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#14
No description provided.