[GH-ISSUE #4738] 无法开启 quic 协议 #3744

Closed
opened 2026-05-05 14:23:55 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @haowen2000 on GitHub (Mar 31, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4738

Bug Description

开启quic协议后,FRPC就连不上FRPS。
TCP协议正常。

端口开放情况如下:

ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0            udp dpt:6001
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:6001
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0            udp dpt:6001
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:6001

frpc Version

0.61+

frps Version

0.61+

System Architecture

openwrt/arm64

Configurations

frps

bindPort = 6000
auth.method = "token"
auth.token = "XXXX"
quicBindPort = 6001
vhostHTTPPort = 6080
vhostHTTPSPort = 6443
log.to = "/var/log/frps.log"
log.level = "info"
webServer.addr = "192.168.1.100"
webServer.port = 6006

frpc

user = "home"
serverAddr = "xx.xx.com"
serverPort = 6001
loginFailExit = false
auth.method = "token"
auth.token = "XXXXX"
log.to = "/var/log/frpc.log"
transport.protocol = "quic"
transport.tls.enable = false

[[proxies]]
name = "n1_op_ssh"
type = "tcp"
localIP = "192.168.1.100"
localPort = 22
remotePort = 6101

Logs

FRPS日志

025-03-31 11:30:17.916 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:6000
2025-03-31 11:30:17.916 [I] [server/service.go:261] frps quic listen on 0.0.0.0:6001
2025-03-31 11:30:17.917 [I] [server/service.go:305] http service listen on 0.0.0.0:6080
2025-03-31 11:30:17.917 [I] [server/service.go:319] https service listen on 0.0.0.0:6443
2025-03-31 11:30:17.917 [I] [frps/root.go:114] frps started successfully

FRPC 日志:

2025-03-31 11:34:57.370 [I] [client/service.go:295] try to connect to server...
2025-03-31 11:35:02.376 [W] [client/service.go:298] connect to server error: timeout: no recent network activity
2025-03-31 11:35:06.533 [I] [client/service.go:295] try to connect to server...
2025-03-31 11:35:11.544 [W] [client/service.go:298] connect to server error: timeout: no recent network activity
2025-03-31 11:35:20.665 [I] [client/service.go:295] try to connect to server...
2025-03-31 11:35:25.673 [W] [client/service.go:298] connect to server error: timeout: no recent network activity

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 @haowen2000 on GitHub (Mar 31, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4738 ### Bug Description 开启quic协议后,FRPC就连不上FRPS。 TCP协议正常。 端口开放情况如下: ```root@LEDE:~# iptables -L -n | grep 6001 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:6001 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:6001 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:6001 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:6001 ``` ### frpc Version 0.61+ ### frps Version 0.61+ ### System Architecture openwrt/arm64 ### Configurations frps ``` bindPort = 6000 auth.method = "token" auth.token = "XXXX" quicBindPort = 6001 vhostHTTPPort = 6080 vhostHTTPSPort = 6443 log.to = "/var/log/frps.log" log.level = "info" webServer.addr = "192.168.1.100" webServer.port = 6006 ``` frpc ``` user = "home" serverAddr = "xx.xx.com" serverPort = 6001 loginFailExit = false auth.method = "token" auth.token = "XXXXX" log.to = "/var/log/frpc.log" transport.protocol = "quic" transport.tls.enable = false [[proxies]] name = "n1_op_ssh" type = "tcp" localIP = "192.168.1.100" localPort = 22 remotePort = 6101 ``` ### Logs FRPS日志 ``` 025-03-31 11:30:17.916 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:6000 2025-03-31 11:30:17.916 [I] [server/service.go:261] frps quic listen on 0.0.0.0:6001 2025-03-31 11:30:17.917 [I] [server/service.go:305] http service listen on 0.0.0.0:6080 2025-03-31 11:30:17.917 [I] [server/service.go:319] https service listen on 0.0.0.0:6443 2025-03-31 11:30:17.917 [I] [frps/root.go:114] frps started successfully ``` FRPC 日志: ``` 2025-03-31 11:34:57.370 [I] [client/service.go:295] try to connect to server... 2025-03-31 11:35:02.376 [W] [client/service.go:298] connect to server error: timeout: no recent network activity 2025-03-31 11:35:06.533 [I] [client/service.go:295] try to connect to server... 2025-03-31 11:35:11.544 [W] [client/service.go:298] connect to server error: timeout: no recent network activity 2025-03-31 11:35:20.665 [I] [client/service.go:295] try to connect to server... 2025-03-31 11:35:25.673 [W] [client/service.go:298] connect to server error: timeout: no recent network activity ``` ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:23:55 -06:00
Author
Owner

@superzjg commented on GitHub (Apr 3, 2025):

timeout: no recent network activity 我也是 quic,只在frps公网ip变化时,域名短暂连不上就报这个错,其余时间正常。

<!-- gh-comment-id:2774584512 --> @superzjg commented on GitHub (Apr 3, 2025): timeout: no recent network activity 我也是 quic,只在frps公网ip变化时,域名短暂连不上就报这个错,其余时间正常。
Author
Owner

@github-actions[bot] commented on GitHub (Apr 18, 2025):

Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.

<!-- gh-comment-id:2814259920 --> @github-actions[bot] commented on GitHub (Apr 18, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
Author
Owner

@linonetwo commented on GitHub (Dec 3, 2025):

https://github.com/fatedier/frp/issues/3378#issuecomment-1569416972 检查防火墙是不是开了 7000 的 UDP

<!-- gh-comment-id:3608118596 --> @linonetwo commented on GitHub (Dec 3, 2025): https://github.com/fatedier/frp/issues/3378#issuecomment-1569416972 检查防火墙是不是开了 7000 的 UDP
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#3744
No description provided.