{"id":2296,"date":"2012-03-15T20:53:01","date_gmt":"2012-03-15T12:53:01","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2296"},"modified":"2023-04-28T09:49:40","modified_gmt":"2023-04-28T09:49:40","slug":"how-to-install-iptables-on-linux-rhel-5centos-5-server","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-iptables-on-linux-rhel-5centos-5-server\/","title":{"rendered":"How to Install iptables on Linux RHEL 5\/CentOS 5 server"},"content":{"rendered":"<p>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 this post i will show the quick steps on how to install iptables on CentOS 5.7. This steps may working on other version such as CentOS 5.1, CentOS 5.2, CentOS 5.3, CentOS 5.4, CentOS 5.5, CentOS 5.6, RHEL 5.4 and RHEL 5.5.<\/p>\n<p>1. To install iptables, simply run this command :<\/p>\n<pre>\n[root@CentOS57 ~]# yum install iptables -y\nLoaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirror.oscc.org.my\n * extras: mirror.oscc.org.my\n * rpmforge: ftp-stud.fht-esslingen.de\n * updates: mirror.oscc.org.my\nSetting up Install Process\nResolving Dependencies\n--> Running transaction check\n---> Package iptables.i386 0:1.3.5-9.1.el5 set to be updated\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n====================================================================================================\n Package                 Arch                Version                      Repository           Size\n====================================================================================================\nInstalling:\n iptables                i386                1.3.5-9.1.el5                base                238 k\n\nTransaction Summary\n====================================================================================================\nInstall       1 Package(s)\nUpgrade       0 Package(s)\n\nTotal download size: 238 k\nDownloading Packages:\niptables-1.3.5-9.1.el5.i386.rpm                                              | 238 kB     00:02\nRunning rpm_check_debug\nRunning Transaction Test\nFinished Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n  Installing     : iptables                                                                     1\/1\n\nInstalled:\n  iptables.i386 0:1.3.5-9.1.el5\n\nComplete!\n<\/pre>\n<p>2. How to check iptables status on Linux RHEL 5\/CentOS 5 server :<\/p>\n<pre>\n[root@CentOS57 ~]# service iptables status\nFirewall is stopped.\n<\/pre>\n<p>or<\/p>\n<pre>\n[root@CentOS57 ~]# \/etc\/init.d\/iptables status\nFirewall is stopped.\n[root@CentOS57 ~]#\n<\/pre>\n<p>3. How to start iptables on Linux RHEL 5\/CentOS 5 server :<\/p>\n<pre>\n[root@CentOS57 ~]# service iptables start\n<\/pre>\n<p>or<\/p>\n<pre>\n[root@CentOS57 ~]# \/etc\/init.d\/iptables start\n<\/pre>\n<p>4. How to stop iptables on Linux RHEL 5\/CentOS 5 server :<\/p>\n<pre>\n[root@CentOS57 ~]# service iptables stop\n<\/pre>\n<p>or<\/p>\n<pre>\n[root@CentOS57 ~]# \/etc\/init.d\/iptables stop\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230;<\/p>\n","protected":false},"author":6,"featured_media":1312,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055,1145,1158],"tags":[1244,1248,2089,1519,1536,1546],"class_list":["post-2296","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-firewall","category-iptables","tag-centos","tag-centos-5-7","tag-configuration","tag-iptables","tag-linux","tag-linux-utilities"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2296"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2296\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/1312"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}