Firewall

CLI & GUI Workflows for Network Protection

🧱 pfSense (Web GUI)

ActionPurpose
Firewall > RulesCreate or modify traffic rules
Firewall > NATConfigure port forwarding
Status > System LogsView firewall activity and alerts
Diagnostics > Packet CaptureCapture traffic for analysis
System > Advanced > Firewall/NATEnable/disable firewall features

🐧 UFW (Linux CLI)

CommandPurpose
sudo ufw enableActivate firewall
sudo ufw statusCheck current rules
sudo ufw allow 22Allow SSH traffic
sudo ufw deny 80Block HTTP traffic
sudo ufw delete allow 22Remove rule

🪟 Windows Firewall

Tool/CommandPurpose
Control Panel > Windows Defender FirewallAccess GUI settings
Advanced SettingsConfigure inbound/outbound rules
CMD: `netsh advfirewall show allprofiles`View firewall profiles
CMD: `netsh advfirewall set currentprofile state off`Disable firewall (not recommended)
PowerShell: `New-NetFirewallRule`Create custom rule via PowerShell