[GH-ISSUE #4012] 无法代理https #3175

Closed
opened 2026-05-05 14:03:18 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @gaol1207 on GitHub (Feb 21, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4012

Bug Description

代理https请求后,访问异常

frpc Version

0.54

frps Version

0.54

System Architecture

linux/amd64

Configurations

frps配置

`bindAddr = "0.0.0.0"
#客户端与服务端进行通信的端口,即frp服务端口,需与客户端server_port一致
bindPort = 17777

#控制台配置
webServer.addr = "0.0.0.0"
webServer.port = 17555
webServer.user = "root"
webServer.password = "123456"

#frpc客户端用到的token认证
auth.method = "token"
auth.token = "190827F2R9A6Zxxx"

vhostHTTPPort = 80
vhostHTTPSPort = 443
`

frpc配置

`
serverAddr = "101.xx.xx.xx" #公网IP或者域名
serverPort = 17777

auth.method = "token"
auth.token = "190827F2R9A6Zxxx" #frps配置的token

proxies
name = "NAS"
type = "https"
subdomain = "hello"
#customDomains = ["xxx.xxx.cn"]
[proxies.plugin]
type = "https2https"
localAddr = "192.168.xx.xx:5001"

HTTPS 证书相关的配置

#crtPath = "/etc/frp/cert/https/xxx.xxx_public.crt"
#keyPath = "/etc/frp/cert/https/xxx.xxx.key"
hostHeaderRewrite = "127.0.0.1"
requestHeaders.set.x-from-where = "frp"
`

Logs

frpc报错信息:2024/02/21 08:46:39 http: TLS handshake error from 101.33.252.61:17777: EOF

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @gaol1207 on GitHub (Feb 21, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4012 ### Bug Description 代理https请求后,访问异常 ### frpc Version 0.54 ### frps Version 0.54 ### System Architecture linux/amd64 ### Configurations # frps配置 `bindAddr = "0.0.0.0" #客户端与服务端进行通信的端口,即frp服务端口,需与客户端server_port一致 bindPort = 17777 #控制台配置 webServer.addr = "0.0.0.0" webServer.port = 17555 webServer.user = "root" webServer.password = "123456" #frpc客户端用到的token认证 auth.method = "token" auth.token = "190827F2R9A6Zxxx" vhostHTTPPort = 80 vhostHTTPSPort = 443 ` # frpc配置 ` serverAddr = "101.xx.xx.xx" #公网IP或者域名 serverPort = 17777 auth.method = "token" auth.token = "190827F2R9A6Zxxx" #frps配置的token [[proxies]] name = "NAS" type = "https" subdomain = "hello" #customDomains = ["xxx.xxx.cn"] [proxies.plugin] type = "https2https" localAddr = "192.168.xx.xx:5001" # HTTPS 证书相关的配置 #crtPath = "/etc/frp/cert/https/xxx.xxx_public.crt" #keyPath = "/etc/frp/cert/https/xxx.xxx.key" hostHeaderRewrite = "127.0.0.1" requestHeaders.set.x-from-where = "frp" ` ### Logs frpc报错信息:2024/02/21 08:46:39 http: TLS handshake error from 101.33.252.61:17777: EOF ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3175
No description provided.