firewall-cmd --state # Display whether service is running
firewall-cmd --reload # To reload the permanent rules without interrupting existing persistent connections
firewall-cmd --get-default-zone
firewall-cmd --get-active-zones
firewall-cmd --list-all
To add interface “eth1” to “public” zone.
firewall-cmd --zone=public --change-interface=eth1
To add “samba and samba-client” service to a specific zone. You may include, “permanent” flag to make this permanent change.
firewall-cmd --zone=public --add-service=samba --add-service=samba-client --permanent
firewall-cmd --list-ports
firewall-cmd --zone=public --add-port=5000/tcp