Rocky Linux commands

Manage firewalld

Stuff n things

Open Port

sudo firewall-cmd --zone=public --add-port=80/tcp sudo firewall-cmd --zone=public --add-port=9987/udp

Remove port opening

sudo firewall-cmd --zone=public --remove-port=80/tcp sudo firewall-cmd --zone=public --remove-port=9987/udp

List rules etc

firewall-cmd --list-all

Enable firewalld

systemctl enable --now firewalld

Disable firewalld

systemctl disable firewalld --now

Reload firewalld

firewall-cmd --reload

Updates

dnf update

Last updated