frp icon indicating copy to clipboard operation
frp copied to clipboard

Allow multiple HTTP proxies on different ports

Open ravenclaw900 opened this issue 2 years ago • 16 comments

The solution you want

The ability to have multiple HTTP proxies on different remote ports.

Alternatives considered

Giving the HTTPS type proxy the same options as HTTP type proxies, but that would still only allow 2 remote ports.

How to implement this function

Remove vhost_http_port and replace it with remote_port on the client, like with TCP proxies.

Application scenarios of this function

Anything requiring multiple HTTP proxies on different ports, (e.g. a Synapse server)

ravenclaw900 avatar Jul 30 '21 14:07 ravenclaw900

I don't know this scenarios, maybe it's not a common feature.

blizard863 avatar Aug 01 '21 05:08 blizard863

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

github-actions[bot] avatar Sep 01 '21 00:09 github-actions[bot]

bump

ravenclaw900 avatar Sep 01 '21 01:09 ravenclaw900

I'm running many http proxies on the same host with no problem. Just use type=http(s) and different ports for each service. remember to set vhost in frps

green-codes avatar Sep 05 '21 07:09 green-codes

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

github-actions[bot] avatar Oct 06 '21 00:10 github-actions[bot]

bump

ravenclaw900 avatar Oct 06 '21 00:10 ravenclaw900

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

github-actions[bot] avatar Nov 07 '21 00:11 github-actions[bot]

bump

ravenclaw900 avatar Nov 07 '21 01:11 ravenclaw900

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

github-actions[bot] avatar Dec 08 '21 00:12 github-actions[bot]

bump

ravenclaw900 avatar Dec 08 '21 01:12 ravenclaw900

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

github-actions[bot] avatar Jan 09 '22 00:01 github-actions[bot]

bump

ravenclaw900 avatar Jan 09 '22 13:01 ravenclaw900

@green-codes, yes, but can't you only have one vhost? Doesn't that mean that all of the proxies would go to the same port?

ravenclaw900 avatar Feb 03 '22 13:02 ravenclaw900

It's not necessary to always set type http for your service. Just use tcp instead.

fatedier avatar Feb 09 '22 07:02 fatedier

Yes, however you do need type http to set headers, right? My situation is that I have 2 http proxies that need to have different headers set on them.

ravenclaw900 avatar Feb 09 '22 12:02 ravenclaw900

We want to support this scenario in frp v2 since it's very different with current architecture.

fatedier avatar Feb 09 '22 13:02 fatedier