[GH-ISSUE #2481] Failed to connect if network gateway runs OpenClash #1971

Closed
opened 2026-05-05 13:16:10 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @sarkrui on GitHub (Jul 13, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2481

[REQUIRED] hat version of frp are you using

Version: 0.37.0 (frpc & frps)

[REQUIRED] What operating system and processor architecture are you using
OS: macOS 11.5 Beta
CPU architecture: M1 arm

[REQUIRED] description of errors
Firstly, this is probably not a frp program bug but more like a personal network configuration issue and I hereby intend to find a solution.

Network gateway is set to an OpenWRT

  • OpenWRT is running OpenClash.
  • OpenClash doesn't proxy the domain/ip of the frps server. (domain is added to fake-ip blacklist and Clash wasn't proxying the domain from the connection info.)
  • tested on both M1 Mac and unRaid host. Negative.
  • tested OpenClash running in fake-ip (so-called enhanced) mode and redir-host mode. Negative.

Gateway is not set to OpenWRT

  • using ClashX Pro instead (with system proxy and enhanced mode enabled). Positive

confile

[common]
server_addr = frp.mydomain.com
server_port = 6999
log_file = /usr/local/bin/frp/log/frpc-hk.log
log_level = debug
log_max_days = 3
token = mytoken
tcp_mux = true

log file

2021/07/14 01:22:22 [I] [service.go:177] [fff619003b82db39] try to reconnect to server...
2021/07/14 01:22:22 [W] [service.go:180] [fff619003b82db39] reconnect to server error: dial tcp xxx.xxx.xxx.xxx:6999: connect: connection refused
Originally created by @sarkrui on GitHub (Jul 13, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2481 <!-- From Chinese to English by machine translation, welcome to revise and polish. --> <!-- ⚠️⚠️ Incomplete reports will be marked as invalid, and closed, with few exceptions ⚠️⚠️ --> <!-- in addition, please use search well so that the same solution can be found in the feedback, we will close it directly --> <!-- for convenience of differentiation, use FRPS or FRPC to refer to the FRP server or client --> **[REQUIRED] hat version of frp are you using** <!-- Use ./frpc -v or ./frps -v --> Version: 0.37.0 (frpc & frps) **[REQUIRED] What operating system and processor architecture are you using** OS: macOS 11.5 Beta CPU architecture: M1 arm **[REQUIRED] description of errors** _Firstly, this is probably not a frp program bug but more like a personal network configuration issue and I hereby intend to find a solution._ #### Network gateway is set to an OpenWRT * OpenWRT is running OpenClash. * OpenClash doesn't proxy the domain/ip of the frps server. (domain is added to fake-ip blacklist and Clash wasn't proxying the domain from the connection info.) * tested on both M1 Mac and unRaid host. **Negative**. * tested OpenClash running in fake-ip (so-called enhanced) mode and redir-host mode. **Negative**. #### Gateway is not set to OpenWRT * using ClashX Pro instead (with system proxy and enhanced mode enabled). **Positive** **confile** <!-- Please pay attention to hiding the token, server_addr and other privacy information --> ``` [common] server_addr = frp.mydomain.com server_port = 6999 log_file = /usr/local/bin/frp/log/frpc-hk.log log_level = debug log_max_days = 3 token = mytoken tcp_mux = true ``` **log file** ``` 2021/07/14 01:22:22 [I] [service.go:177] [fff619003b82db39] try to reconnect to server... 2021/07/14 01:22:22 [W] [service.go:180] [fff619003b82db39] reconnect to server error: dial tcp xxx.xxx.xxx.xxx:6999: connect: connection refused ```
Author
Owner

@fatedier commented on GitHub (Jul 14, 2021):

You'd better find answers from topics releated to OpenClash?

frpc just make a simple TCP connection to frps.

<!-- gh-comment-id:879540883 --> @fatedier commented on GitHub (Jul 14, 2021): You'd better find answers from topics releated to OpenClash? frpc just make a simple TCP connection to frps.
Author
Owner

@sarkrui commented on GitHub (Jul 14, 2021):

Closed, as it turns out to be a local configuration-side issue.

<!-- gh-comment-id:879678279 --> @sarkrui commented on GitHub (Jul 14, 2021): Closed, as it turns out to be a local configuration-side issue.
Author
Owner

@Bobi-zhou commented on GitHub (Apr 19, 2022):

@sarkrui I have the same problem, how to fix it?

<!-- gh-comment-id:1101933115 --> @Bobi-zhou commented on GitHub (Apr 19, 2022): @sarkrui I have the same problem, how to fix it?
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#1971
No description provided.