Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法连接到 frps-panel 插件面板 #4332

Closed
11 tasks
xhzkp opened this issue Jul 11, 2024 · 11 comments
Closed
11 tasks

无法连接到 frps-panel 插件面板 #4332

xhzkp opened this issue Jul 11, 2024 · 11 comments

Comments

@xhzkp
Copy link

xhzkp commented Jul 11, 2024

Bug Description

我想使用下面链接的服务端面板, 但总是报错, 为了更清楚的表述问题, 我录制了GIF演示, 请求路过的大佬支招
https://github.com/yhl452493373/frps-panel

请单击图片右上角的按钮, 在新标签页中打开并观看
AA

frpc Version

0.59

frps Version

0.59

System Architecture

windows/amd64

Configurations

_______________________________________________________________frps-panel.toml
[common]
# frps panel config info
plugin_addr = "127.0.0.1"
plugin_port = 7200
#admin_user = "admin"
#admin_pwd = "admin"
# specified login state keep time
admin_keep_time = 0

# enable tls
tls_mode = false
#tls_cert_file = "cert.crt"
#tls_key_file = "cert.key"

# frp dashboard info
dashboard_addr = "127.0.0.1"
dashboard_port = 7500
dashboard_user = "admin"
dashboard_pwd = "admin"
_______________________________________________________________frps.toml
bindPort = 7000

[[httpPlugins]]
name = "frps-panel"
addr = "127.0.0.1:7200"
path = "/handler"
ops = ["Login","NewWorkConn","NewUserConn","NewProxy","Ping"]

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
@subei12
Copy link

subei12 commented Jul 11, 2024

frps 要开启 Dashboard 吧,在 frps.toml 加一下配置试试看。

# 默认为 127.0.0.1,如果需要公网访问,需要修改为 0.0.0.0。
webServer.addr = "0.0.0.0"
webServer.port = 7500
# dashboard 用户名密码,可选,默认为空
webServer.user = "admin"
webServer.password = "admin"

@xhzkp
Copy link
Author

xhzkp commented Jul 11, 2024

frps 要开启 Dashboard 吧,在 frps.toml 加一下配置试试看。

# 默认为 127.0.0.1,如果需要公网访问,需要修改为 0.0.0.0。
webServer.addr = "0.0.0.0"
webServer.port = 7500
# dashboard 用户名密码,可选,默认为空
webServer.user = "admin"
webServer.password = "admin"

感谢,
我这不是用的内置的面板, 是用的frps-panel面板插件, 是按下面的帮助文档配置的
https://github.com/yhl452493373/frps-panel/blob/main/README_zh.md

@subei12
Copy link

subei12 commented Jul 11, 2024

frps 要打开 Dashboard 吧,在frps.toml加一下配置试试看。

# 默认为 127.0.0.1,如果需要公网访问,需要修改为 0.0.0.0。
webServer.addr = "0.0.0.0"
webServer.port = 7500
# dashboard 用户名密码,可选,默认为空
webServer.user = "admin"
webServer.password = "admin"

谢谢, 我这不是用的内置面板,是用的frps-panel面板插件,是按下面的帮助文档配置的 https://github.com/yhl452493373/frps-panel/blob/main/README_zh.md

你的frps-panel.toml 面板配置上有一段

# frp dashboard info
dashboard_addr = "127.0.0.1"
dashboard_port = 7500
dashboard_user = "admin"
dashboard_pwd = "admin"

从注释上看,这里填写的是frp dashboard 的配置信息,你的报错也是这个信息里的端口,
所以我猜测你需要开启frp dashboard 你的frps-panel面板才可以获取到服务器信息

@xhzkp
Copy link
Author

xhzkp commented Jul 11, 2024

frps 要打开 Dashboard 吧,在frps.toml加一下配置试试看。

# 默认为 127.0.0.1,如果需要公网访问,需要修改为 0.0.0.0。
webServer.addr = "0.0.0.0"
webServer.port = 7500
# dashboard 用户名密码,可选,默认为空
webServer.user = "admin"
webServer.password = "admin"

谢谢, 我这不是用的内置面板,是用的frps-panel面板插件,是按下面的帮助文档配置的 https://github.com/yhl452493373/frps-panel/blob/main/README_zh.md

你的frps-panel.toml 面板配置上有一段

# frp dashboard info
dashboard_addr = "127.0.0.1"
dashboard_port = 7500
dashboard_user = "admin"
dashboard_pwd = "admin"

从注释上看,这里填写的是frp dashboard 的配置信息,你的报错也是这个信息里的端口, 所以我猜测你需要开启frp dashboard 你的frps-panel面板才可以获取到服务器信息

奇怪了, 刚才加了你提到的那几行配置, 测试不行, 然后我又改回去, 结果, 现在哪个面板也进不去了,
不知道是不是那个项目不适配最新的0.59?

@xhzkp
Copy link
Author

xhzkp commented Jul 11, 2024

清了一下浏览器的缓存, 现在能进插件的面板了, 但是还是报原来的错误, 估计可能还是哪里有问题

@subei12
Copy link

subei12 commented Jul 11, 2024

开无痕直接访问 http://127.0.0.1:7500 输入账号密码试试吧

我整体测试下来是正常的
image

_______________________________________________________________frps-panel.toml
# basic options
[common]
# frps panel config info
plugin_addr = "127.0.0.1"
plugin_port = 7200
#admin_user = "admin"
#admin_pwd = "admin"
# specified login state keep time
admin_keep_time = 0

# enable tls
tls_mode = false
#tls_cert_file = "cert.crt"
#tls_key_file = "cert.key"

# frp dashboard info
dashboard_addr = "127.0.0.1"
dashboard_port = 7500
dashboard_user = "admin"
dashboard_pwd = "admin"


_______________________________________________________________frps.toml
bindPort = 7000

# 默认为 127.0.0.1,如果需要公网访问,需要修改为 0.0.0.0。
webServer.addr = "0.0.0.0"
webServer.port = 7500
# dashboard 用户名密码,可选,默认为空
webServer.user = "admin"
webServer.password = "admin"
enablePrometheus = true


[[httpPlugins]]
name = "frps-panel"
addr = "127.0.0.1:7200"
path = "/handler"
ops = ["Login","NewWorkConn","NewUserConn","NewProxy","Ping"]

@xhzkp
Copy link
Author

xhzkp commented Jul 11, 2024

默认为 127.0.0.1,如果需要公网访问,需要修改为 0.0.0.0。

webServer.addr = "0.0.0.0"
webServer.port = 7500

dashboard 用户名密码,可选,默认为空

webServer.user = "admin"
webServer.password = "admin"
enablePrometheus = true

非常感谢, 现在7500和7200都能进了, 但是7500是内置的面板, 7200才是插件的面板, 难道官方文档的配置丢了那几行了吗?

@xhzkp
Copy link
Author

xhzkp commented Jul 13, 2024

开无痕直接访问 http://127.0.0.1:7500 输入账号密码试试吧

我整体测试下来是正常的 image

_______________________________________________________________frps-panel.toml
# basic options
[common]
# frps panel config info
plugin_addr = "127.0.0.1"
plugin_port = 7200
#admin_user = "admin"
#admin_pwd = "admin"
# specified login state keep time
admin_keep_time = 0

# enable tls
tls_mode = false
#tls_cert_file = "cert.crt"
#tls_key_file = "cert.key"

# frp dashboard info
dashboard_addr = "127.0.0.1"
dashboard_port = 7500
dashboard_user = "admin"
dashboard_pwd = "admin"


_______________________________________________________________frps.toml
bindPort = 7000

# 默认为 127.0.0.1,如果需要公网访问,需要修改为 0.0.0.0。
webServer.addr = "0.0.0.0"
webServer.port = 7500
# dashboard 用户名密码,可选,默认为空
webServer.user = "admin"
webServer.password = "admin"
enablePrometheus = true


[[httpPlugins]]
name = "frps-panel"
addr = "127.0.0.1:7200"
path = "/handler"
ops = ["Login","NewWorkConn","NewUserConn","NewProxy","Ping"]

大佬发现一个问题, 客户端, 莫名其妙就不连不上服务器了, 一直下面的提示, 然后看服务端的面板里面, 用户并没有被禁用, TCP列表里面为空, 我只能再新找一个端口,再新建一个用户, 哎, 真是不稳定

C:\Users\Administrator\Desktop\FRP\Frp059>frpc -c frpc.toml
�[1;34m2024-07-13 11:47:14.661 [I] [sub/root.go:142] start frpc service for config file [frpc.toml]
�[0m�[1;34m2024-07-13 11:47:14.679 [I] [client/service.go:294] try to connect to server...
�[0m�[1;34m2024-07-13 11:47:14.738 [I] [client/service.go:286] [3eb0e1eaa3d7a1cb] login to server success, get run id [3eb0e1eaa3d7a1cb]
�[0m�[1;34m2024-07-13 11:47:14.739 [I] [proxy/proxy_manager.go:173] [3eb0e1eaa3d7a1cb] proxy added: [frp001.Port 4455 Server]
�[0m�[1;33m2024-07-13 11:47:14.758 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed
�[0m�[1;33m2024-07-13 11:47:44.835 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed
�[0m�[1;33m2024-07-13 11:48:14.882 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed
�[0m�[1;33m2024-07-13 11:48:44.965 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed
�[0m�[1;33m2024-07-13 11:49:15.034 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed
�[0m�[1;33m2024-07-13 11:49:45.122 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed
�[0m�[1;33m2024-07-13 11:50:15.189 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed

@fatedier
Copy link
Owner

请去对应的项目里咨询。

@xhzkp
Copy link
Author

xhzkp commented Jul 13, 2024

请去对应的项目里咨询。

那个项目已经封存了,

@raydoom
Copy link

raydoom commented Jul 21, 2024

开无痕直接访问 http://127.0.0.1:7500 输入账号密码试试吧
我整体测试下来是正常的 image

_______________________________________________________________frps-panel.toml
# basic options
[common]
# frps panel config info
plugin_addr = "127.0.0.1"
plugin_port = 7200
#admin_user = "admin"
#admin_pwd = "admin"
# specified login state keep time
admin_keep_time = 0

# enable tls
tls_mode = false
#tls_cert_file = "cert.crt"
#tls_key_file = "cert.key"

# frp dashboard info
dashboard_addr = "127.0.0.1"
dashboard_port = 7500
dashboard_user = "admin"
dashboard_pwd = "admin"


_______________________________________________________________frps.toml
bindPort = 7000

# 默认为 127.0.0.1,如果需要公网访问,需要修改为 0.0.0.0。
webServer.addr = "0.0.0.0"
webServer.port = 7500
# dashboard 用户名密码,可选,默认为空
webServer.user = "admin"
webServer.password = "admin"
enablePrometheus = true


[[httpPlugins]]
name = "frps-panel"
addr = "127.0.0.1:7200"
path = "/handler"
ops = ["Login","NewWorkConn","NewUserConn","NewProxy","Ping"]

大佬发现一个问题, 客户端, 莫名其妙就不连不上服务器了, 一直下面的提示, 然后看服务端的面板里面, 用户并没有被禁用, TCP列表里面为空, 我只能再新找一个端口,再新建一个用户, 哎, 真是不稳定

C:\Users\Administrator\Desktop\FRP\Frp059>frpc -c frpc.toml �[1;34m2024-07-13 11:47:14.661 [I] [sub/root.go:142] start frpc service for config file [frpc.toml] �[0m�[1;34m2024-07-13 11:47:14.679 [I] [client/service.go:294] try to connect to server... �[0m�[1;34m2024-07-13 11:47:14.738 [I] [client/service.go:286] [3eb0e1eaa3d7a1cb] login to server success, get run id [3eb0e1eaa3d7a1cb] �[0m�[1;34m2024-07-13 11:47:14.739 [I] [proxy/proxy_manager.go:173] [3eb0e1eaa3d7a1cb] proxy added: [frp001.Port 4455 Server] �[0m�[1;33m2024-07-13 11:47:14.758 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed �[0m�[1;33m2024-07-13 11:47:44.835 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed �[0m�[1;33m2024-07-13 11:48:14.882 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed �[0m�[1;33m2024-07-13 11:48:44.965 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed �[0m�[1;33m2024-07-13 11:49:15.034 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed �[0m�[1;33m2024-07-13 11:49:45.122 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed �[0m�[1;33m2024-07-13 11:50:15.189 [W] [client/control.go:166] [3eb0e1eaa3d7a1cb] [frp001.Port 4455 Server] start error: user [frp001] port [6000] is not allowed

user [frp001] port [6000] is not allowed
这么明显的错误提示都要发个issue吗,先去看看使用说明README,不要张口就说人家的项目不稳定,先排除自己的使用问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants