sample commands:

#show current ruleset
firewall-cmd --list-all

#show actual rules (permanent means > rules are there also after reboot)
firewall-cmd --list-service
firewall-cmd --list-service --permanent


firewall-cmd --add-service=http
firewall-cmd --remove-service=http
firewall-cmd --runtime-to-permanent
firewall-cmd --add-service=http --permanent
firewall-cmd --reload

#handle icmp types
firewall-cmd --add-icmp-block=echo-request
firewall-cmd --list-icmp-blocks
firewall-cmd --remove-icmp-block=echo-request
firewall-cmd --get-icmptypes


further reading:
- https://www.server-world.info/en/note?os=Rocky_Linux_8&p=firewalld&f=1

computer2know :: thank you for your visit :: have a nice day :: © 2024