[GH-ISSUE #1011] 不知道为什么udp转发不成功 #799

Closed
opened 2026-05-05 12:30:42 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @zhuwei on GitHub (Dec 17, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/1011

Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)

Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST

What version of frp are you using (./frpc -v or ./frps -v)?
0.22.0

What operating system and processor architecture are you using (go env)?
frps---centos6.5 64bit
frpc---windows7 sp1 64bit

Configures you used:
frps:
[common]
bind_port = 7000

frpc:
[common]
server_addr = xxx.xxx.xxx.xxx
server_port = 7000

[http]
type = tcp
local_ip = 192.168.1.138
local_port = 80
remote_port = 80

[range:udp1]
type = udp
local_ip = 192.168.1.138
local_port = 10000-10001
remote_port = 10000-10001
use_encryption = false
use_compression = false

[range:udp2]
type = udp
local_ip = 192.168.1.138
local_port = 20000-20001
remote_port = 20000-20001
use_encryption = false
use_compression = false

Steps to reproduce the issue:
1../frps -c ./frps.ini
2.frpc.exe -c frpc.ini
3.通过工具发送udp数据

Describe the results you received:
frps只有http记录,没有udp的请求记录
我的工具没有接收到任何udp返回的数据

Describe the results you expected:
我感觉udp转发没有成功

Additional information you deem important (e.g. issue happens only occasionally):
无,一直都不成功。tcp很正常。
我是下载的release,不是自己编译的

Can you point out what caused this issue (optional)

Originally created by @zhuwei on GitHub (Dec 17, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/1011 Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly. (为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。) Use the commands below to provide key information from your environment: You do NOT have to include this information if this is a FEATURE REQUEST **What version of frp are you using (./frpc -v or ./frps -v)?** 0.22.0 **What operating system and processor architecture are you using (`go env`)?** frps---centos6.5 64bit frpc---windows7 sp1 64bit **Configures you used:** frps: [common] bind_port = 7000 frpc: [common] server_addr = xxx.xxx.xxx.xxx server_port = 7000 [http] type = tcp local_ip = 192.168.1.138 local_port = 80 remote_port = 80 [range:udp1] type = udp local_ip = 192.168.1.138 local_port = 10000-10001 remote_port = 10000-10001 use_encryption = false use_compression = false [range:udp2] type = udp local_ip = 192.168.1.138 local_port = 20000-20001 remote_port = 20000-20001 use_encryption = false use_compression = false **Steps to reproduce the issue:** 1../frps -c ./frps.ini 2.frpc.exe -c frpc.ini 3.通过工具发送udp数据 **Describe the results you received:** frps只有http记录,没有udp的请求记录 我的工具没有接收到任何udp返回的数据 **Describe the results you expected:** 我感觉udp转发没有成功 **Additional information you deem important (e.g. issue happens only occasionally):** 无,一直都不成功。tcp很正常。 我是下载的release,不是自己编译的 **Can you point out what caused this issue (optional)**
Author
Owner

@fatedier commented on GitHub (Dec 17, 2018):

请使用文档示例中的配置进行测试,再确认具体问题的原因是什么。

<!-- gh-comment-id:447743365 --> @fatedier commented on GitHub (Dec 17, 2018): 请使用文档示例中的配置进行测试,再确认具体问题的原因是什么。
Author
Owner

@zhuwei commented on GitHub (Dec 17, 2018):

@fatedier 谢谢回复。
文档中dns是测试成功的。
不过我udp是10000负责发送、10001负责接收。

<!-- gh-comment-id:447767743 --> @zhuwei commented on GitHub (Dec 17, 2018): @fatedier 谢谢回复。 文档中dns是测试成功的。 不过我udp是10000负责发送、10001负责接收。
Author
Owner

@fatedier commented on GitHub (Dec 17, 2018):

DNS 测试成功,那么就说明和你的程序是相关的,需要自己排查下程序的逻辑,是不是不能简单转发出去。

<!-- gh-comment-id:447816246 --> @fatedier commented on GitHub (Dec 17, 2018): DNS 测试成功,那么就说明和你的程序是相关的,需要自己排查下程序的逻辑,是不是不能简单转发出去。
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#799
No description provided.