Disable The Iptables Firewall in CentOS/RHEL

Iptables is a built in firewall in most Linux distributions.

Sometimes it is required to stop iptables for troubleshooting the network related problems.

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 ip6tables status
 


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 ip6tables save
service ip6tables stop
chkconfig ip6tables off

 

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 ip6tables start
chkconfig ip6tables on

No comments:

Post a Comment