Firewalld Cheat sheet [CENTOS7]

I will be adding to this guide as and when I do firewalld commands.

Allow a port:
sudo firewall-cmd –zone=public –add-port=xxxx/tcp

Remove a port:
firewall-cmd –zone=public –remove-port=xxxx/tcp

List current rules:
firewall-cmd –list-all

You May Also Like

About the Author: trader418

Leave a Reply

Your email address will not be published. Required fields are marked *