-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Bad request through vmess with shadowtls #199
Comments
It doesn't make sense to use double tls. |
@nekohasekai I set "tls": { for server and client, the same bad request is shown. Any wrong configuration? |
You should use minimal configuration to check what is causing the problem. |
After removing "transport": { working fine. Thanks |
The latest situation is like this. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Welcome
Description of the problem
+0000 2022-11-01 06:54:48 INFO [2765046038] inbound/shadowtls[shadowtls-in-vmess]: inbound connection from my_ip:23541
+0000 2022-11-01 06:54:48 INFO [2765046038] dns: lookup succeed for www.bing.com: 13.107.21.200 2600:1403:9c00:4a8::255e 2600:1403:9c00:499::255e
+0000 2022-11-01 06:54:49 INFO [2765046038] inbound/shadowtls[shadowtls-in-vmess]: inbound connection to vps_ip:2081
+0000 2022-11-01 06:54:49 ERROR [2765046038] inbound/shadowtls[shadowtls-in-vmess]: process connection from my_ip:23541: inject vmess-in: bad request
Version of sing-box
$ sing-box version
sing-box version 1.1-beta11
Environment: go1.19.2 linux/amd64
Tags: with_quic,with_wireguard,with_acme
Revision: 16d959e
CGO: enabled
Server and client configuration file
Server
{
"type": "shadowtls",
"tag": "shadowtls-in-vmess",
"listen": "0.0.0.0",
"listen_port": 2081,
"tcp_fast_open": false,
"version": 2,
"password": "pw",
"detour": "vmess-in",
"handshake": {
"server": "www.bing.com",
"server_port": 443
}
},
{
"type": "vmess",
"tag": "vmess-in",
"listen": "127.0.0.1",
"tcp_fast_open": false,
"users": [
{
"name": "user",
"uuid": "194480b6-b25c-464b-8cb9-f4dd738cbff7",
"alterId": 0
}
],
"tls": {
"enabled": true,
"server_name": "domain_name",
"min_version": "1.2",
"max_version": "1.3",
"certificate_path": "/root/.acme.sh/domain_name/fullchain.cer",
"key_path": "/root/.acme.sh/domain_name/domain_name.key"
},
"transport": {
"type": "ws",
"path": "/gfw"
}
}
client
"inbounds": [
{
"type": "mixed",
"listen_port": 1080,
"sniff": true
// "set_system_proxy": true
}
],
"outbounds": [
{
"type": "vmess",
"tag": "vmess-out",
"detour": "shadowtls-out-vmess",
"uuid": "194480b6-b25c-464b-8cb9-f4dd738cbff7",
"security": "auto",
"alter_id": 0,
"global_padding": false,
"authenticated_length": true,
"tls": {
"enabled": true,
"disable_sni": false,
"server_name": "domain_name",
"insecure": false,
"min_version": "1.2",
"max_version": "1.3",
"ech": {
"enabled": false,
"pq_signature_schemes_enabled": false,
"dynamic_record_sizing_disabled": false,
"config": ""
}
},
"packet_encoding": "",
"multiplex": {
"enabled": true,
"protocol": "smux",
"max_connections": 4,
"min_streams": 4
},
"transport": {
"type": "ws",
"path": "/gfw"
}
},
{
"type": "shadowtls",
"tag": "shadowtls-out-vmess",
"server": "vps_ip",
"server_port": 2081,
"version": 2,
"password": "pw",
"tls": {
"enabled": true,
"server_name": "www.bing.com"
}
},
{
"type": "direct",
"tag": "direct"
},
{
"type": "block",
"tag": "block"
}
],
"route": {
"rules": [
{
"geosite": "category-ads-all",
"outbound": "block"
},
{
"geosite": "cn",
"geoip": "cn",
"outbound": "direct"
}
]
}
Server and client log file
server side
+0000 2022-11-01 06:54:48 INFO [2765046038] inbound/shadowtls[shadowtls-in-vmess]: inbound connection from my_ip:23541
+0000 2022-11-01 06:54:48 INFO [2765046038] dns: lookup succeed for www.bing.com: 13.107.21.200 2600:1403:9c00:4a8::255e 2600:1403:9c00:499::255e
+0000 2022-11-01 06:54:49 INFO [2765046038] inbound/shadowtls[shadowtls-in-vmess]: inbound connection to vps_ip:2081
+0000 2022-11-01 06:54:49 ERROR [2765046038] inbound/shadowtls[shadowtls-in-vmess]: process connection from my_ip:23541: inject vmess-in: bad request
The text was updated successfully, but these errors were encountered: