[GH-ISSUE #4300] 在只有公网IP的情况下如何开放多个端口 #3394

Closed
opened 2026-05-05 14:11:10 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @EEE1even on GitHub (Jun 24, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4300

Describe the feature request

内网有多个网站,但是frps中只能配置一个vhostHTTPPort,我应该如何配置才能实现111.222.333.11:3000111.222.333.11:8080这样用公网IP加端口号的方式访问多个内网网站

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 @EEE1even on GitHub (Jun 24, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4300 ### Describe the feature request 内网有多个网站,但是`frps`中只能配置一个`vhostHTTPPort`,我应该如何配置才能实现`111.222.333.11:3000`、`111.222.333.11:8080`这样用公网IP加端口号的方式访问多个内网网站 ### Describe alternatives you've considered _No response_ ### Affected area - [X] Docs - [ ] Installation - [X] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@subei12 commented on GitHub (Jun 25, 2024):

tcp的类型可以
例如:

[[proxies]]
name = "web-8080"
type = "tcp"
localIP = "127.0.0.1"
localPort = 8080
remotePort = 8080

[[proxies]]
name = "web-3000"
type = "tcp"
localIP = "127.0.0.1"
localPort = 3000
remotePort = 3000
<!-- gh-comment-id:2188231368 --> @subei12 commented on GitHub (Jun 25, 2024): 用`tcp`的类型可以 例如: ``` toml [[proxies]] name = "web-8080" type = "tcp" localIP = "127.0.0.1" localPort = 8080 remotePort = 8080 [[proxies]] name = "web-3000" type = "tcp" localIP = "127.0.0.1" localPort = 3000 remotePort = 3000 ```
Author
Owner

@EEE1even commented on GitHub (Jun 25, 2024):

解决了,非常感谢!

<!-- gh-comment-id:2188397924 --> @EEE1even commented on GitHub (Jun 25, 2024): 解决了,非常感谢!
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#3394
No description provided.