<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.christophchamp.com/index.php?action=history&amp;feed=atom&amp;title=Iptables%2Fscripts%2Fflush</id>
		<title>Iptables/scripts/flush - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.christophchamp.com/index.php?action=history&amp;feed=atom&amp;title=Iptables%2Fscripts%2Fflush"/>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Iptables/scripts/flush&amp;action=history"/>
		<updated>2026-05-23T12:54:18Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://wiki.christophchamp.com/index.php?title=Iptables/scripts/flush&amp;diff=3599&amp;oldid=prev</id>
		<title>Christoph at 22:57, 4 April 2007</title>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Iptables/scripts/flush&amp;diff=3599&amp;oldid=prev"/>
				<updated>2007-04-04T22:57:09Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{GPLv2}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# &lt;br /&gt;
# rc.flush-iptables - Resets iptables to default values. &lt;br /&gt;
# &lt;br /&gt;
# Copyright (C) 2001  Oskar Andreasson &amp;amp;lt;bluefluxATkoffeinDOTnet&amp;amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# This program is free software; you can redistribute it and/or modify&lt;br /&gt;
# it under the terms of the GNU General Public License as published by&lt;br /&gt;
# the Free Software Foundation; version 2 of the License.&lt;br /&gt;
#&lt;br /&gt;
# This program is distributed in the hope that it will be useful,&lt;br /&gt;
# but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br /&gt;
# GNU General Public License for more details.&lt;br /&gt;
#&lt;br /&gt;
# You should have received a copy of the GNU General Public License&lt;br /&gt;
# along with this program or from the site that you downloaded it&lt;br /&gt;
# from; if not, write to the Free Software Foundation, Inc., 59 Temple&lt;br /&gt;
# Place, Suite 330, Boston, MA  02111-1307   USA&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# Configurations&lt;br /&gt;
#&lt;br /&gt;
IPTABLES=&amp;quot;/usr/sbin/iptables&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# reset the default policies in the filter table.&lt;br /&gt;
#&lt;br /&gt;
$IPTABLES -P INPUT ACCEPT&lt;br /&gt;
$IPTABLES -P FORWARD ACCEPT&lt;br /&gt;
$IPTABLES -P OUTPUT ACCEPT&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# reset the default policies in the nat table.&lt;br /&gt;
#&lt;br /&gt;
$IPTABLES -t nat -P PREROUTING ACCEPT&lt;br /&gt;
$IPTABLES -t nat -P POSTROUTING ACCEPT&lt;br /&gt;
$IPTABLES -t nat -P OUTPUT ACCEPT&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# reset the default policies in the mangle table.&lt;br /&gt;
#&lt;br /&gt;
$IPTABLES -t mangle -P PREROUTING ACCEPT&lt;br /&gt;
$IPTABLES -t mangle -P POSTROUTING ACCEPT&lt;br /&gt;
$IPTABLES -t mangle -P INPUT ACCEPT&lt;br /&gt;
$IPTABLES -t mangle -P OUTPUT ACCEPT&lt;br /&gt;
$IPTABLES -t mangle -P FORWARD ACCEPT&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# flush all the rules in the filter and nat tables.&lt;br /&gt;
#&lt;br /&gt;
$IPTABLES -F&lt;br /&gt;
$IPTABLES -t nat -F&lt;br /&gt;
$IPTABLES -t mangle -F&lt;br /&gt;
#&lt;br /&gt;
# erase all chains that's not default in filter and nat table.&lt;br /&gt;
#&lt;br /&gt;
$IPTABLES -X&lt;br /&gt;
$IPTABLES -t nat -X&lt;br /&gt;
$IPTABLES -t mangle -X&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Source: [http://iptables-tutorial.frozentux.net/iptables-tutorial.html Iptables Tutorial 1.2.2]&lt;/div&gt;</summary>
		<author><name>Christoph</name></author>	</entry>

	</feed>