How It Works
The command comes from GitHub, where you can read every line. It only reads: it changes no rule or setting, installs nothing, and deletes its temporary files when it finishes. Run it with sudo, because firewall rules can only be read by root.
What It Reads
Which firewall tools are installed and running (ufw, firewalld, nftables, iptables, CSF, Docker and fail2ban), their rules for IPv4 and IPv6, and every service listening on the server with the name of its program.
What It Sends
Those rules with every specific IP address replaced by ADDR before anything leaves your server, and the list of listening ports. Never your server’s hostname or its own addresses, file contents or command lines.
What You Get
Every listening service marked Open to All, Some Addresses, Blocked or This Server Only, worked out the way the kernel does it: a connection has to get past every firewall rule set on the server. Then what to fix first: no firewall, IPv6 left open, databases and admin services open to the internet, SSH with no limit on login attempts, firewall tools fighting each other, and Docker publishing ports past ufw or firewalld. Last, rules for your own firewall that keep the services you run open and everything risky shut.