firewall-cmd is used for package management or system administration in the RHEL family. Consult the distribution manual for release-specific behaviour.
sudo firewall-cmd --list-allfirewall-cmd is used for package management or system administration in the RHEL family. Consult the distribution manual for release-specific behaviour.
firewall-cmd [options]firewall-cmd is used for package management or system administration in the RHEL family. Consult the distribution manual for release-specific behaviour.
sudo firewall-cmd --list-allShow command help and options where supported.
firewall-cmd --help| Option / clause | Description |
|---|---|
--state / --list-all | Check firewalld state and show the selected zone configuration. |
--zone=<zone> | Select a firewall zone. |
--add-port=<port>/<protocol> | Add a port rule to runtime or permanent configuration. |
--permanent | Write changes to permanent configuration; reload to activate them. |
--reload | Reload permanent configuration into runtime state. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.