How to Remove iptables on Linux RHEL 5/CentOS 5 server

Share this Article :

Iptables is used to set up, maintain, and inspect the tables of IPv4 packet filter rules in the Linux kernel. It can run as a host based firewall if properly configured. Iptables places rules into predefined chains (INPUT, OUTPUT and FORWARD) that are checked against any network traffic packets. In certain case, system administrator will need to disable and remove iptables due to some reasons. In this post, i will show the quick step to remove iptables on linux CentOS 5.7 server. This steps may working on other version such as CentOS 5.1, CentOS 5.2, CentOS 5.3, CentOS 5.4, CentOS 5.5 and CentOS 5.6.

Also Read :   How to Recover the Password for root on CentOS 5.7

Check installed iptables package :

[[email protected] ~]# rpm -qa iptables

To remove iptables using rpm command, simply run this :

[[email protected] ~]# rpm -e iptables-1.3.5-9.1.el5

To remove iptables using yum command, simply run this :

[[email protected] ~]# yum install iptables -y

Leave a Reply