A Python command line tool to simplify FRP client operations, supporting quick port forwarding and configuration management.
- Python 3.8+
- frpc tool, we support the frp tool author!
git clone https://github.com/TazmiDev/frp-tool.git
./install.ps1
- Initialize configuration
frp --set server=frp.example.com:7000 --set token=your_token
- Start HTTP forwarding
frp --http 8080
- View current configuration (sensitive information is automatically hidden)
frp --config
Option | Description | Example |
---|---|---|
--tcp | TCP port forwarding (LOCAL:REMOTE) | --tcp 8000:9999 |
--udp | UDP port forwarding | --udp 5353:53 |
--http | HTTP forwarding | --http 8080 |
--https | HTTPS forwarding | --https 8443 |
--set | Set configuration parameters | --set server=1.1.1.1:7000 |
--config | Show current configuration | --config |
--save | Save configuration preset | --save 3306:3307 --conf mysql |
run | run --conf file | run mysql |
frp --tcp 3306:13306
-
Before first use:
- Download the frpc binary files
frpc.exe
for your platform - Place them in the following path
./frpinit
- Download the frpc binary files
-
Windows systems may require:
- Running as administrator
- Allowing firewall communication
-
Uninstall the tool:
.\uninstall.ps1
- Dynamically generate TOML configuration files
- Automatically manage the lifecycle of temporary files
- Safely terminate child processes using process signals
- Persistent configuration storage
> 📌 Tip: It is recommended to use with the latest frps v0.61.1 version for the best compatibility.