sudo firewall-cmd --list-all
sudo firewall-cmd --get-services
x
to name of a service from abovesudo firewall-cmd --info-service=x
sudo firewall-cmd --reload
--permanent
as-needed to allow the rule to persistsudo firewall-cmd --add-service=x
sudo firewall-cmd --remove-service=x
--permanent
as-needed to allow the rule to persisttcp
to udp
as-neededsudo firewall-cmd --add-port=x/tcp
sudo firewall-cmd --remove-port=x/tcp