An Introduction to Firewalld


In this video, we explain many aspects of firewalld, including starting, stopping, management, and configuration of the service.

Commands used:

systemctl enable firewalld
systemctl start firewalld
systemctl stop firewalld
systemctl restart firewalld
systemctl status firewalld
firewall-cmd –permanent –add-port=22/TCP
firewall-cmd –permanent –remove-port=444/tcp
firewall-cmd –permanent –add-service=ssh
firewall-cmd –permanent –remove-service=mysql
firewall-cmd –permanent –add-source=192.168.1.100
firewall-cmd –permanent –add-source=192.168.1.0/24
firewall-cmd –permanent –remove-source=192.168.1.100

firewall-cmd –permanent –add-rich-rule=”rule family=’ipv4′ source address=’192.168.1.100′ reject”

firewall-cmd –permanent –add-rich-rule=”rule family=’ipv4′ source address=’192.168.1.0/24′ reject”

firewall-cmd –permanent –add-rich-rule=’rule family=”ipv4″ source address=”192.168.1.100″ port protocol=”tcp” port=”3306″ accept’

firewall-cmd –permanent –remove-rich-rule=’rule family=”ipv4″ source address=”192.168.1.100″ port protocol=”tcp” port=”3306″ accept’

firewall-cmd –reload

firewall-cmd –list-all

sudo yum install firewall-config

The related article for this article can be found here: https://www.liquidweb.com/kb/an-introduction-to-firewalld/

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/ or for more information on our Dedicated server line, visit: https://www.liquidweb.com/products/dedicated/

Video by: Justin Palmer


Duration: 00:03:54
Publisher: Liquid Web
You can watch this video also at the source.