Web 界面

目前 frpc 和 frps 分别内置了相应的 Web 界面方便用户使用。

服务端 Dashboard

服务端 Dashboard 使用户可以通过浏览器查看 frp 的状态以及代理统计信息。

注:Dashboard 尚未针对大量的 proxy 数据展示做优化,如果出现 Dashboard 访问较慢的情况,请不要启用此功能。

需要在 frps.toml 中指定 dashboard 服务使用的端口,即可开启此功能:

# frps.toml
    webServer.port = 7500
    # dashboard 用户名密码,可选,默认为空
    webServer.user = "admin"
    webServer.password = "admin"
    

打开浏览器通过 http://[server addr]:7500 访问 Dashboard 界面,输入用户名密码 admin

你也可以通过配置 TLS 证书来启用 HTTPS 接口:

webServer.tls.certFile = "server.crt"
    webServer.tls.keyFile = "server.key"
    

客户端管理界面

frpc 内置的 Admin UI 可以帮助用户通过浏览器来查询和管理客户端的 proxy 状态和配置。

需要在 frpc.toml 中指定 admin 服务使用的端口,即可开启此功能:

# frpc.toml
    webServer.addr = "127.0.0.1"
    webServer.port = 7400
    webServer.user = "admin"
    webServer.password = "admin"
    

打开浏览器通过 http://127.0.0.1:7400 访问 Admin UI。

如果想要在外网环境访问 Admin UI,可以将 7400 端口通过 frp 映射出去即可,但需要重视安全风险。

# frpc.toml
    [[proxies]]
    name = "admin_ui"
    type = "tcp"
    localPort = 7400
    remotePort = 7400
    
最后修改 November 15, 2023: fix 404 (#71) (626ce4d)

Web Interface

Currently, FRPC and FRPS have built-in web interfaces for convenient user use.

Server side dashboard

Server side Dashboard Use users can view frp through a browser The status of and Agent statistics information.

Note: The dashboard has not been optimized for displaying a large amount of proxy data. If any issues arise Please do not enable this feature if the dashboard access is slow

Dashboard needs to be specified in frps.toml To enable this function, simply use the port of the service:

# frps.toml
    webServer.port = 7500
    # dashboard 用户名密码,可选,默认为空
    webServer.user = "admin"
    webServer.password = "admin"
    

Open the browser and access it throughhttp://[server addr]: 7500 Dashboard Interface, enter username and passwordadmin.

You can also enable the HTTPS interface through the Configuration TLS certificate:

webServer.tls.certFile = "server.crt"
    webServer.tls.keyFile = "server.key"
    

Client管理Interface

FRPC's built-in Admin UI Can help users query and manage client proxies through a browser Status and Configuration.

To enable this feature, you need to specify the port for the admin service Use in frpc.toml:

# frpc.toml
    webServer.addr = "127.0.0.1"
    webServer.port = 7400
    webServer.user = "admin"
    webServer.password = "admin"
    

Open the browser through http://127.0.0.1:7400 Accessing Admin UI.

If you want to access the Admin UI in an external network environment, you can use port 7400 via frp Mapping it out is sufficient, but security risks need to be taken seriously.

# frpc.toml
    [[proxies]]
    name = "admin_ui"
    type = "tcp"
    localPort = 7400
    remotePort = 7400
    
Last modified November 15, 2023: fix 404 (#71) (626ce4d)