chaitin / xray

一款完善的安全评估工具,支持常见 web 安全问题扫描和自定义 poc | 使用之前务必先阅读文档
https://docs.xray.cool
Other
10.3k stars 1.82k forks source link

reverse模式下,开放端口了也会提示init reverse server error: health check failed for remote reverse server, error: Get "http://ip:8988/_/api/health_check": dial tcp ip:8988: connect: connection refused #1801

Open aba666666 opened 3 months ago

aba666666 commented 3 months ago

reverse: db_file_path: "/tmp/xray.db" # 反连平台数据库文件位置, 这是一个 KV 数据库 token: "XXX" # 反连平台认证的 Token, 独立部署时不能为空 http: enabled: true listen_ip: 0.0.0.0 listen_port: "8988" ip_header: "" # 在哪个 http header 中取 ip,为空代表从 REMOTE_ADDR 中取 dns: enabled: false listen_ip: 0.0.0.0 domain: "" # DNS 域名配置 is_domain_name_server: false # 是否修改了域名的 ns 为反连平台,如果是,那 nslookup 等就不需要指定 dns 了 resolve: # DNS 静态解析规则

aba666666 commented 3 months ago

服务器127.0.0.1访问也不行,那肯定不是防火墙每开放端口的问题 image

4ra1n commented 3 months ago

remote_server: false 试试

lyangdn commented 2 months ago

remote_server: true 改成false,这是客户端的