How To Set Up a Firewall Using FirewallD on CentOS 7

  • sudo yum install firewalld
sudo systemctl enable firewalld
sudo reboot
sudo firewall-cmd --state
firewall-cmd --get-default-zone
firewall-cmd --get-active-zones
sudo firewall-cmd --list-all
firewall-cmd --get-zones
sudo firewall-cmd --zone=home --list-all
sudo firewall-cmd --list-all-zones | less
sudo firewall-cmd --zone=home --change-interface=eth0
firewall-cmd --get-active-zones
sudo firewall-cmd --set-default-zone=home
  • 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 Enable Firewalld on centos 7

sudo systemctl status firewalld sudo systemctl enable firewalldsudo systemctl unmask --now...

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...