[GH-ISSUE #5019] 配置VirtualNet提示unmarshal ProxyConfig error: json: unknown field "featureGates" #3953

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

Originally created by @HYKOYB on GitHub (Oct 15, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/5019

Originally assigned to: @Copilot on GitHub.

Bug Description

配置VirtualNet提示unmarshal ProxyConfig error: json: unknown field "featureGates"

frpc Version

v0.65.0

frps Version

v0.65.0

System Architecture

linux/amd64

Configurations

Client config:
serverAddr = "127.0.0.1"
serverPort = 7000

proxies
name = "test-tcp"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000

featureGates = { VirtualNet = true }
virtualNet.address = "100.86.0.2/24"
visitors
name = "vnet-visitor"
type = "stcp"
serverName = "vnet-server"
secretKey = "your-secret-key"
bindPort = -1
[visitors.plugin]
type = "virtual_net"
destinationIP = "100.86.0.1"

sudo ./frpc -c ./frpc.toml

unmarshal ProxyConfig error: json: unknown field "featureGates"

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 @HYKOYB on GitHub (Oct 15, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/5019 Originally assigned to: @Copilot on GitHub. ### Bug Description 配置VirtualNet提示unmarshal ProxyConfig error: json: unknown field "featureGates" ### frpc Version v0.65.0 ### frps Version v0.65.0 ### System Architecture linux/amd64 ### Configurations Client config: serverAddr = "127.0.0.1" serverPort = 7000 [[proxies]] name = "test-tcp" type = "tcp" localIP = "127.0.0.1" localPort = 22 remotePort = 6000 featureGates = { VirtualNet = true } virtualNet.address = "100.86.0.2/24" [[visitors]] name = "vnet-visitor" type = "stcp" serverName = "vnet-server" secretKey = "your-secret-key" bindPort = -1 [visitors.plugin] type = "virtual_net" destinationIP = "100.86.0.1" # sudo ./frpc -c ./frpc.toml unmarshal ProxyConfig error: json: unknown field "featureGates" ### 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:31:00 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2025):

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

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

@roxi3906 commented on GitHub (Jan 8, 2026):

就这么被关闭了?我也遇到了这个问题

<!-- gh-comment-id:3723924627 --> @roxi3906 commented on GitHub (Jan 8, 2026): 就这么被关闭了?我也遇到了这个问题
Author
Owner

@HYKOYB commented on GitHub (Apr 27, 2026):

就这么被关闭了?我也遇到了这个问题

自己摸索的结果,可以用

作为服务器的

配置虚拟网络接口

featureGates = { VirtualNet = true }
virtualNet.address = "100.86.0.1/24"
proxies
name = "vnet" #这里要和下面客户端的name一致
type = "stcp"
secretKey = "123456"
[proxies.plugin]
type = "virtual_net"

另外一台客户端的

配置虚拟网络接口

featureGates = { VirtualNet = true }
virtualNet.address = "100.86.0.2/24"

visitors
name = "vnet" #这里要和上面服务器的name一致
type = "stcp"
serverName = "vnet"
secretKey = "123456"
bindPort = -1

[visitors.plugin]
type = "virtual_net"
destinationIP = "100.86.0.1"

<!-- gh-comment-id:4323438216 --> @HYKOYB commented on GitHub (Apr 27, 2026): > 就这么被关闭了?我也遇到了这个问题 自己摸索的结果,可以用 作为服务器的 # 配置虚拟网络接口 featureGates = { VirtualNet = true } virtualNet.address = "100.86.0.1/24" [[proxies]] name = "vnet" #这里要和下面客户端的name一致 type = "stcp" secretKey = "123456" [proxies.plugin] type = "virtual_net" 另外一台客户端的 # 配置虚拟网络接口 featureGates = { VirtualNet = true } virtualNet.address = "100.86.0.2/24" [[visitors]] name = "vnet" #这里要和上面服务器的name一致 type = "stcp" serverName = "vnet" secretKey = "123456" bindPort = -1 [visitors.plugin] type = "virtual_net" destinationIP = "100.86.0.1"
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#3953
No description provided.