[GH-ISSUE #3384] [Feature Request] frp如何实现HTTP同一域名多端口访问 #2704

Closed
opened 2026-05-05 13:44:33 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @threerog on GitHub (Mar 30, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3384

Describe the feature request

frp如何实现HTTP多端口访问
例如域名my.baidu.com实现如下需求

my.baidu.com:80=>192.168.5.1:80
my.baidu.com:81=>192.168.5.1:9568
my.baidu.com:82=>192.168.5.1:5244
my.baidu.com:90=>192.168.5.100:5000

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 @threerog on GitHub (Mar 30, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3384 ### Describe the feature request frp如何实现HTTP多端口访问 例如域名`my.baidu.com`实现如下需求 ``` my.baidu.com:80=>192.168.5.1:80 my.baidu.com:81=>192.168.5.1:9568 my.baidu.com:82=>192.168.5.1:5244 my.baidu.com:90=>192.168.5.100:5000 ``` ### Describe alternatives you've considered _No response_ ### Affected area - [X] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:44:33 -06:00
Author
Owner

@programmer-zheng commented on GitHub (Mar 31, 2023):

添加多个端口映射即可

<!-- gh-comment-id:1491234994 --> @programmer-zheng commented on GitHub (Mar 31, 2023): 添加多个端口映射即可
Author
Owner

@superzjg commented on GitHub (Mar 31, 2023):

使用type=tcp,可以轻松实现。不同内网端口转发不同远程端口即可

<!-- gh-comment-id:1492080323 --> @superzjg commented on GitHub (Mar 31, 2023): 使用type=tcp,可以轻松实现。不同内网端口转发不同远程端口即可
Author
Owner

@threerog commented on GitHub (Apr 4, 2023):

使用type=tcp,可以轻松实现。不同内网站口转发不同远程口即可

我试了 确实非常nice,但是这种方案好像无法使用https访问

<!-- gh-comment-id:1495313777 --> @threerog commented on GitHub (Apr 4, 2023): > 使用type=tcp,可以轻松实现。不同内网站口转发不同远程口即可 我试了 确实非常nice,但是这种方案好像无法使用https访问
Author
Owner

@superzjg commented on GitHub (Apr 4, 2023):

使用type=tcp,可以轻松实现。不同内网站口转发不同远程口即可

我试了 确实非常nice,但是这种方案好像无法使用https访问

https本质上也是tcp,一样可以的。内网端口用https的,外网就是https访问。如果内网服务不支持https,就用frpc的插件转成https

<!-- gh-comment-id:1495338657 --> @superzjg commented on GitHub (Apr 4, 2023): > > 使用type=tcp,可以轻松实现。不同内网站口转发不同远程口即可 > > 我试了 确实非常nice,但是这种方案好像无法使用https访问 https本质上也是tcp,一样可以的。内网端口用https的,外网就是https访问。如果内网服务不支持https,就用frpc的插件转成https
Author
Owner

@github-actions[bot] commented on GitHub (May 5, 2023):

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

<!-- gh-comment-id:1535558922 --> @github-actions[bot] commented on GitHub (May 5, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
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#2704
No description provided.