You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A beautiful, beginner-friendly interactive firewall management TUI for learning cybersecurity
✨ Features
Feature
Details
🎨 Beautiful UI
Gradient colors, emoji indicators, rich panels
⌨️ Autocomplete
Tab-complete every command, parameter, and value
💡 Live Hints
Context-aware hints appear as you type
📜 Command History
↑↓ arrow keys to browse history
🚦 Live Monitor
Real-time traffic visualization
📊 Statistics
Full dashboard with bar charts
🛡️ 10 Default Rules
Pre-built security ruleset
🔧 Full Rule CRUD
Add, remove, enable, disable, toggle rules
🚫 IP Management
Block/unblock/whitelist IPs instantly
💾 Import/Export
Save & restore rules as JSON
🎮 Traffic Simulator
Test your rules with fake traffic
⌨️ Function Keys
F1=Help, F2=Rules, F5=Stats
🚀 Quick Start
1. Install Dependencies
pip install -r requirements.txt
2. Run FirewallX
python firewallx.py
📖 Command Reference
🛡️ Rule Management
# Add rules
add rule MyRule ALLOW TCP BOTH --dst-port 443
add rule BlockIP DENY ANY BOTH --src-ip 10.0.0.5 --priority 1
add rule LogHTTP LOG TCP IN --dst-port 80 --desc "Monitor HTTP"# Manage rules
list rules # Show all rules
list rules --action DENY # Filter by action
list rules --enabled # Only active rules
remove rule MyRule # Delete a ruleenable rule default-006 # Enable a disabled rule
disable rule Allow-HTTP # Disable a rule
toggle rule BlockHTTP # Toggle on/off
flush rules # Remove all custom rules
🚫 IP Management
block ip 192.168.1.100 # Block an IP
block ip 10.0.0.5 --reason "Port scanner"# Block with reason
unblock ip 192.168.1.100 # Unblock
whitelist ip 192.168.1.1 --reason "Gateway"# Always allow
show blocked # List blocked IPs
show whitelist # List whitelist
📊 Monitoring
monitor # Live traffic monitor
monitor --filter DENY # Only show blocked traffic
simulate # Simulate 20 random packets
simulate --count 100 --speed fast
show log # Traffic event log
show log --lines 50 --action DENY
show stats # Statistics + charts
show top # Top blocked IPs
dashboard # Full visual dashboard
💾 Import / Export
export# Export to timestamped fileexport --file my_rules.json # Export to specific file
import my_rules.json # Import rules
⚙️ Utilities
help# Full command referencehelp block ip # Detailed command help
version # Version info
clear # Clear screen + welcome
reset stats # Reset statistics
quit # Exit FirewallX
FirewallX is an educational tool for learning firewall concepts.
It does not modify your actual system firewall.
For production use, use: iptables, nftables, ufw, pf, or Windows Firewall.
Made with ❤️ using Rich + Prompt Toolkit
About
Beautiful interactive TUI firewall manager for learning cybersecurity. Rule management, IP blocking, live monitoring & dashboard.