๐ฅ fwtui
June 8, 2025 ยท View on GitHub
fwtui is a terminal-based UI built in Go to help you manage UFW (Uncomplicated Firewall) rules with ease. No more memorizing complex command-line syntax โ fwtui gives you a clean, responsive, and keyboard-driven interface to view and manage firewall rules directly from your terminal.

โจ Features
-
๐ Rule Management
- View all active UFW rules and default policies
- Add custom rules with:
- Specific ports and protocols
- Traffic direction (in/out)
- Interfaces, source/destination IPs
- Comments for better organization
- Delete rules easily using keyboard shortcuts
- Export rules into a single executable script for backup or sharing
-
๐ก๏ธ Default Policies
- View and change default policies for incoming and outgoing traffic
-
๐ Profiles
- Create reusable rule profiles
- Install predefined profiles in one click
- List all available profiles for quick management
-
๐ Advanced Views
- Show full raw UFW rules
- View added rules only
- Inspect built-in rules
- View currently listening ports and services
-
๐พ Automatic Backup
- UFW rules are automatically backed up at every app startup
-
โจ๏ธ Full Keyboard Navigation
- No mouse needed โ ideal for terminal lovers and remote server admins
๐ Installation
The simplest way to install:
wget https://github.com/Beny406/fwtui/releases/latest/download/fwtui -O fwtui
chmod +x fwtui
๐ Running
sudo ./fwtui
The app needs sudo because managing UFW firewall rules requires administrative privileges. Without it, the app canโt apply or modify system firewall settings.
๐ฎ Controls
| Key | Action |
|---|---|
| โ / โ | Navigate fields and lists |
| โ / โ | Change selection in dropdowns |
| Type | Edit text fields |
| Enter | Submit or apply changes |
| Esc | Cancel or go back |
| d | Delete selected rule or item |
| space | Select item |