From LedHed's Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 +
'''Ubuntu/Debian Init Script'''
  
== Ubuntu/Debian Init Script ==
+
Reference: http://ubuntuforums.org/showthread.php?t=57111
By default Ubuntu & Debian don't come with an IPTables init script (Bitch Moan ....)
+
  
There are many ways to load your IPTables rulesets.
 
  
This is one approach.
+
By default Ubuntu & Debian don't come with an IPTables init script (Bitch Moan ....)<br>
 +
<br>
 +
There are many ways to load your IPTables rulesets.<br>
 +
This is one approach.<br>
  
Add rules to your iptables via the command line.
+
== Overview ==
Save the rulesets to a file for later use (To survive a reboot)
+
Add rules to your iptables via the command line.<br>
Launch an init script which loads the previously saved rulesets at given run-levels
+
Save the rulesets to a file for later use (To survive a reboot).<br>
 +
Launch an init script which loads the previously saved rulesets at given run-levels.<br>
  
  
 
== Adding Rules ==
 
== Adding Rules ==
  
For more info on adding IPTable Rules see [IPTable Basics]
+
For more info on adding IPTable Rules see [IPTable Basics]<br>
  
 
== Saving the Rulesets ==
 
== Saving the Rulesets ==

Revision as of 08:17, 29 December 2007

Ubuntu/Debian Init Script

Reference: http://ubuntuforums.org/showthread.php?t=57111


By default Ubuntu & Debian don't come with an IPTables init script (Bitch Moan ....)

There are many ways to load your IPTables rulesets.
This is one approach.

Overview

Add rules to your iptables via the command line.
Save the rulesets to a file for later use (To survive a reboot).
Launch an init script which loads the previously saved rulesets at given run-levels.


Adding Rules

For more info on adding IPTable Rules see [IPTable Basics]

Saving the Rulesets

iptables-save > /etc/default/iptables-rules




More to Come