[GH-ISSUE #3902] 内网web,外面访问,被127.0.0.1后面加端口0,导致访问失败 #3091

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

Originally created by @zouzhe1 on GitHub (Dec 29, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3902

Bug Description

客户端:

[[proxies]]
name = "nas"
type = "http"
local_port = 5000
subdomain= "nas"

服务端:

bindPort = 9001
vhostHTTPPort = 9002
subDomainHost = "xxx.com"

客户端log
[E] [proxy.go:204] [858dabc00abfd261] [nas] connect to local service [127.0.0.1:0] error: dial tcp 127.0.0.1:0: connect: connection refused

服务端log
[W] [http.go:119] do http proxy request [host: nas.xxx.com:9002] error: EOF

frpc Version

0.53.2

frps Version

0.53.2

System Architecture

linux/amd64

Configurations

内网web,外面访问,被127.0.0.1后面加端口0,导致访问失败

Logs

No response

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 @zouzhe1 on GitHub (Dec 29, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3902 ### Bug Description 客户端: ``` [[proxies]] name = "nas" type = "http" local_port = 5000 subdomain= "nas" ``` 服务端: ``` bindPort = 9001 vhostHTTPPort = 9002 subDomainHost = "xxx.com" ``` 客户端log `[E] [proxy.go:204] [858dabc00abfd261] [nas] connect to local service [127.0.0.1:0] error: dial tcp 127.0.0.1:0: connect: connection refused` 服务端log ` [W] [http.go:119] do http proxy request [host: nas.xxx.com:9002] error: EOF` ### frpc Version 0.53.2 ### frps Version 0.53.2 ### System Architecture linux/amd64 ### Configurations 内网web,外面访问,被127.0.0.1后面加端口0,导致访问失败 ### Logs _No response_ ### 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:00:09 -06:00
Author
Owner

@superzjg commented on GitHub (Dec 29, 2023):

仔细看示例(本地端口有误):
https://gofrp.org/zh-cn/docs/examples/vhost-http/

<!-- gh-comment-id:1871945945 --> @superzjg commented on GitHub (Dec 29, 2023): 仔细看示例(本地端口有误): https://gofrp.org/zh-cn/docs/examples/vhost-http/
Author
Owner

@github-actions[bot] commented on GitHub (Jan 25, 2024):

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

<!-- gh-comment-id:1909292006 --> @github-actions[bot] commented on GitHub (Jan 25, 2024): Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d 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#3091
No description provided.