Prerequisites
Before starting with the tutorial, make sure you are logged in as a user with sudo privileges.
Disable FirewallD
To disable firewalld on your system follow these steps:
- Type the following command to stop the FirewallD service:
sudo systemctl stop firewalld
- Disable the FirewallD service to start automatically on system boot:
sudo systemctl disable firewalld
- Mask the FirewallD service to prevent it from being started by another services:
sudo systemctl mask --now firewalld
Install and Enable Iptables
Perform the following steps to install Iptables on a CentOS 7 system:
- Run the following command to install the
iptables-service
package from the CentOS repositories:sudo yum install iptables-services
- Once the package is installed start the Iptables service:
sudo...