[GH-ISSUE #2566] Allow tcpmux (httpconnect) clients to set local_port #2041

Open
opened 2026-05-05 13:19:06 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @green-codes on GitHub (Sep 5, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2566

Describe the feature request

Is it possible to allow httpconnect clients to set different local_port than tcpmux_httpconnect_port? This will open up frp to a lot more use cases, e.g. proxying port 22 to multiple SSH servers on the client side (each with different subdomains).

Describe alternatives you've considered

using static tcp port forwarding for each client-side tcp service, which is cumbersome

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @green-codes on GitHub (Sep 5, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2566 ### Describe the feature request Is it possible to allow `httpconnect` clients to set different `local_port` than `tcpmux_httpconnect_port`? This will open up frp to a lot more use cases, e.g. proxying port 22 to multiple SSH servers on the client side (each with different subdomains). ### Describe alternatives you've considered using static tcp port forwarding for each client-side tcp service, which is cumbersome ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [ ] Server Plugin - [X] Extensions - [ ] Others
gitea-mirror added the
future
label 2026-05-05 13:19:06 -06:00
Author
Owner

@fatedier commented on GitHub (Sep 6, 2021):

We plan to support this options but it has low priority.

<!-- gh-comment-id:913386614 --> @fatedier commented on GitHub (Sep 6, 2021): We plan to support this options but it has low priority.
Author
Owner

@green-codes commented on GitHub (Sep 6, 2021):

Thanks for replying! Really hope to see this feature at some point. I manage a number of servers (some at different locations so I can’t just cluster them) behind a single frps proxy, and the port configuration is a mess. Allowing TCP mux with subdomains will be a godsend.

<!-- gh-comment-id:913402083 --> @green-codes commented on GitHub (Sep 6, 2021): Thanks for replying! Really hope to see this feature at some point. I manage a number of servers (some at different locations so I can’t just cluster them) behind a single frps proxy, and the port configuration is a mess. Allowing TCP mux with subdomains will be a godsend.
Author
Owner

@ghost commented on GitHub (Nov 10, 2024):

这个现在实现了吗

<!-- gh-comment-id:2466810811 --> @ghost commented on GitHub (Nov 10, 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#2041
No description provided.