Category: 

What is Iptables?

Article Details
  • Written By: L.K. Blackburn
  • Edited By: A. Joseph
  • Last Modified Date: 22 September 2016
  • Copyright Protected:
    2003-2016
    Conjecture Corporation
  • Print this Article
Free Widgets for your Site/Blog
Built at the request of Dag Hammarskj√∂ld, the United Nations Headquarters has a meditation room dedicated to silence.   more...

October 1 ,  1890 :  Yosemite National Park was established.  more...

Iptables is firewall software used in Linux software distributions that works by filtering packets through a system of tables containing a chain of rules for packet filtering. Chains and rule sets contained in the firewall determine whether a packet is allowed and, if so, how it is handled. The tables themselves are kept in memory, and the iptables software provides the configuration of the chains within the tables.

Each packet of data sent over a network has identifying information that is read by the receiving system. Iptables software takes this information and determines what to do with it by moving it through a series of chained rules. The rules work to classify the packet based on its identifying information, such as an Internet protocol (IP) address. After it has been identified, the packet moves from one chain to the next, depending on the configured rule set. The chains determine how the system distributes the packet.

The rules are criteria for how a packet moves within the iptables decision chains. The packet will move from one rule to the next, as long it as meets the requirements for each chain. Each packet will be either accepted, forwarded, dropped, queued, reset or returned.

Ad

Acceptance moves the packet through to the next chain, and dropping removes the packet completely. If the packet is queued, it is moved and addressed in a separate queue handler within the user space. When a packet is returned, it moves back to the last accepted chain.

Iptables is a user space application, meaning that it operates within a segregated space within the Linux kernel features. The criteria used to identify and distribute packets by the firewall are completely configurable and customizable using a set of command options. This includes setting up allowance for established sessions, blocking types of traffic and access and allowing only specific traffic on certain ports. The software also can be set up to log all incoming traffic or to log only specific types of traffic.

The Iptables software is maintained by the Nefilter project and first began in 1998. Beyond being used as a firewall and packet manipulation software, Iptables also can be used for IP masquerading, transparent proxy implementation and log analysis. This enables the firewall to detect and prevent potentially malicious activity, further protecting the system. The software also is set up for configuration with third-party extensions, because it contains several layers of application programming interfaces. Iptables is typically installed by default on most distributions of Linux operating systems.

Ad

You might also Like

Recommended

Discuss this Article

Post your comments

exception 'Exception' with message 'error writing captcha: Duplicate entry '2147483647' for key 'PRIMARY'' in /ssd/www/wisegeek/public_html/_core/classes/public/Captcha.php:44
Stack trace:
#0 /ssd/www/wisegeek/public_html/_core/controls/public/ControlDiscussionPostBox.php(324): Captcha->createCaptcha()
#1 /ssd/www/wisegeek/public_html/framework/classes/Control.php(104): ControlDiscussionPostBox->preRender(false)
#2 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): Control->render()
#3 /ssd/www/wisegeek/public_html/tpl/default-nocustom-lu/pages/public/article/article.htm(526): Control->__toString()
#4 /ssd/www/wisegeek/public_html/framework/classes/Control.php(300): require('/ssd/www/wisege...')
#5 /ssd/www/wisegeek/public_html/framework/classes/Control.php(309): Control->requireTpl('pages/public/ar...', Object(PageArticleCom), true)
#6 /ssd/www/wisegeek/public_html/framework/classes/Control.php(131): Control->renderTpl('pages/public/ar...', Object(PageArticleCom))
#7 /ssd/www/wisegeek/public_html/framework/classes/FormDataControl.php(87): Control->renderTemplate()
#8 /ssd/www/wisegeek/public_html/framework/classes/Control.php(109): FormDataControl->renderTemplate()
#9 /ssd/www/wisegeek/public_html/framework/classes/ScriptPage.php(50): Control->render(false)
#10 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): ScriptPage->render()
#11 /ssd/www/wisegeek/public_html/framework/classes/Page.php(97): Control->__toString()
#12 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(443): Page->processRequest()
#13 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(7): PublicFrontController->renderPage()
#14 /ssd/www/wisegeek/public_html/index.php(11): PublicFrontController::run()
#15 {main}