iptablesis the firewall, which is installed by default on most Linux distributions, including CentOS.
Sometimes you need to stop
iptablesto troubleshoot network-related problems.
Also, if there is a problem with the newly installed program – in the appropriate forums you can find an advice to temporarily stop the firewall to check whether the program will work without it.
From this article, you will learn how to check the current status of the firewall
iptablesand how to turn it off or turn it on in CentOS.
Privileges: The following commands must be executed with
Iptables: Check Status
Good advice: Disconnected
iptables, and the necessary program did not work? Try disabling
SELinux! Read more →
# service iptables status
# service ip6tables status
Iptables: Disable Firewall
iptables, you must understand that it serves the security of the Linux system and, when properly configured, helps protect the server from various network attacks.
iptablesis not the best idea, if you clearly do not know what you are doing and why.
iptablesacceptable only if you do this on your local machine for tests and security can be neglected, or if there is already another configured firewall in front of the server.
Stop and remove from startup (disable)
# service iptables save
# service iptables stop
# chkconfig iptables off
# service ip6tables save
# service ip6tables stop
# chkconfig ip6tables off
Iptables: Enable Firewall
Enable and add to startup
# service iptables start
# chkconfig iptables on
# service ip6tables start
# chkconfig ip6tables on
Join our reader's list to start receiving latest updates.
Get free Tech, Linux tips and resources delivered directly to your inbox.