mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2692] failed to parse proxy proxy1, err: error local_port #2150
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@fatedier commented on GitHub (Dec 8, 2021):
你需要通过
local_port指定本地的服务端口,文档中可能没有写全,之后会加上。@smallfish01 commented on GitHub (Dec 8, 2021):
感谢回复,的确如此!我今天尝试加上local_port后就没有这个报错了,谢谢!