群晖NAS上成功架设了v2ray,但在更换路由器后能ping通服务器不能连网,提示failed to read request header > read tcp ... i/o timeout #822
Answered
by
haoxianglin
haoxianglin
asked this question in
Q&A
-
人在海外,原先在自家群晖NAS的Docker上成功搭建了v2ray,用的vmess协议,同时在路由器做了端口转发(8023到5000),给国内的朋友翻墙用一切正常。自从更换路由器后,无论iOS还是安卓客户端都能ping通服务器但无法连网,服务器access.log提示failed to read request header:
检查了好几个地方:
服务器端 {
"log" : {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbounds": [{
"port": 8023,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "", // 客户端uuid已隐去
"level": 1,
"alterId": 64
}
]
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {}
}]
} 一个奇怪的地方是/etc/resolv.conf里显示
这里192.168.0.1指向新路由器内网ip,但elecom是旧路由器的厂商,不知道要不要改掉。 客户端 // 使用iOS的Shadowrocket
{
"created" : 1616190106.077049,
"weight" : 1616190106,
"alterId" : "64",
"title" : "",
"host" : "", // ddns已隐去
"file" : "\/",
"filter" : "",
"uuid" : "7FA7BA69-A905-4FCA-BE1E-F42DB620A029",
"method" : "auto",
"flag" : "WW",
"obfs" : "none",
"chain" : "",
"updated" : 1616708577.266803,
"type" : "Vmess",
"cert" : "",
"plugin" : "none",
"user" : "",
"protoParam" : "",
"port" : 8023,
"proto" : "",
"peer" : "",
"password" : "", // 客户端uuid已隐去,和服务器端相同
"data" : "",
"ping" : 3,
"obfsParam" : ""
} 注:v2ray的搭建大体上参考了[教學] Synology NAS Docker 安裝 V2Ray (3/16新增備份設定檔教學)这篇教程。 |
Beta Was this translation helpful? Give feedback.
Answered by
haoxianglin
Mar 26, 2021
Replies: 1 comment
-
已解决,问题果然出在路由器上:端口转发填错了,改成8023到8023就通了。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
haoxianglin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
已解决,问题果然出在路由器上:端口转发填错了,改成8023到8023就通了。