[GH-ISSUE #4540] HTTPS traffic pass cannot work but http work well #3587

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

Originally created by @WanliZhong on GitHub (Nov 16, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4540

Bug Description

HTTPS traffic pass cannot work but http work well.

frpc Version

0.60.0

frps Version

0.60.0

System Architecture

linux/amd64

Configurations

frps.toml

bindPort = 7000
vhostHTTPPort = 8001
vhostHTTPSPort = 8000

frpc.toml

serverAddr = "xxx.xxx.xxx.xxx"
serverPort = 7000

[[proxies]]
name = "ssh_22"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000

[[proxies]]
name = "web"
type = "https"
localPort = 9000
customDomains = ["www.xxxxxx.com"]

Logs

No response

Steps to reproduce

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @WanliZhong on GitHub (Nov 16, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4540 ### Bug Description HTTPS traffic pass cannot work but http work well. ### frpc Version 0.60.0 ### frps Version 0.60.0 ### System Architecture linux/amd64 ### Configurations frps.toml ``` bindPort = 7000 vhostHTTPPort = 8001 vhostHTTPSPort = 8000 ``` frpc.toml ``` serverAddr = "xxx.xxx.xxx.xxx" serverPort = 7000 [[proxies]] name = "ssh_22" type = "tcp" localIP = "127.0.0.1" localPort = 22 remotePort = 6000 [[proxies]] name = "web" type = "https" localPort = 9000 customDomains = ["www.xxxxxx.com"] ``` ### Logs _No response_ ### Steps to reproduce _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@WanliZhong commented on GitHub (Nov 16, 2024):

HTTP forward is work well:


ubuntu@VM-24-4-ubuntu:/etc/nginx$ curl -k http://localhost:8001
<!DOCTYPE html>
<html>
<head>
<title>Not Found</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>The page you requested was not found.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
<p>The server is powered by <a href="https://github.com/fatedier/frp">frp</a>.</p>
<p><em>Faithfully yours, frp.</em></p>
</body>
</html>

HTTPS forward is failed:

ubuntu@VM-24-4-ubuntu:/etc/nginx$ curl -k https://localhost:8000
curl: (35) error:0A000458:SSL routines::tlsv1 unrecognized name
<!-- gh-comment-id:2480505441 --> @WanliZhong commented on GitHub (Nov 16, 2024): HTTP forward is work well: ``` ubuntu@VM-24-4-ubuntu:/etc/nginx$ curl -k http://localhost:8001 <!DOCTYPE html> <html> <head> <title>Not Found</title> <style> body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style> </head> <body> <h1>The page you requested was not found.</h1> <p>Sorry, the page you are looking for is currently unavailable.<br/> Please try again later.</p> <p>The server is powered by <a href="https://github.com/fatedier/frp">frp</a>.</p> <p><em>Faithfully yours, frp.</em></p> </body> </html> ``` HTTPS forward is failed: ``` ubuntu@VM-24-4-ubuntu:/etc/nginx$ curl -k https://localhost:8000 curl: (35) error:0A000458:SSL routines::tlsv1 unrecognized name ```
Author
Owner

@WanliZhong commented on GitHub (Nov 16, 2024):

Solved by using nginx to pass the https request to http localhost, then use frp forward to server

<!-- gh-comment-id:2480524250 --> @WanliZhong commented on GitHub (Nov 16, 2024): Solved by using nginx to pass the https request to http localhost, then use frp forward to server
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#3587
No description provided.