发行版本 ubuntu-22.04
内核版本 6.1.38-rockchip64
系统类型 aarch64
frpc版本是0.54.0,防火墙已经开放了7000端口。
日志记录:
2024/02/24 03:00:05 [I] [service.go:287] try to connect to server…
2024/02/24 03:00:05 [W] [service.go:290] connect to server error: dial tcp 127.0.0.1:7000: connect: connection refused
2024/02/24 03:00:05 [I] [root.go:160] frpc service for config file [/etc/frp/frpc.toml] stopped
login to the server failed: dial tcp 127.0.0.1:7000: connect: connection refused. With loginFailExit enabled, no additional retries will be attempted
请大神看看是社么问题
王贺
2024 年2 月 25 日 14:47
2
建议到 frp 官方issue 中查找一下解决方案,例如:
opened 06:13PM - 17 Dec 23 UTC
closed 05:11PM - 18 Dec 23 UTC
### Bug Description
Addr is "117.13.194.95", why connect with 0.0.0.0? what's… the issue
"telnet 117.13.194.95 7000" can connect to target in client.
### frpc Version
0.53.0
### frps Version
0.53.0
### System Architecture
windows/amd64
### Configurations
#### client
C:\portableApp\frp_0.53.0_windows_amd64>type frpc.toml
Addr = "117.13.194.95"
serverPort = 7000
[[proxies]]
name = "rdp"
type = "tcp"
localIP = "127.0.0.1"
localPort = 3389
remotePort = 6000
#### server
[root@VM-16-13-opencloudos frp_0.53.0_linux_amd64]# cat frps.toml
bindPort = 7000
### Logs
#### client
C:\portableApp\frp_0.53.0_windows_amd64>frpc.exe -c frpc.toml
2023/12/18 01:50:05 [I] [root.go:141] start frpc service for config file [frpc.toml]
2023/12/18 01:50:05 [I] [service.go:288] try to connect to server...
2023/12/18 01:50:07 [W] [service.go:291] connect to server error: dial tcp 0.0.0.0:7000: connectex: No connection could be made because the target machine actively refused it.
2023/12/18 01:50:07 [I] [service.go:288] try to connect to server...
2023/12/18 01:50:07 [W] [service.go:291] connect to server error: dial tcp 0.0.0.0:7000: operation was canceled
2023/12/18 01:50:07 [I] [root.go:159] frpc service for config file [frpc.toml] stopped
login to the server failed: dial tcp 0.0.0.0:7000: connectex: No connection could be made because the target machine actively refused it.. With loginFailExit enabled, no additional retries will be attempted
#### server
[root@VM-16-13-opencloudos frp_0.53.0_linux_amd64]# ps -ef |grep -in frp
97:root 2175042 1 0 01:16 ? 00:00:00 ./frps -c frps.toml
[root@VM-16-13-opencloudos frp_0.53.0_linux_amd64]# cat nohup.out
2023/12/18 01:16:39 [I] [root.go:104] frps uses config file: frps.toml
2023/12/18 01:16:39 [I] [service.go:225] frps tcp listen on 0.0.0.0:7000
2023/12/18 01:16:39 [I] [root.go:113] frps started successfully
### Steps to reproduce
1.
2.
3.
...
### Affected area
- [ ] Docs
- [ ] Installation
- [ ] Performance and Scalability
- [ ] Security
- [X] User Experience
- [ ] Test and Release
- [ ] Developer Infrastructure
- [ ] Client Plugin
- [ ] Server Plugin
- [ ] Extensions
- [ ] Others
商店安装的frpc,意思是想连接远程的frps服务器。看日志你连接的是本地的7000端口,没有指定服务器地址。
frpc.toml中设置一下serverAddr 试试。