fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
85.32k stars 13.23k forks source link

Allow tcpmux (httpconnect) clients to set local_port #2566

Open green-codes opened 3 years ago

green-codes commented 3 years ago

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

fatedier commented 3 years ago

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

green-codes commented 3 years ago

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.