mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1449] tcp配置proxy_protocol_version导致https失效 #1141
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#1141
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 @lostmaniac on GitHub (Sep 28, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1449
0.29版本
centos7
使用阿里云穿透到内网
由于frp不支持certbot
所以使用tcp方式穿透到nginx的443端口
看到文档上支持proxy_protocol_version = v2
但是tcp端口设置这个选项后,会导致https服务不能访问。
配置文件如下
[web_https]
type = tcp
local_ip = 127.0.0.1
local_port = 443
remote_port = 443
health_check_type = tcp
health_check_timeout_s = 3
health_check_max_failed = 3
health_check_interval_s = 10
proxy_protocol_version = v2
火狐浏览器链接报错如下
建立安全连接失败
连接到 cloud.maniac.vip 时发生错误。SSL 接收到一个超出最大准许长度的记录。 错误代码:SSL_ERROR_RX_RECORD_TOO_LONG
@fatedier commented on GitHub (Sep 28, 2019):
nginx 需要特殊配置支持解析这个协议。
@lostmaniac commented on GitHub (Oct 1, 2019):
X-Real-IP这个参数已经开启了
@fatedier commented on GitHub (Oct 29, 2019):
nginx 要配置能够解析 proxy_protocol 协议。