
Run the following command to check whether iptables is started: systemctl status iptables If a similar output is displayed, iptables is started. Run the following command to start iptables: systemctl start iptables Run the following command to install iptables: yum install -y iptables-services Run the following command to disable the startup of Filewalld.When the service is in the active state, run the following command to disable the Firewalld service: systemctl stop firewalld.The inactive field indicates that the service is disabled. Run the following command to view the service status: systemctl status firewalld A similar output is displayed: the active field indicates that the service is running.For more information about how to connect to a CentOS 7.4 instance, seeconnect to a Linux instance using username and password. To prevent conflicts with iptables, you must first disable the boot of Filewalld. View and modify the default iptables rulesĭisable Filewalld from starting at startup.Start iptables and enable it at startup.


Disable Filewalld from starting at startup.This article mainly introduces the following contents.
