Linux command
frp 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start frp client
frpc -c [frpc.toml]
Start frp server
frps -c [frps.toml]
Verify client configuration
frpc verify -c [frpc.toml]
Reload client config without restart
frpc reload -c [frpc.toml]
Show proxy status
frpc status -c [frpc.toml]
说明
frp (fast reverse proxy) exposes local servers behind NAT or firewalls to the internet. It consists of a client (frpc) on the internal network and a server (frps) on a public host. The tool supports TCP, UDP, HTTP, HTTPS, STCP, SUDP, and XTCP protocols with features like encryption, compression, multiplexing, and authentication. It enables remote access to internal services, SSH tunnels, web applications, and peer-to-peer connections. Since v0.52.0, frp supports TOML, YAML, and JSON configuration formats. The legacy INI format is deprecated and scheduled for removal. frp provides a self-hosted alternative to services like ngrok.
参数
- -c, --config _FILE_
- Configuration file path (TOML, YAML, or JSON).
- -L, --log_level _LEVEL_
- Log level (trace, debug, info, warn, error).
- -t, --token _TOKEN_
- Authentication token shared between client and server.
- -s, --server_addr _ADDR_
- frps server address (frpc only).
- -v, --version
- Print version information.
- -h, --help
- Display help information.
FAQ
What is the frp command used for?
frp (fast reverse proxy) exposes local servers behind NAT or firewalls to the internet. It consists of a client (frpc) on the internal network and a server (frps) on a public host. The tool supports TCP, UDP, HTTP, HTTPS, STCP, SUDP, and XTCP protocols with features like encryption, compression, multiplexing, and authentication. It enables remote access to internal services, SSH tunnels, web applications, and peer-to-peer connections. Since v0.52.0, frp supports TOML, YAML, and JSON configuration formats. The legacy INI format is deprecated and scheduled for removal. frp provides a self-hosted alternative to services like ngrok.
How do I run a basic frp example?
Run `frpc -c [frpc.toml]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c, --config _FILE_ do in frp?
Configuration file path (TOML, YAML, or JSON).