How to Enable Firewalld on centos 7

sudo systemctl status firewalld
sudo systemctl enable firewalld
sudo systemctl unmask --now firewalld
sudo systemctl enable firewalld
sudo systemctl start firewalld
sudo systemctl status firewalld
sudo firewall-cmd  --get-zones

sudo firewall-cmd --get-default-zone

sudo firewall-cmd --get-active-zones

sudo firewall-cmd --list-all

sudo firewall-cmd --zone=work --list-all
sudo firewall-cmd --zone=home --change-interface=eth1

firewall-cmd --get-active-zones
sudo firewall-cmd --set-default-zone=work
sudo firewall-cmd --get-default-zone
  • Firewall, Centos, Linux, Terminal, SSH
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to backup sql database with terminal

To dump a single database, run the command below to dump the database and write the output text...

How To Set Up a Firewall Using FirewallD on CentOS 7

sudo yum install firewalld sudo systemctl enable firewalld sudo reboot sudo...

How to Install VIM editor on CentOS

vim sudo yum install vim-enhanced -y  

How to Test Internet Speed on Linux

Step 1: Python can be installed on your machine by executing the command that is provided in the...