Difference between revisions of "Iptables: Explanations, options & examples"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== Configuration file location and command commands == === Configuration file === The iptables configuration file is located at: <code>/etc/sysconfig/iptables</code>. The cont...")
 
Line 5: Line 5:
 
=== Common Commands ===
 
=== Common Commands ===
 
* <code>service iptables start</code> - '''Starts iptables'''
 
* <code>service iptables start</code> - '''Starts iptables'''
* service iptables status - '''Check status'''
+
* <code>service iptables status</code> - '''Check status'''
* service iptables stop - '''Stop iptables'''
+
* <code>service iptables stop</code> - '''Stop iptables'''
* service iptables restart - '''Restart iptables'''
+
* <code>service iptables restart</code> - '''Restart iptables'''
* service iptables save - '''Save any newly added rules'''
+
* <code>service iptables save</code> - '''Save any newly added rules'''
  
 
== Structure of
 
== Structure of

Revision as of 13:33, 15 November 2012

Configuration file location and command commands

Configuration file

The iptables configuration file is located at: /etc/sysconfig/iptables. The contains all the tables, chains and rules. Additional configurations can be added directly to this file or via command line tools.

Common Commands

  • service iptables start - Starts iptables
  • service iptables status - Check status
  • service iptables stop - Stop iptables
  • service iptables restart - Restart iptables
  • service iptables save - Save any newly added rules

== Structure of