[GH-ISSUE #4757] VirtualNet 运行成功,棒! #3758

Closed
opened 2026-05-05 14:24:29 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @wuai1024 on GitHub (Apr 17, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4757

Describe the feature request

运行成功,以下是配置文件,供大家参考。

配置文件

frpc1.yaml

serverAddr: "1.1.1.1"
serverPort: 7000
user: "huawei-book"

featureGates: {
  VirtualNet: true
}

virtualNet:
  address: "100.86.0.1/24"

proxies:
  - name: "vnet-server"
    type: "stcp"
    secretKey: "your-secret-key"
    plugin:
      type: "virtual_net"

运行截图

Image

配置文件

frpc2.yaml

serverAddr: "1.1.1.1"
serverPort: 7000
user: "huawei-book"

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
    plugin:
      type: "virtual_net"
      destinationIP: "100.86.0.1"

运行截图

Image

连接测试

Image

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @wuai1024 on GitHub (Apr 17, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4757 ### Describe the feature request 运行成功,以下是配置文件,供大家参考。 ### 配置文件 **frpc1.yaml** ```bash serverAddr: "1.1.1.1" serverPort: 7000 user: "huawei-book" featureGates: { VirtualNet: true } virtualNet: address: "100.86.0.1/24" proxies: - name: "vnet-server" type: "stcp" secretKey: "your-secret-key" plugin: type: "virtual_net" ``` ### 运行截图 ![Image](https://github.com/user-attachments/assets/9522cc8c-23a4-4358-8b62-0694ce73fde8) ### 配置文件 **frpc2.yaml** ```bash serverAddr: "1.1.1.1" serverPort: 7000 user: "huawei-book" 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 plugin: type: "virtual_net" destinationIP: "100.86.0.1" ``` ### 运行截图 ![Image](https://github.com/user-attachments/assets/ad540841-f227-4c74-b890-29dfca5864a1) ### 连接测试 ![Image](https://github.com/user-attachments/assets/458cb21b-8c36-4b06-b653-c4775abe96ad) ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [x] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [x] Others
Author
Owner

@wuai1024 commented on GitHub (Apr 17, 2025):

请问下,如果我停止运行后,创建的 tun 虚拟网卡会自动删除掉吗?

<!-- gh-comment-id:2811927028 --> @wuai1024 commented on GitHub (Apr 17, 2025): ~~请问下,如果我停止运行后,创建的 `tun` 虚拟网卡会自动删除掉吗?~~
Author
Owner

@fatedier commented on GitHub (Apr 17, 2025):

一般来说是会的,通过 ifconfig 命令可以看到。

<!-- gh-comment-id:2811992470 --> @fatedier commented on GitHub (Apr 17, 2025): 一般来说是会的,通过 ifconfig 命令可以看到。
Author
Owner

@linf04 commented on GitHub (May 11, 2025):

能p2p吗

<!-- gh-comment-id:2869520719 --> @linf04 commented on GitHub (May 11, 2025): 能p2p吗
Author
Owner

@wuai1024 commented on GitHub (May 12, 2025):

xtcp 就可以 p2p ,这个走的是 stcp 类型,应该是需要中转的。

<!-- gh-comment-id:2871426722 --> @wuai1024 commented on GitHub (May 12, 2025): xtcp 就可以 p2p ,这个走的是 `stcp` 类型,应该是需要中转的。
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#3758
No description provided.