netscrew.dev/commands/firewall
Command

n firewall

Firewall rules & port blocking audit

Short forms:fw · fir · ufw · iptables

Usage — n firewall

═══════════════════════════════════════════════════════════════════════════════
  Netscrew ("n") — firewall (fw, fir, ufw) — Firewall rules & port-blocking audit
═══════════════════════════════════════════════════════════════════════════════

USAGE:
  n fw .                               firewall status on this machine
  n fw . <port>                        is a specific port allowed?
  n fw . --harden                      suggest a ufw setup matching what's actually listening

Target: . = this machine · <host> = remote
Deeper: n fw -h = the concept/theory behind this command

The concept behind it — n firewall -h

═══════════════════════════════════════════════════════════════════════════════
  NETSCREW GUIDE: Firewall Status & Port Rules ("n fw")
═══════════════════════════════════════════════════════════════════════════════

WHAT THIS CHECKS:
  Tests whether host firewall engines (UFW, iptables, nftables on Linux, or
  Windows Defender Firewall on Windows) are blocking inbound or outbound traffic.

USAGE:
  • n fw            Check general firewall status (active/inactive) and default policy
  • n fw 8080       Verify if port 8080 is specifically allowed or blocked by a rule