๐Ÿ”ฅ 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.

fwtui demo


โœจ 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

KeyAction
โ†‘ / โ†“Navigate fields and lists
โ† / โ†’Change selection in dropdowns
TypeEdit text fields
EnterSubmit or apply changes
EscCancel or go back
dDelete selected rule or item
spaceSelect item