tendactl
is a command-line utility for managing your Tenda router’s configuration and status. It provides subcommands for viewing connected clients, adding or removing port forwarding rules, and checking the router’s overall status.
- View connected devices with upload/download speeds and identify guest network clients.
- Manage port forwarding (NAT) rules to open or close specific ports.
- Check detailed router status including WAN IP, firmware version, and Wi-Fi configuration.
- Ensure you have Go (1.18+) installed.
- Clone or download this repository.
- Navigate to the project’s root folder and build the CLI:
go build -o tendactl
- Move the compiled binary to a directory in your system’s PATH (optional):
mv tendactl /usr/local/bin/
- Confirm installation:
tendactl --help
Below are the primary subcommands available under tendactl
. Run each command with --help
to see more details and available flags.
• Check Router Status
Shows WAN IP, up/down speed, Wi-Fi configuration (2.4/5 GHz), number of connected clients, firmware version, and more:
tendactl status
• Check Online Clients
Displays currently connected devices, upload/download speeds (in KB/s), and identifies guest network clients:
tendactl online
• Manage Port Forwarding (NAT) Rules
View all existing port forwarding rules:
tendactl vs
Add a new forwarding rule:
tendactl vs add <ip> <inPort> [outPort] [protocol]
Where:
• is the target device’s IP address.
• is the internal port on the device.
• [outPort] optionally specifies the corresponding external port (defaults to if not specified).
• [protocol] can be:
0 → TCP & UDP
1 → TCP
2 → UDP
Remove an existing forwarding rule:
tendactl vs delete <ip> <inPort> <outPort> <protocol>
See LICENSE for details.