#firewall

19 solutions

Block an App From Accessing the Internet (Firewall Rule)
Windowssecuritypowershellfirewall

Create an outbound Windows Firewall rule that cuts a program off from the network.

Medium risk ✓ 2026-09-18
Check and Enable the macOS Firewall with socketfilterfw
macOSsocketfilterfwsecurityfirewall

Turn the built-in macOS application firewall on or off, and allow specific apps, via the socketfilterfw command.

Medium risk ✓ 2026-09-18
Check whether the Windows firewall is enabled
Windowssecuritystatusfirewall

Show the on/off state of all three firewall profiles with one netsh command.

Medium risk ✓ 2026-09-18
Reset Windows Firewall to Defaults (netsh advfirewall reset)
Windowsnetshsecurityfirewall

Revert firewall rules and profiles to the out-of-box configuration with one command.

Medium risk ✓ 2026-09-18
Open a Port in firewalld with firewall-cmd
Linuxportsfirewalldfirewall

Permanently allow a TCP or UDP port through firewalld on Fedora, RHEL, or CentOS so your web app or game server is reachable.

Medium risk ✓ 2026-09-18
Show the full firewalld configuration with firewall-cmd --list-all
Linuxportsfirewalldfirewall

One command to dump the default zone's services, open ports, and rich rules — the firewalld equivalent of a ruleset view.

Medium risk ✓ 2026-09-17
Open a firewall port on Windows (New-NetFirewallRule)
Windowsportspowershellfirewall

Create an inbound allow rule for a TCP/UDP port with one PowerShell cmdlet, and delete it cleanly afterwards.

Medium risk ✓ 2026-09-17
Block an IP Address with a Windows Firewall Rule
Windowssecuritypowershellfirewall

Create a deny rule for an IP or subnet with one PowerShell command — no GUI digging required.

Low risk ✓ 2026-09-19
Allow ping (ICMP echo) through the Windows firewall
Windowspingnetworkfirewall

Create an inbound firewall rule for ICMPv4 echo requests so the PC answers ping.

Medium risk ✓ 2026-09-18
Control the macOS Firewall with socketfilterfw
macOSsocketfilterfwfirewall

The pf-style GUI firewall is driven by /usr/libexec/ApplicationFirewall/socketfilterfw — fully scriptable.

Medium risk ✓ 2026-09-17
Read Windows Firewall state and rules with netsh
Windowsnetworksecurityfirewall

Query whether Defender Firewall is enabled per profile (Domain/Private/Public) and list the rules already in place — without touching the GUI.

Medium risk ✓ 2026-09-17
Check fail2ban bans with `fail2ban-client status`
Linuxfail2bansshbrute-force

fail2ban runs silently for months — when you suddenly can't SSH in from your own IP, this is the command that tells you whether the jail banned you.

Medium risk ✓ 2026-09-17