{"id":2986,"date":"2012-05-07T22:55:41","date_gmt":"2012-05-07T14:55:41","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2986"},"modified":"2023-04-28T09:49:20","modified_gmt":"2023-04-28T09:49:20","slug":"how-to-install-iptables-on-centos-5-8","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-iptables-on-centos-5-8\/","title":{"rendered":"How to Install Iptables on CentOS 5.8"},"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 linux CentOS 5.8 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, CentOS 5.6, CentOS 5.7, RHEL 5.4 and RHEL 5.5.<\/p>\n<p>If your server does not installed iptables package, you will get this error message :<\/p>\n<pre>\n[root@centos58 ~]# service iptables status\niptables: unrecognized service\n<\/pre>\n<p>Simply run the following command to install iptables on Linux centOS 5.8 server.<\/p>\n<pre>\n[root@centos58 ~]# yum install iptables -y\n<\/pre>\n<p>Example :<\/p>\n<pre>\n[root@centos58 ~]# 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 * 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:01\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","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,1158],"tags":[1244,2089,1519,1536,1546],"class_list":["post-2986","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-iptables","tag-centos","tag-configuration","tag-iptables","tag-linux","tag-linux-utilities"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2986","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=2986"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2986\/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=2986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}