[GH-ISSUE #2692] failed to parse proxy proxy1, err: error local_port #2150

Closed
opened 2026-05-05 13:22:57 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @smallfish01 on GitHub (Dec 7, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2692

Bug Description

使用TCPMUX方式,在内网机器上执行frpc后出错:
failed to parse proxy proxy1, err: error local_port

外网端frps.ini配置:
[common]
bind_port = 7000
tcpmux_httpconnect_port = 1337

内网端frpc.ini配置:
[common]
server_addr = xx.xx.xx.xx
server_port = 7000

[proxy1]
type = tcpmux
multiplexer = httpconnect
custom_domains = ab.xxx.com

[proxy2]
type = tcpmux
multiplexer = httpconnect
custom_domains = bbb.xxx.com

在外网端执行程序frps:

./bin/frps -c ./conf/frps.ini

2021/12/07 18:32:45 [I] [root.go:200] frps uses config file: ./conf/frps.ini
2021/12/07 18:32:45 [I] [service.go:138] tcpmux httpconnect multiplexer listen on 0.0.0.0:1337
2021/12/07 18:32:45 [I] [service.go:192] frps tcp listen on 0.0.0.0:7000
2021/12/07 18:32:45 [I] [service.go:291] Dashboard listen on 0.0.0.0:7500
2021/12/07 18:32:45 [I] [root.go:209] frps started successfully
在内网端执行程序frpc:

./bin/frpc -c ./conf/frpc.ini

failed to parse proxy proxy1, err: error local_port

看了半天也没发现有什么配置问题,我是参考官方文档配置的。
另外想请教frpc有无调试模式?想看看有没有更详细得错误。

谢谢!

frpc Version

0.38.1

frps Version

0.38.1

System Architecture

linux/amd64

Configurations

failed to parse proxy proxy1, err: error local_port

Logs

failed to parse proxy proxy1, err: error local_port

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 @smallfish01 on GitHub (Dec 7, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2692 ### Bug Description 使用TCPMUX方式,在内网机器上执行frpc后出错: failed to parse proxy proxy1, err: error local_port 外网端frps.ini配置: [common] bind_port = 7000 tcpmux_httpconnect_port = 1337 内网端frpc.ini配置: [common] server_addr = xx.xx.xx.xx server_port = 7000 [proxy1] type = tcpmux multiplexer = httpconnect custom_domains = ab.xxx.com [proxy2] type = tcpmux multiplexer = httpconnect custom_domains = bbb.xxx.com 在外网端执行程序frps: # ./bin/frps -c ./conf/frps.ini 2021/12/07 18:32:45 [I] [root.go:200] frps uses config file: ./conf/frps.ini 2021/12/07 18:32:45 [I] [service.go:138] tcpmux httpconnect multiplexer listen on 0.0.0.0:1337 2021/12/07 18:32:45 [I] [service.go:192] frps tcp listen on 0.0.0.0:7000 2021/12/07 18:32:45 [I] [service.go:291] Dashboard listen on 0.0.0.0:7500 2021/12/07 18:32:45 [I] [root.go:209] frps started successfully 在内网端执行程序frpc: # ./bin/frpc -c ./conf/frpc.ini failed to parse proxy proxy1, err: error local_port 看了半天也没发现有什么配置问题,我是参考官方文档配置的。 另外想请教frpc有无调试模式?想看看有没有更详细得错误。 谢谢! ### frpc Version 0.38.1 ### frps Version 0.38.1 ### System Architecture linux/amd64 ### Configurations failed to parse proxy proxy1, err: error local_port ### Logs failed to parse proxy proxy1, err: error local_port ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Dec 8, 2021):

你需要通过 local_port 指定本地的服务端口,文档中可能没有写全,之后会加上。

<!-- gh-comment-id:988691121 --> @fatedier commented on GitHub (Dec 8, 2021): 你需要通过 `local_port` 指定本地的服务端口,文档中可能没有写全,之后会加上。
Author
Owner

@smallfish01 commented on GitHub (Dec 8, 2021):

你需要通过 local_port 指定本地的服务端口,文档中可能没有写全,之后会加上。

感谢回复,的确如此!我今天尝试加上local_port后就没有这个报错了,谢谢!

<!-- gh-comment-id:988701645 --> @smallfish01 commented on GitHub (Dec 8, 2021): > 你需要通过 `local_port` 指定本地的服务端口,文档中可能没有写全,之后会加上。 感谢回复,的确如此!我今天尝试加上local_port后就没有这个报错了,谢谢!
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#2150
No description provided.