Site icon installvirtual

How to start and enable firewall on CentOS 7 command line

How to start firewall on CentOS 7 command line

In this tutorial, we will learn how to start firewall on CentOS 7 command line.

Firewalld provides a dynamically managed firewall with support for network/firewall zones that define the trust level of network connections or interfaces. It has support for IPv4, IPv6 firewall settings, ethernet bridges, and IP sets. There is a separation of runtime and permanent configuration options. It also provides an interface for services or applications to add firewall rules directly.

Source: http://www.firewalld.org/

You might also like: How to install Piwik on centos 7

Start Firewall on CentOS

You can execute the following command to start the firewall on centos with root user:

systemctl start firewalld

Enable Firewall on Centos 7

Just execute the following command to enable the firewall on boot.

systemctl enable firewalld

We have enabled and started the firewall on CentOS 7.

Learn Next: How to stop /disable firewall CentOS 7 command line

 

Exit mobile version