[GH-ISSUE #4632] 将您重定向的次数过多。 #3656

Closed
opened 2026-05-05 14:20:49 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @mliuchengyu on GitHub (Jan 12, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4632

Bug Description

我通过frp 映射内网的esxi 服务器控制台地址访问的时候会这样
image

我不确定是不是esxi 局域网访问会提示:不安全的连接提示那个问题导致的重定向
image
如果是局域网访问每次都要手动点击一次继续前往

frpc Version

0.22.0

frps Version

0.22.0

System Architecture

linux/amd64

Configurations

frps.ini
[common]

frp监听的端口,用作服务端和客户端通信

bind_port = 7000

HTTP 请求的端口

vhost_http_port = 80

HTTPS 请求的端口

vhost_https_port = 443

dashboard_port = 7500

dashboard 用户名密码

dashboard_user = *****
dashboard_pwd = *****

subdomain_host = co***g.cn

开启toke认证

authentication_method = token
authenticate_heartbeats = true
authenticate_new_work_conns = true
token = *****

开启tcp穿透端口范围

allow_ports = 2-30000

log_file = /home/ubuntu/frp/frps.log
log_max_days = 3

frpc.ini
[common]
server_addr = *****
server_port = 7000
authentication_method = token
authenticate_heartbeats = true
authenticate_new_work_conns = true
token = *****

[esxi]
type = http
local_port = 80
local_ip = 192.168.5.152
subdomain = esxi

Logs

2025/01/12 05:52:49 [W] [newhttp.go:209] http: proxy error: no such domain
2025/01/12 05:52:49 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735]
2025/01/12 05:52:50 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735]
2025/01/12 05:52:51 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735]
2025/01/12 05:52:52 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735]
2025/01/12 05:52:53 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735]
2025/01/12 05:52:54 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735]
2025/01/12 05:52:55 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735]

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 @mliuchengyu on GitHub (Jan 12, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4632 ### Bug Description 我通过frp 映射内网的esxi 服务器控制台地址访问的时候会这样 <img width="954" alt="image" src="https://github.com/user-attachments/assets/932f8f1e-9bf1-41bd-ad75-b20b06c868b5" /> 我不确定是不是esxi 局域网访问会提示:不安全的连接提示那个问题导致的重定向 <img width="1337" alt="image" src="https://github.com/user-attachments/assets/84e81c8f-9675-4de9-a564-222478297f43" /> 如果是局域网访问每次都要手动点击一次继续前往 ### frpc Version 0.22.0 ### frps Version 0.22.0 ### System Architecture linux/amd64 ### Configurations frps.ini [common] # frp监听的端口,用作服务端和客户端通信 bind_port = 7000 # HTTP 请求的端口 vhost_http_port = 80 # HTTPS 请求的端口 vhost_https_port = 443 dashboard_port = 7500 # dashboard 用户名密码 dashboard_user = ***** dashboard_pwd = ***** subdomain_host = co***g.cn # 开启toke认证 authentication_method = token authenticate_heartbeats = true authenticate_new_work_conns = true token = ***** # 开启tcp穿透端口范围 allow_ports = 2-30000 log_file = /home/ubuntu/frp/frps.log log_max_days = 3 frpc.ini [common] server_addr = ***** server_port = 7000 authentication_method = token authenticate_heartbeats = true authenticate_new_work_conns = true token = ***** [esxi] type = http local_port = 80 local_ip = 192.168.5.152 subdomain = esxi ### Logs 2025/01/12 05:52:49 [W] [newhttp.go:209] http: proxy error: no such domain 2025/01/12 05:52:49 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735] 2025/01/12 05:52:50 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735] 2025/01/12 05:52:51 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735] 2025/01/12 05:52:52 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735] 2025/01/12 05:52:53 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735] 2025/01/12 05:52:54 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735] 2025/01/12 05:52:55 [I] [proxy.go:87] [3da14647d62a820d] [esxi] get a new work connection: [14.145.4.246:53735] ### 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
gitea-mirror 2026-05-05 14:20:49 -06:00
Author
Owner

@mliuchengyu commented on GitHub (Jan 12, 2025):

curl -vk https://192.168.5.152

image

第一次请求会看到 跳转到/ui

<!-- gh-comment-id:2585602771 --> @mliuchengyu commented on GitHub (Jan 12, 2025): curl -vk https://192.168.5.152 <img width="710" alt="image" src="https://github.com/user-attachments/assets/d35e6b88-b604-484e-a3f7-564b5a411e15" /> 第一次请求会看到 <meta http-equiv="refresh" content="0;URL='/ui'"/> 跳转到/ui
Author
Owner

@xqzr commented on GitHub (Jan 13, 2025):

local_port = 80

local_port = 443

<!-- gh-comment-id:2587923505 --> @xqzr commented on GitHub (Jan 13, 2025): > `local_port = 80` `local_port = 443`
Author
Owner

@github-actions[bot] commented on GitHub (Jan 28, 2025):

Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.

<!-- gh-comment-id:2617262928 --> @github-actions[bot] commented on GitHub (Jan 28, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
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#3656
No description provided.