[GH-ISSUE #5044] udp packet not relaying to frpc #3968

Closed
opened 2026-05-05 14:31:27 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @stanlyong on GitHub (Nov 3, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/5044

Bug Description

Hello,

this is a basic question, i have frps hosted on a VPS and frpc on an intranet VM. on frpc i have also wireguard hosted at port 51820 on UDP.

frps
bindPort = 7000
auth.token = #####

frpc

serverAddr = "##.##.##.##"
serverPort = 7000
auth.token = "#####"

proxies
name = "wg-udp"
type = "udp"
localIP = "127.0.0.1"
localPort = 51820
remotePort = 51820

now I am sending a udp packet to server:51820 it cannot get relayed to frpc server.

from system logs, frpc connected to frps with no issue. frps server received the packet but not on the frpc.

frpc Version

0.65

frps Version

0.65

System Architecture

linux/amd64

Configurations

frps
bindPort = 7000
auth.token = #####

frpc

serverAddr = "##.##.##.##"
serverPort = 7000
auth.token = "#####"

proxies
name = "wg-udp"
type = "udp"
localIP = "127.0.0.1"
localPort = 51820
remotePort = 51820

Logs

Nov 03 04:00:16 frpserver frps[105839]: 2025-11-03 04:00:16.542 [I] [server/service.go:582] [54560643a3545c1b] client login info: ip [frpc:27901] version [0.65.0] hostname [] os [linux] arch [amd64]
Nov 03 04:00:16 frpserver frps[105839]: 2025-11-03 04:00:16.612 [I] [proxy/udp.go:103] [54560643a3545c1b] [wg-udp] udp proxy listen port [51820]
Nov 03 04:00:16 frpserver frps[105839]: 2025-11-03 04:00:16.612 [I] [server/control.go:399] [54560643a3545c1b] new proxy [wg-udp] type [udp] success

Nov 03 04:00:16 vpnserver systemd[1]: Stopped frpc.service - frp client.
Nov 03 04:00:16 vpnserver systemd[1]: Started frpc.service - frp client.
Nov 03 04:00:16 vpnserver frpc[6677]: 2025-11-03 04:00:16.246 [I] [sub/root.go:149] start frpc service for config file [/opt/frp/frpc.toml]
Nov 03 04:00:16 vpnserver frpc[6677]: 2025-11-03 04:00:16.246 [I] [client/service.go:325] try to connect to server...
Nov 03 04:00:16 vpnserver frpc[6677]: 2025-11-03 04:00:16.528 [I] [client/service.go:317] [54560643a3545c1b] login to server success, get run id [54560643a3545c1b]
Nov 03 04:00:16 vpnserver frpc[6677]: 2025-11-03 04:00:16.528 [I] [proxy/proxy_manager.go:177] [54560643a3545c1b] proxy added: [wg-udp]
Nov 03 04:00:16 vpnserver frpc[6677]: 2025-11-03 04:00:16.626 [I] [client/control.go:172] [54560643a3545c1b] [wg-udp] start proxy success
Nov 03 04:00:17 vpnserver frpc[6677]: 2025-11-03 04:00:17.107 [I] [proxy/udp.go:93] [54560643a3545c1b] [wg-udp] incoming a new work connection for udp proxy, 20.106.178.104:7000

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 @stanlyong on GitHub (Nov 3, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/5044 ### Bug Description Hello, this is a basic question, i have frps hosted on a VPS and frpc on an intranet VM. on frpc i have also wireguard hosted at port 51820 on UDP. frps bindPort = 7000 auth.token = ##### frpc serverAddr = "##.##.##.##" serverPort = 7000 auth.token = "#####" [[proxies]] name = "wg-udp" type = "udp" localIP = "127.0.0.1" localPort = 51820 remotePort = 51820 now I am sending a udp packet to server:51820 it cannot get relayed to frpc server. from system logs, frpc connected to frps with no issue. frps server received the packet but not on the frpc. ### frpc Version 0.65 ### frps Version 0.65 ### System Architecture linux/amd64 ### Configurations frps bindPort = 7000 auth.token = ##### frpc serverAddr = "##.##.##.##" serverPort = 7000 auth.token = "#####" [[proxies]] name = "wg-udp" type = "udp" localIP = "127.0.0.1" localPort = 51820 remotePort = 51820 ### Logs Nov 03 04:00:16 frpserver frps[105839]: 2025-11-03 04:00:16.542 [I] [server/service.go:582] [54560643a3545c1b] client login info: ip [frpc:27901] version [0.65.0] hostname [] os [linux] arch [amd64] Nov 03 04:00:16 frpserver frps[105839]: 2025-11-03 04:00:16.612 [I] [proxy/udp.go:103] [54560643a3545c1b] [wg-udp] udp proxy listen port [51820] Nov 03 04:00:16 frpserver frps[105839]: 2025-11-03 04:00:16.612 [I] [server/control.go:399] [54560643a3545c1b] new proxy [wg-udp] type [udp] success Nov 03 04:00:16 vpnserver systemd[1]: Stopped frpc.service - frp client. Nov 03 04:00:16 vpnserver systemd[1]: Started frpc.service - frp client. Nov 03 04:00:16 vpnserver frpc[6677]: 2025-11-03 04:00:16.246 [I] [sub/root.go:149] start frpc service for config file [/opt/frp/frpc.toml] Nov 03 04:00:16 vpnserver frpc[6677]: 2025-11-03 04:00:16.246 [I] [client/service.go:325] try to connect to server... Nov 03 04:00:16 vpnserver frpc[6677]: 2025-11-03 04:00:16.528 [I] [client/service.go:317] [54560643a3545c1b] login to server success, get run id [54560643a3545c1b] Nov 03 04:00:16 vpnserver frpc[6677]: 2025-11-03 04:00:16.528 [I] [proxy/proxy_manager.go:177] [54560643a3545c1b] proxy added: [wg-udp] Nov 03 04:00:16 vpnserver frpc[6677]: 2025-11-03 04:00:16.626 [I] [client/control.go:172] [54560643a3545c1b] [wg-udp] start proxy success Nov 03 04:00:17 vpnserver frpc[6677]: 2025-11-03 04:00:17.107 [I] [proxy/udp.go:93] [54560643a3545c1b] [wg-udp] incoming a new work connection for udp proxy, 20.106.178.104:7000 ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [x] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@stanlyong commented on GitHub (Nov 3, 2025):

i checked

  • ufw
  • azure-nsg (for frps) port 7000 tcp, port 51820 udp

i dont have much insight for this issue but the frpc cannot made to work untill discovered the udp packet won't get relayed in the intranet. please

<!-- gh-comment-id:3478952005 --> @stanlyong commented on GitHub (Nov 3, 2025): i checked - ufw - azure-nsg (for frps) port 7000 tcp, port 51820 udp i dont have much insight for this issue but the frpc cannot made to work untill discovered the udp packet won't get relayed in the intranet. please
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#3968
No description provided.