How To Disable Iptables Firewall In Redhat/CentOS Linux

IPtable is a firewall application by default installed in all the Linux flavors. It is having great capabilities in blocking and unblocking content. Some times its required to disable iptables to troubleshooting network related configurations.  To disable iptables in Redhat/CentOS we have to use the following commands.

	#service iptables stop
	#service iptables save
	#chkconfig iptables off

To be more meaning full way to stop iptables on all the run levels use below commands.

	#chkconfig --level 123456 iptables off

If you want to remove iptables completly from system we can use rpm command to do this.

	rpm -e iptables


The following two tabs change content below.
Mr Surendra Anne is from Vijayawada, Andhra Pradesh, India. He is a Linux/Open source supporter who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. He works as Devops Engineer with Taggle systems, an IOT automatic water metering company, Sydney . You can contact him at surendra (@) linuxnix dot com.
  • Laith

    And once you want to remove it from the system:
    #rpm -e iptables

  • drexciya

    #chkconfig –level 123456 iptables off
    should be
    #chkconfig -–level 123456 iptables off
    Apart from that it works fine.