OpenWrt Frp 项目使用教程
1. 项目的目录结构及介绍
OpenWrt Frp 项目的目录结构如下:
openwrt-frp/
├── github/workflows
│ └── ...
├── LICENSE
├── Makefile
├── README.md
├── compile.sh
└── ...
github/workflows
: 包含 GitHub Actions 的工作流配置文件。LICENSE
: 项目的许可证文件。Makefile
: 用于编译和安装项目的 Makefile。README.md
: 项目的主文档,包含安装和使用说明。compile.sh
: 编译脚本。
2. 项目的启动文件介绍
项目的启动文件主要是 frpc
和 frps
,这两个文件分别用于客户端和服务器的启动。
frpc
: Frp 客户端的启动文件。frps
: Frp 服务器的启动文件。
安装完成后,这两个文件通常位于 /usr/bin
目录下。
3. 项目的配置文件介绍
项目的配置文件主要包括 frpc.ini
和 frps.ini
,这两个文件分别用于客户端和服务器的配置。
frpc.ini
[common]
server_addr = x.x.x.x
server_port = 7000
token = 12345678
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
[common]
: 通用配置部分。server_addr
: 服务器地址。server_port
: 服务器端口。token
: 认证令牌。
[ssh]
: 具体的代理配置。type
: 代理类型。local_ip
: 本地 IP。local_port
: 本地端口。remote_port
: 远程端口。
frps.ini
[common]
bind_port = 7000
token = 12345678
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
enable_prometheus = true
log_file = /var/log/frps.log
log_level = info
log_max_days = 3
[common]
: 通用配置部分。bind_port
: 绑定端口。token
: 认证令牌。dashboard_port
: 监控面板端口。dashboard_user
: 监控面板用户名。dashboard_pwd
: 监控面板密码。enable_prometheus
: 启用 Prometheus 监控。log_file
: 日志文件路径。log_level
: 日志级别。log_max_days
: 日志保留天数。
以上是 OpenWrt Frp 项目的基本使用教程,涵盖了项目的目录结构、启动文件和配置文件的介绍。希望对您有所帮助。
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考