mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1764] HTTPS to HTTPS #1394
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#1394
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 @dtreutwein on GitHub (Apr 17, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1764
Hello,
Is there any solution to get FRP work with HTTPS to HTTPS?
We've tried it many times with configurations out of the frp readme, but we can't establish a connection with HTTPS.
HTTPS to HTTP works fine, but we need HTTPS at the device.
I hope someone has a configuration. :)
Thanks for your help
@fatedier commented on GitHub (Apr 17, 2020):
https://github.com/fatedier/frp/blob/master/conf/frpc_full.ini#L163
Try this configuration.
@dtreutwein commented on GitHub (Apr 17, 2020):
We've tried this already, but it doesn't work.
How dies it work with an SSL Certificate ? Where can we put the SSL Certificate?
@fatedier commented on GitHub (Apr 17, 2020):
frps just forward HTTPS requests by SNI, not consider SSL Certificate.
@dtreutwein commented on GitHub (Apr 17, 2020):
OK thanks, I will try it again.
@dtreutwein commented on GitHub (Apr 17, 2020):
@fatedier commented on GitHub (Apr 19, 2020):
How can i reproduce it in my local environment?
I have tried this configure and it worked.
@dtreutwein commented on GitHub (Apr 20, 2020):
This is my config:
[https]
type = https
local_ip = 127.0.0.1
local_port = 443
use_encryption = false
use_compression = false
custom_domains = frp1.mydomain.de
proxy_protocol_version = v2
@Becods commented on GitHub (Aug 16, 2020):
Ensure that the backend (nginx/apache/litespeed) is configured with protocol, and then turn on proxy_protocol function.
Otherwise you will get an error reminder similar to that of a protocol handshake failure (ERR_SSL_PROTOCOL_ERROR).
@adminBTI commented on GitHub (Nov 21, 2020):
Sorry about resurrecting closed thread but...
Litespeed / Openlitespeed has no support for proxy_protocol in https. So, it has no way of knowing actual client IP in passthrough ssl traffic. Please let me know if I am mistaken.. If so, where do I find proxy_protocol module for Openlitespeed?
@gainskills commented on GitHub (Aug 25, 2022):
For this configuration, r u getting a certification error? thanks,
@hellohawaii commented on GitHub (Sep 19, 2023):
I also tried to expose a HTTPS on local network to public network but failed with frp. I think is caused by the fact that frp does not change the header of HTTPS requests.
To be more specific, assume you have a domain
domain1that can be access in the local network. And a public domaindomain2pointing toPUBLIC_IP. Need to set adomain2as reverse proxy ofdomain1in local network. Since the request frp sent to Caddy is stilldomain2. Or you can simply also usedomain2as the domain in local network and abort thedomain1.The following is my experiments:
I set a HTTPs on local network using Caddy, the Caddyfile is:
I change the hosts file on my local machine, pointing
domain1.comanddomain2.comto127.0.0.1. I can get the greating message correctly on my local machine.My frpc.ini:
and frps.ini:
Note that,
domain2.compoints toPUBLIC_IP.When I visited
domain2.comfrom the public network, I got "Hello from domain2!". So even I setdomain1.comin thelocal_ipin frpc.ini, the Caddy still got a request with hostdomain2.com. So if I still want to usedomain1.comin local network, I have to modify the Caddyfile to add a reverse_proxy: