[GH-ISSUE #4314] 阿里云ECS服务器搭配弹性IP(EIP),客户端的serverAddr填写绑定的域名会导致链接失败,但是使用IP直连就可以 #3404

Closed
opened 2026-05-05 14:11:32 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @aircross on GitHub (Jul 2, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4314

Bug Description

阿里云ECS服务器搭配弹性IP(EIP),客户端的serverAddr填写绑定的域名会导致链接失败,但是使用IP直连就可以
原因是通过绑定的域名访问国内的IP,大多数会先过一遍备案防火墙,没有备案的访问会被重定向到一个备案提示页面
所以,客户端是否可以针对使用域名的,先进行IP解析后再通过IP链接服务器?
D:\Softs\frp\frp_0.58.1_windows_amd64>frpc.exe -c frpc.toml 2024-07-02 14:09:15.714 [I] [sub/root.go:142] start frpc service for config file [frpc.toml] 2024-07-02 14:09:15.723 [I] [client/service.go:294] try to connect to server... 2024-07-02 14:09:15.855 [W] [client/service.go:297] connect to server error: read tcp 192.168.8.130:64011->123.123.123.123:7000: wsarecv: An existing connection was forcibly closed by the remote host. 2024-07-02 14:09:15.855 [I] [sub/root.go:160] frpc service for config file [frpc.toml] stopped login to the server failed: read tcp 192.168.8.130:64011->123.123.123.123:7000: wsarecv: An existing connection was forcibly closed by the remote host.. With loginFailExit enabled, no additional retries will be attempted

frpc Version

0.58.1

frps Version

0.58.1

System Architecture

Debain 12 amd64

Configurations

`serverAddr = "frp.wifias.com"
serverPort = 7000

auth token

auth.token = "token"

proxies
name = "M262_RDP"
type = "tcp"
localIP = "127.0.0.1"
localPort = 3389
remotePort = 30022

If true, traffic will be compressed

transport.useCompression = false

frpc will connect local service's port to detect it's healthy status

healthCheck.type = "tcp"

Health check connection timeout

healthCheck.timeoutSeconds = 3

If continuous failed in 3 times, the proxy will be removed from frps

healthCheck.maxFailed = 3

Every 10 seconds will do a health check

healthCheck.intervalSeconds = 10
`

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @aircross on GitHub (Jul 2, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4314 ### Bug Description 阿里云ECS服务器搭配弹性IP(EIP),客户端的serverAddr填写绑定的域名会导致链接失败,但是使用IP直连就可以 原因是通过绑定的域名访问国内的IP,大多数会先过一遍备案防火墙,没有备案的访问会被重定向到一个备案提示页面 所以,客户端是否可以针对使用域名的,先进行IP解析后再通过IP链接服务器? `D:\Softs\frp\frp_0.58.1_windows_amd64>frpc.exe -c frpc.toml 2024-07-02 14:09:15.714 [I] [sub/root.go:142] start frpc service for config file [frpc.toml] 2024-07-02 14:09:15.723 [I] [client/service.go:294] try to connect to server... 2024-07-02 14:09:15.855 [W] [client/service.go:297] connect to server error: read tcp 192.168.8.130:64011->123.123.123.123:7000: wsarecv: An existing connection was forcibly closed by the remote host. 2024-07-02 14:09:15.855 [I] [sub/root.go:160] frpc service for config file [frpc.toml] stopped login to the server failed: read tcp 192.168.8.130:64011->123.123.123.123:7000: wsarecv: An existing connection was forcibly closed by the remote host.. With loginFailExit enabled, no additional retries will be attempted` ### frpc Version 0.58.1 ### frps Version 0.58.1 ### System Architecture Debain 12 amd64 ### Configurations `serverAddr = "frp.wifias.com" serverPort = 7000 # auth token auth.token = "token" [[proxies]] name = "M262_RDP" type = "tcp" localIP = "127.0.0.1" localPort = 3389 remotePort = 30022 # If true, traffic will be compressed transport.useCompression = false # frpc will connect local service's port to detect it's healthy status healthCheck.type = "tcp" # Health check connection timeout healthCheck.timeoutSeconds = 3 # If continuous failed in 3 times, the proxy will be removed from frps healthCheck.maxFailed = 3 # Every 10 seconds will do a health check healthCheck.intervalSeconds = 10 ` ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [X] Performance and Scalability - [ ] Security - [X] User Experience - [X] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner
<!-- gh-comment-id:2207248966 --> @xqzr commented on GitHub (Jul 3, 2024): https://github.com/fatedier/frp/issues/3778#issuecomment-1817034440
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3404
No description provided.