Linux system-- Overview of Firewalld Firewall commands
Firewalld Firewall Command Overview Command list option description-- get-default-zone displays the default area for a network connection or interface-- set-default-zone=\ sets the default area for a network connection or interface-- get-active-zones displays all areas that have been activated-- get-zone-of-interface=\ shows the area bound by the specified interface-- zone=\-- add-interface=\ for the specified interface binding area-- zone= \-- change-interface=\ changes the bound network interface for the specified area-- zone=\-- remove-interface=\ deletes the bound network interface for the specified area-- query-interface=\ queries whether the zone contains an interface-- list-all-zones displays all zones and their rules [--zone=\]-- list-all shows all rules for all specified areas and descriptions of command options related to services [--zone=\]-- list-services displays all services allowed for access in a specified area [--zone=\]-- add-service=\ sets a service that is allowed to be accessed for a specified region [--zone=\]-- remove-service=\ deletes a service that has been set for access in a specified region [--zone=\]-- query-service=\ queries whether a service and port are enabled in the specified area. Related command option description [--zone=\]-- list-ports displays all port numbers allowed to be accessed in the specified area [--zone=\]-- add-port=\ [--timeout=\] enable zone port and protocol combination Optional configuration timeout [--zone=\]-- remove-port=\ [-\] /\ disable zone port and protocol combination [--zone=\]-- query-port=\ [-\] /\ query whether port and protocol combination blocking ICMP is enabled in the area. About the command option description [--zone=\]-- list-icmp-blocks displays all ICMP types blocked in the specified area [--zone=\] -- add-icmp-block=\ sets a blocked ICMP type for the specified region [--zone=\]-- remove-icmp-block=\ deletes a blocked ICMP type in the specified area [--zone=\]-- query-icmp-block=\ queries the ICMP blocking function in the specified area