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

Linux 客户端开启KCP后无法与服务器进行连接 #4593

Open
11 tasks
qq761861 opened this issue Dec 18, 2024 · 2 comments
Open
11 tasks

Linux 客户端开启KCP后无法与服务器进行连接 #4593

qq761861 opened this issue Dec 18, 2024 · 2 comments

Comments

@qq761861
Copy link

qq761861 commented Dec 18, 2024

Bug Description

2024-12-18 12:39:16.427 [I] [client/service.go:295] try to connect to server...
2024-12-18 12:39:26.430 [W] [client/service.go:298] connect to server error: connection write timeout
2024-12-18 12:39:26.431 [I] [sub/root.go:160] frpc service for config file [/data/frp/frpc.toml] stopped
2024-12-18 12:39:31.682 [I] [sub/root.go:142] start frpc service for config file [/data/frp/frpc.toml]
2024-12-18 12:39:31.683 [I] [client/service.go:295] try to connect to server...
2024-12-18 12:39:41.686 [W] [client/service.go:298] connect to server error: connection write timeout
2024-12-18 12:39:41.686 [I] [sub/root.go:160] frpc service for config file [/data/frp/frpc.toml] stopped
2024-12-18 12:39:46.926 [I] [sub/root.go:142] start frpc service for config file [/data/frp/frpc.toml]
2024-12-18 12:39:46.927 [I] [client/service.go:295] try to connect to server...
2024-12-18 12:39:56.930 [W] [client/service.go:298] connect to server error: connection write timeout
2024-12-18 12:39:56.931 [I] [sub/root.go:160] frpc service for config file [/data/frp/frpc.toml] stopped
2024-12-18 12:40:02.186 [I] [sub/root.go:142] start frpc service for config file [/data/frp/frpc.toml]
2024-12-18 12:40:02.186 [I] [client/service.go:295] try to connect to server...
2024-12-18 12:40:12.188 [W] [client/service.go:298] connect to server error: connection write timeout
2024-12-18 12:40:12.189 [I] [sub/root.go:160] frpc service for config file [/data/frp/frpc.toml] stopped
2024-12-18 12:40:17.426 [I] [sub/root.go:142] start frpc service for config file [/data/frp/frpc.toml]
2024-12-18 12:40:17.427 [I] [client/service.go:295] try to connect to server...
image

取消客户端配置文件中的transport.protocol = "kcp"参数就可以恢复正常链接

客户端可以通过nmap扫描到服务端端口是启用状态的
客户端配置如下

serverAddr = "..*.*手动打码"
serverPort = 7098
auth.token = "123456"
log.to = "/var/log/frpc.log"
log.level = "info"
log.maxDays = 7
transport.protocol = "kcp"
loginFailExit = true

[[proxies]]
name = "conf1"
type = "tcp"
localIP = "127.0.0.1"
localPort = 9090
remotePort = 9090

服务端配置如下
bindPort = 7098
kcpBindPort = 7098
auth.token = "123456"
log.to = "/var/log/frps.log"
log.level = "debug"
log.maxDays = 15

frpc Version

0.61.1

frps Version

0.61.1

System Architecture

linux/amd64 linux/arm64

Configurations

客户端配置如下

serverAddr = "..*.*手动打码"
serverPort = 7098
auth.token = "123456"
log.to = "/var/log/frpc.log"
log.level = "info"
log.maxDays = 7
transport.protocol = "kcp"
loginFailExit = true

[[proxies]]
name = "conf1"
type = "tcp"
localIP = "127.0.0.1"
localPort = 9090
remotePort = 9090

服务端配置如下
bindPort = 7098
kcpBindPort = 7098
auth.token = "123456"
log.to = "/var/log/frps.log"
log.level = "debug"
log.maxDays = 15

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
@xqzr
Copy link

xqzr commented Dec 20, 2024

开放 UDP 7098

@qq761861
Copy link
Author

开放 UDP 7098

防火墙是关闭状态的

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

2 participants