[GH-ISSUE #3997] udp代理错误 #3170

Closed
opened 2026-05-05 14:03:05 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @jinghuashang on GitHub (Feb 16, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/3997

Bug Description

使用udp端口代理时不生效,但tcp端口协议正常

frpc Version

0.54

frps Version

0.54

System Architecture

linux/amd64windows/amd64

Configurations

【frps】
bindPort = 7000

webServer.addr = "0.0.0.0"
webServer.port = 7500
【frpc】
serverAddr = ""
serverPort = 7000

proxies
privilege_token = true
name = "L4D2节点0"
type = "udp"
local_ip = "192.168.31.13"
local_port = 27015
remotePort = 27015

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
Originally created by @jinghuashang on GitHub (Feb 16, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/3997 ### Bug Description 使用udp端口代理时不生效,但tcp端口协议正常 ![](https://imgbed.jinghuashang.cn/file/94ec5921cbc74328cb7bb.png) ### frpc Version 0.54 ### frps Version 0.54 ### System Architecture linux/amd64windows/amd64 ### Configurations 【frps】 bindPort = 7000 webServer.addr = "0.0.0.0" webServer.port = 7500 【frpc】 serverAddr = "" serverPort = 7000 [[proxies]] privilege_token = true name = "L4D2节点0" type = "udp" local_ip = "192.168.31.13" local_port = 27015 remotePort = 27015 ### Logs _No response_ ### 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:03:05 -06:00
Author
Owner

@xqzr commented on GitHub (Feb 16, 2024):

cf025d6320/conf/frpc_full_example.toml (L184-L185)

<!-- gh-comment-id:1949400819 --> @xqzr commented on GitHub (Feb 16, 2024): https://github.com/fatedier/frp/blob/cf025d63207b4a2872ba946dc32ab56b3f98053a/conf/frpc_full_example.toml#L184-L185
Author
Owner

@jinghuashang commented on GitHub (Feb 17, 2024):

cf025d6320/conf/frpc_full_example.toml (L184-L185)

同上修改并没有用

<!-- gh-comment-id:1949820016 --> @jinghuashang commented on GitHub (Feb 17, 2024): > https://github.com/fatedier/frp/blob/cf025d63207b4a2872ba946dc32ab56b3f98053a/conf/frpc_full_example.toml#L184-L185 同上修改并没有用
Author
Owner

@xqzr commented on GitHub (Feb 17, 2024):

frps 所在网络 开放 UDP 27015

<!-- gh-comment-id:1950015372 --> @xqzr commented on GitHub (Feb 17, 2024): frps 所在网络 开放 UDP 27015
Author
Owner

@jinghuashang commented on GitHub (Feb 18, 2024):

frps 所在网络 开放 UDP 27015

端口开放了也无效

<!-- gh-comment-id:1950911833 --> @jinghuashang commented on GitHub (Feb 18, 2024): > frps 所在网络 开放 UDP 27015 端口开放了也无效 ![](https://imgbed.jinghuashang.cn/file/c8f9b4e0afc4bae7c3d4a.png)
Author
Owner

@WuMe-sicx commented on GitHub (Feb 21, 2024):

你解决了吗?

<!-- gh-comment-id:1956812312 --> @WuMe-sicx commented on GitHub (Feb 21, 2024): 你解决了吗?
Author
Owner

@github-actions[bot] commented on GitHub (Mar 14, 2024):

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

<!-- gh-comment-id:1996186764 --> @github-actions[bot] commented on GitHub (Mar 14, 2024): Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Author
Owner

@freeze-dolphin commented on GitHub (Mar 22, 2024):

image

UDP 27015端口,看来你也是转发cs2的(

遇到了同样的问题

frps.toml:

bindPort = 7000

webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "admin"
webServer.password = ""

frpc.toml:

serverAddr = "****.****.****.****"
serverPort = 7000

webServer.addr = "127.0.0.1"
webServer.port = 7400
webServer.user = "admin"
webServer.password = ""

[[proxies]]
name = "cs2"
type = "udp"
localIP = "127.0.0.1"
localPort = 27015
remotePort = 6000

客户端和服务端都没有任何报错,却没有流量被转发

<!-- gh-comment-id:2014528097 --> @freeze-dolphin commented on GitHub (Mar 22, 2024): ![image](https://github.com/fatedier/frp/assets/40729044/042ff81c-66dd-4927-a187-43de1ba37128) UDP 27015端口,看来你也是转发cs2的( 遇到了同样的问题 `frps.toml`: ```toml bindPort = 7000 webServer.addr = "0.0.0.0" webServer.port = 7500 webServer.user = "admin" webServer.password = "" ``` `frpc.toml`: ```toml serverAddr = "****.****.****.****" serverPort = 7000 webServer.addr = "127.0.0.1" webServer.port = 7400 webServer.user = "admin" webServer.password = "" [[proxies]] name = "cs2" type = "udp" localIP = "127.0.0.1" localPort = 27015 remotePort = 6000 ``` 客户端和服务端都没有任何报错,却没有流量被转发
Author
Owner

@jinghuashang commented on GitHub (May 15, 2024):

image

UDP 27015端口,看来你也是转发cs2的(

遇到了同样的问题

frps.toml:

bindPort = 7000

webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "admin"
webServer.password = ""

frpc.toml:

serverAddr = "****.****.****.****"
serverPort = 7000

webServer.addr = "127.0.0.1"
webServer.port = 7400
webServer.user = "admin"
webServer.password = ""

[[proxies]]
name = "cs2"
type = "udp"
localIP = "127.0.0.1"
localPort = 27015
remotePort = 6000

客户端和服务端都没有任何报错,却没有流量被转发

不知道为啥,老版本(非go版本)就能转发。

<!-- gh-comment-id:2111415264 --> @jinghuashang commented on GitHub (May 15, 2024): > ![image](https://private-user-images.githubusercontent.com/40729044/315927268-042ff81c-66dd-4927-a187-43de1ba37128.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU3MzY1MTQsIm5iZiI6MTcxNTczNjIxNCwicGF0aCI6Ii80MDcyOTA0NC8zMTU5MjcyNjgtMDQyZmY4MWMtNjZkZC00OTI3LWExODctNDNkZTFiYTM3MTI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTE1VDAxMjMzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0ZGY0NGMzZTVjZDI1ZWQxOTM0YjA1ZGVmMDI0ZTE2ZDJlZTg0ZGQ2MWJjMjc3YzY4NTE3M2Y3N2FmM2U1YjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YyqDam7JZ1_r4SD-O3TA0Y8tLKdd7nnHSmQSCyYTs00) > > UDP 27015端口,看来你也是转发cs2的( > > 遇到了同样的问题 > > `frps.toml`: > > ```toml > bindPort = 7000 > > webServer.addr = "0.0.0.0" > webServer.port = 7500 > webServer.user = "admin" > webServer.password = "" > ``` > > `frpc.toml`: > > ```toml > serverAddr = "****.****.****.****" > serverPort = 7000 > > webServer.addr = "127.0.0.1" > webServer.port = 7400 > webServer.user = "admin" > webServer.password = "" > > [[proxies]] > name = "cs2" > type = "udp" > localIP = "127.0.0.1" > localPort = 27015 > remotePort = 6000 > ``` > > 客户端和服务端都没有任何报错,却没有流量被转发 不知道为啥,老版本(非go版本)就能转发。
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#3170
No description provided.