请求的流程是
1、先到waf服务器
2、再到出口ip的代理服务器
3、代理服务器再转发到内网的websocket端口
代理服务器上的配置如下
upstream websocket_servers {
session_sticky;
server x.x.x.x:3131;
}:
location /app/714016983e693857asdd692d95d6edwd {
proxy_pass http://websocket_servers;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
waf报错:
[error] 32229#0: *3888603540 upstream timed out (110: Connection timedout) while reading upstream, client: 123.125.53.20, server: chat.xxxx.cn, request: "GET /app/714016983e693857asdd692d95d6edwd HTTP/1.1",
代理服务器报错:
[error] 2973#0: *8674326813 connect() failed (111: Connection refused)while connecting to upstream, client: 10.x.x.x, server:
华为云添加了3131端口安全组,现在头疼是哪里的配置可能导致无法访问
内网服务器监听端口3131是通的
代理服务器访问内网的php接口
服务器:centos7版本
workerman:workerman/4.1.15
webman/push:v1.0.17
用了宝塔得话宝塔也要开端口
没用宝塔,原生的服务器编译安装的,应该是在waf和代理那一层出了问题