mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2807] Fails to connect multiple clients #2244
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2244
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JimBeam2019 on GitHub (Feb 18, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2807
Bug Description
Hi there, I'm having a problem exposing two different localhost clients to the internet with HTTPS protocol through a cloud server.
For example, I have a cloud server running frps (see the frps.ini below) and trying to expose a localhost client A and client B (the configurations are frpc.ini A and frpc.ini B), which are from device A and B respectively. My goal is that if the user type
https://www.mydomain.com/test01in a browser, the cloud server would connect them to client A and vice versa, if it ishttps://www.mydomain.com/test02, it should link to client B.With the frps up and running, when I started client A first, the connection with it went through, but then I tried client B and it return the error message
[W] [control.go:447] [3d336c85a6d62de2] new proxy [web_test_B] error: router config conflict. The result went the same with the similar error message as I started client B first and then client A second.I was wondering if it is a bug, so could you try the configurations above to see if it is indeed a bug there. Please any advice will be greatly appreciated. Cheers.
frpc Version
0.39.1
frps Version
0.39.1
System Architecture
linux/arm64
Configurations
frps.ini
frpc.ini A in device A
frpc.ini B in device B
Logs
frps
frpc.ini A in device A
frpc.ini B in device B
Steps to reproduce
...
Affected area
@fatedier commented on GitHub (Feb 18, 2022):
locationsis not supported forhttps. It only supportshttp.For
https, frps will not decode your request data, it just forward the connection to your client.@ghost commented on GitHub (Feb 18, 2022):
so you are saying that if we have 2 HTTPS clients (SSL certificates on client side, not on server side), FRP library is useless? There is no way to connect?
did I get it right ?
@fatedier commented on GitHub (Feb 19, 2022):
You can use different domains for each HTTPS service.
@ghost commented on GitHub (Feb 19, 2022):
do you mean, use different subdomain for each HTTPS service ?
@ghost commented on GitHub (Mar 12, 2022):
Hey @JimBeam2019 I figured out how to do this, here is my config:
frps.ini:
[common]bind_port = 7000vhost_http_port = 80vhost_https_port = 443dashboard_port = 7001dashboard_user = usernamedashboard_pwd = supersecurepasswordfrpc.ini (1st client, in my case it's the main domain):
[common]server_addr = xxx.xxx.xxx.xxxserver_port = 7000[http]type = httplocal_ip = 0.0.0.0local_port = 80custom_domains = example.com[https]type = httpslocal_ip = 0.0.0.0local_port = 443custom_domains = example.comfrpc.ini (2nd client, in my case it's a sub-domain):
[common]server_addr = xxx.xxx.xxx.xxxserver_port = 7000[http-sub]type = httplocal_ip = 0.0.0.0local_port = 80custom_domains = sub.example.com[https-sub]type = httpslocal_ip = 0.0.0.0local_port = 443custom_domains = sub.example.comHope this helps
@github-actions[bot] commented on GitHub (Apr 12, 2022):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.