Monday, January 5, 2015

Disable The Iptables Firewall in CentOS/RHEL

Check the Status of The Iptables Firewall
Check the Status of The Iptables IPv4 Firewall
Run the following command to check the status of the iptables IPv4 firewall :
# service iptables status

Check the Status of The Iptables IPv6 Firewall
Run the following command to check the status of the iptables IPv6 firewall :
# service iptables status

Disable The Iptables Firewall
Use the following commands to stop the Iptables Firewall and remove it from autostart.

Disable The Iptables IPv4 Firewall
Run the following commands to stop the iptables firewall for IPv4 :
# service iptables save
# service iptables stop
# chkconfig iptables off

Disable The Iptables IPv6 Firewall
Run the following commands to stop the iptables firewall for IPv6 :
# service iptables save
# service iptables stop
# chkconfig iptables off

Enable The Iptables Firewall
Use the following commands to start the Iptables Firewall and add it to autostart.

Enable The Iptables IPv4 Firewall
Run the following commands to start the iptables firewall for IPv4 :
# service iptables start
# chkconfig iptables on

Enable The Iptables IPv6 Firewall
Run the following commands to start the iptables firewall for IPv6 :
# service iptables start
# chkconfig iptables on

No comments:

Post a Comment