mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3388] TCP正常,但是UDP不能正常建链 #2711
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2711
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NeverSayd1e on GitHub (Apr 5, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3388
Bug Description
TCP正常,但是UDP不能正常建链
frpc Version
0.20
frps Version
0.33
System Architecture
koolshare merlin
Configurations
#frps configuration:
[common]
bind_addr = 0.0.0.0
bind_port = 7000
bind_udp_port = 7001
kcp_bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
dashboard_addr = 0.0.0.0
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
log_file = ./frps.log
log_level = info
log_max_days = 3
disable_log_color = false
token = xxxx
max_pool_count = 5
max_ports_per_client = 0
subdomain_host = frps.com
tcp_mux = true
frpc configuration:
[common]
server_addr = xxxx
server_port = 7000
token = xxxx
log_file = /tmp/frpc.log
log_level = info
log_max_days = 3
tcp_mux = true
protocol = tcp
login_fail_exit = false
user = admin_dl
[ssh1]
type = tcp
local_ip = 192.168.3.81
local_port = 8090
remote_port = 54032
use_encryption = true
use_compression = true
[frpc_tcp]
type = tcp
local_ip = 192.168.3.81
local_port = 9999
remote_port = 54033
use_encryption = true
use_compression = true
[frpc_udp]
type = udp
local_ip = 192.168.3.81
local_port = 8888
remote_port = 54034
use_encryption = true
use_compression = true
Logs
#FRPS log:
2023/04/05 20:32:25 [I] [udp.go:84] [1dbbbc0b25c38a2a] [admin_dl.frpc_udp] udp proxy listen port [54034]
2023/04/05 20:32:25 [I] [control.go:446] [1dbbbc0b25c38a2a] new proxy [admin_dl.frpc_udp] success
2023/04/05 20:32:25 [I] [tcp.go:63] [1dbbbc0b25c38a2a] [admin_dl.ssh1] tcp proxy listen port [54032]
2023/04/05 20:32:25 [I] [control.go:446] [1dbbbc0b25c38a2a] new proxy [admin_dl.ssh1] success
2023/04/05 20:32:25 [I] [tcp.go:63] [1dbbbc0b25c38a2a] [admin_dl.frpc_tcp] tcp proxy listen port [54033]
2023/04/05 20:32:25 [I] [control.go:446] [1dbbbc0b25c38a2a] new proxy [admin_dl.frpc_tcp] success
2023/04/05 20:32:25 [I] [proxy.go:103] [1dbbbc0b25c38a2a] [admin_dl.frpc_udp] get a new work connection: [60.21.100.130:54559]
2023/04/05 20:33:25 [W] [udp.go:102] [1dbbbc0b25c38a2a] [admin_dl.frpc_udp] read from workConn for udp error: i/o deadline reached
2023/04/05 20:33:25 [I] [proxy.go:103] [1dbbbc0b25c38a2a] [admin_dl.frpc_udp] get a new work connection: [60.21.100.130:54559]
2023/04/05 20:33:25 [I] [udp.go:157] [1dbbbc0b25c38a2a] [admin_dl.frpc_udp] sender goroutine for udp work connection closed
2023/04/05 20:34:25 [W] [udp.go:102] [1dbbbc0b25c38a2a] [admin_dl.frpc_udp] read from workConn for udp error: i/o deadline reached
2023/04/05 20:34:25 [I] [proxy.go:103] [1dbbbc0b25c38a2a] [admin_dl.frpc_udp] get a new work connection: [60.21.100.130:54559]
2023/04/05 20:34:25 [I] [udp.go:157] [1dbbbc0b25c38a2a] [admin_dl.frpc_udp] sender goroutine for udp work connection closed
#FRPC LOG
2023/04/05 20:01:58 [I] [proxy.go:350] [admin_dl.frpc_udp] incoming a new work connection for udp proxy, 221.214.170.113:7000
2023/04/05 20:01:58 [W] [proxy.go:365] [admin_dl.frpc_udp] read from workConn for udp error: EOF
2023/04/05 20:01:58 [I] [proxy.go:379] [admin_dl.frpc_udp] writer goroutine for udp work connection closed
2023/04/05 20:02:58 [I] [proxy.go:350] [admin_dl.frpc_udp] incoming a new work connection for udp proxy, 221.214.170.113:7000
2023/04/05 20:02:58 [W] [proxy.go:365] [admin_dl.frpc_udp] read from workConn for udp error: EOF
2023/04/05 20:02:58 [I] [proxy.go:379] [admin_dl.frpc_udp] writer goroutine for udp work connection closed
Steps to reproduce
...
Affected area
@Becods commented on GitHub (Apr 5, 2023):
更新frp
检查服务器是否开放 udp 端口
@github-actions[bot] commented on GitHub (May 6, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.