HowTo Disable The Iptables Firewall in Linux

Disable / Turn off Linux Firewall (Red hat/CentOS/Fedora Core

 

Type the following two commands (you must login as the root user):
# /etc/init.d/iptables save
# /etc/init.d/iptables stop

Turn off firewall on boot:
# chkconfig iptables off

Enable / Turn on Linux Firewall (Red hat/CentOS/Fedora Core)

Type the following command to turn on iptables firewall:
# /etc/init.d/iptables start
Turn on firewall on boot:
# chkconfig iptables on

To restore or turn on firewall type the following command:
# iptables-restore < /root/firewall.rules

 


Was this article helpful?

mood_bad Dislike 1
mood Like 0
visibility Views: 13531