Skip to content
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

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 this issue Jun 12, 2024 · 3 comments

Comments

@aba666666
Copy link

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 静态解析规则
- type: A # A, AAAA, TXT 三种
record: localhost
value: 127.0.0.1
ttl: 60
client:
remote_server: true # 是否是独立的远程 server,如果是要在下面配置好远程的服务端地址
http_base_url: "http://ip:8988" # 默认将根据 ListenIP 和 ListenPort 生成,该地址是存在漏洞的目标反连回来的地址, 当反连平台前面有反代、绑定域名、端口映射时需要自行配置
dns_server_ip: "" # 和 http_base_url 类似,实际用来访问 dns 服务器的地址

@aba666666
Copy link
Author

aba666666 commented Jun 12, 2024

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

@4ra1n
Copy link
Collaborator

4ra1n commented Jul 1, 2024

remote_server: false
试试

@lyangdn
Copy link

lyangdn commented Jul 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants