Table of Contents

Firewalld

List Active Rules

sudo firewall-cmd --list-all

List Available Services

sudo firewall-cmd --get-services

Show Service Info

sudo firewall-cmd --info-service=x

Reload

sudo firewall-cmd --reload

Add/Remove Service

sudo firewall-cmd --add-service=x
sudo firewall-cmd --remove-service=x

Add/Remove Port

sudo firewall-cmd --add-port=x/tcp
sudo firewall-cmd --remove-port=x/tcp