How to disable the firewall (iptables) on Linux CentOS or RedHat

Practice



To disable the firewall (i.e. iptables) on Linux CentOS (or RedHat):
$ sudo /etc/init.d/iptables stop

If you also need to disable it from starting automatically at OS boot:
$ sudo chkconfig iptables off


To turn it back on:
$ sudo /etc/init.d/iptables start

and also add it back to autostart:
$ sudo chkconfig iptables on

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Computer networks"

Terms: Computer networks