求教: http协议用不了 #2009
Rosario9527
started this conversation in
General
求教: http协议用不了
#2009
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
搭了一个使用http的协议服务器。
配置的方式是tcp采用http+TLS,udp采用vmess+TLS.
但是按照这种配置,telegarm也连接不上。youtube图片也加载不出来,但是居然能放视频。
服务器v2ray版本是
4.45.2
客户端是 编译的 android
4.45.2
测试过(tcp+udp)都走 vmess是正常的, 怀疑问题出在http的配置上,但是找了好久好久都没找到问题。
HELP ME!!
客户端报错:
app/proxyman/outbound: failed to process outbound traffic > proxy/http: failed to find an available destination > common/retry: [unexpected EOF] > common/retry: all retry attempts failed
端口什么的肯定是开了的,本地
nc
也能通。服务器配置 inbounds部分:
inbounds: {
"port": 6666,
"listen": "0.0.0.0",
"tag": "http",
"protocol": "http",
"settings": {
"accounts": [{
"user": "xxxx",
"pass": "xxxx"
}]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"alpn": [
"h2",
"http/1.1"
],
"certificates": [{
"certificateFile": "certificate.crt",
"keyFile": "private.key"
}]
}
}
},
{
"port": 6667,
"listen": "0.0.0.0",
"tag": "vmess",
"protocol": "vmess",
"settings": {
"clients": [{
"id": "xxxxxxxxx",
}]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"alpn": [
"h2",
"http/1.1"
],
"certificates": [{
"certificateFile": "certificate.crt",
"keyFile": "private.key"
}]
}
}
}
客户端的配置outbounds部分为:
outbounds: [
{
"settings": {
"servers": [
{
"address": "xxxxx",
"port": 6666,
"users": [
{
"user": "xxxx",
"pass": "xxxx"
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"allowInsecure": false,
"serverName": ""
}
},
"protocol": "http",
"tag": "http"
},
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "xxxxxx",
"port": 6667,
"users": [
{
"alterId": 0,
"id": "xxxxxxx",
"level": 0,
"security": "auto"
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tcpSettings": {
"header": {
"type": "none"
}
}
},
"tag": "udp"
},
{
"protocol": "freedom",
"settings": {},
"tag": "direct"
}
],
Routing的部分:
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"network": "udp",
"outboundTag": "udp"
},
{
"type": "field",
"network": "tcp",
"outboundTag": "http"
}
]
}
Best Regards!
Beta Was this translation helpful? Give feedback.
All reactions