<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: How To Reset Linux Firewall Automatically While Testing Configuration With Remote Server Over SSH Session</title> <atom:link href="http://www.cyberciti.biz/faq/linux-iptables-firewall-flushout-configuration-every-5minutes/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-flushout-configuration-every-5minutes/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Dan Gauthier</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-flushout-configuration-every-5minutes/#comment-62805</link> <dc:creator>Dan Gauthier</dc:creator> <pubDate>Sun, 25 Sep 2011 18:17:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1169#comment-62805</guid> <description>Additional:  If you&#039;re worried about knocking off your watch window, try SCREEN.
It avoids all those nasty: &#039;&gt;/dev/null 2&gt;&amp;1 &lt;/dev/null &amp;&#039; stuff and gives you multiple screens at the same time that can&#039;t be knocked off.  There&#039;s a simple reconnect command: &#039;screen -r&#039;.</description> <content:encoded><![CDATA[<p>Additional:  If you&#8217;re worried about knocking off your watch window, try SCREEN.</p><p>It avoids all those nasty: &#8216;&gt;/dev/null 2&gt;&amp;1 &lt;/dev/null &amp;&#039; stuff and gives you multiple screens at the same time that can&#039;t be knocked off.  There&#039;s a simple reconnect command: &#039;screen -r&#039;.</p> ]]></content:encoded> </item> <item><title>By: Dan Gauthier</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-flushout-configuration-every-5minutes/#comment-62804</link> <dc:creator>Dan Gauthier</dc:creator> <pubDate>Sun, 25 Sep 2011 18:13:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1169#comment-62804</guid> <description>Instead of messing with cron, there is an EASY way to rerun recurring events -- &quot;watch&quot;.
watch is intended for things like &#039;watch ls -l&#039;, but it also works great for things like:
&#039;watch -n 30 killall -USR1 dd&#039;
or
&#039;watch -n300 /etc/rc.d/rc.firewall.orig&#039;    :)</description> <content:encoded><![CDATA[<p>Instead of messing with cron, there is an EASY way to rerun recurring events &#8212; &#8220;watch&#8221;.</p><p>watch is intended for things like &#8216;watch ls -l&#8217;, but it also works great for things like:</p><p>&#8216;watch -n 30 killall -USR1 dd&#8217;<br
/> or<br
/> &#8216;watch -n300 /etc/rc.d/rc.firewall.orig&#8217;    :)</p> ]]></content:encoded> </item> <item><title>By: parbat</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-flushout-configuration-every-5minutes/#comment-47680</link> <dc:creator>parbat</dc:creator> <pubDate>Tue, 08 Jun 2010 04:24:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1169#comment-47680</guid> <description>wow great.. script..
thanks..</description> <content:encoded><![CDATA[<p>wow great.. script..</p><p>thanks..</p> ]]></content:encoded> </item> <item><title>By: PeGa!</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-flushout-configuration-every-5minutes/#comment-47370</link> <dc:creator>PeGa!</dc:creator> <pubDate>Mon, 17 May 2010 17:18:05 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1169#comment-47370</guid> <description>My approach to this kind of situations (after having been through a few ones) is to add a --failsafe parameter to my  firewall scripts, which would run the (new) effective firewall rules with a &#039;sleep 20&#039; after applying this new rules thus after 20 seconds, if I didn&#039;t break the countdown, the new firewall rules are wiped out.</description> <content:encoded><![CDATA[<p>My approach to this kind of situations (after having been through a few ones) is to add a &#8211;failsafe parameter to my  firewall scripts, which would run the (new) effective firewall rules with a &#8216;sleep 20&#8242; after applying this new rules thus after 20 seconds, if I didn&#8217;t break the countdown, the new firewall rules are wiped out.</p> ]]></content:encoded> </item> <item><title>By: Mihai RATZ</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-flushout-configuration-every-5minutes/#comment-46954</link> <dc:creator>Mihai RATZ</dc:creator> <pubDate>Tue, 20 Apr 2010 12:46:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1169#comment-46954</guid> <description>Alternative to cron is port knocking.</description> <content:encoded><![CDATA[<p>Alternative to cron is port knocking.</p> ]]></content:encoded> </item> <item><title>By: Eric</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-flushout-configuration-every-5minutes/#comment-45618</link> <dc:creator>Eric</dc:creator> <pubDate>Tue, 19 Jan 2010 04:57:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1169#comment-45618</guid> <description>I would just use the &quot;save&quot; command to make a copy of the iptable script.  Then &quot;restore&quot; it via a cron command to the original script.  This way you don&#039;t create an undefended system when you restore.</description> <content:encoded><![CDATA[<p>I would just use the &#8220;save&#8221; command to make a copy of the iptable script.  Then &#8220;restore&#8221; it via a cron command to the original script.  This way you don&#8217;t create an undefended system when you restore.</p> ]]></content:encoded> </item> <item><title>By: name</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-flushout-configuration-every-5minutes/#comment-44397</link> <dc:creator>name</dc:creator> <pubDate>Sat, 31 Oct 2009 13:43:05 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1169#comment-44397</guid> <description>That&#039;s what iptables-apply is for.</description> <content:encoded><![CDATA[<p>That&#8217;s what iptables-apply is for.</p> ]]></content:encoded> </item> <item><title>By: kuda</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-flushout-configuration-every-5minutes/#comment-41240</link> <dc:creator>kuda</dc:creator> <pubDate>Fri, 17 Apr 2009 09:25:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1169#comment-41240</guid> <description>....
### no need to edit below  ###
IPT=/sbin/iptables
IPT6=/sbin/ip6tables
if [ $x = 1 ];
then
.....
otherwise bash will complain - unexpected character ....
have a nice day!</description> <content:encoded><![CDATA[<p>&#8230;.<br
/> ### no need to edit below  ###<br
/> IPT=/sbin/iptables<br
/> IPT6=/sbin/ip6tables</p><p>if [ $x = 1 ];<br
/> then<br
/> &#8230;..</p><p>otherwise bash will complain &#8211; unexpected character &#8230;.</p><p>have a nice day!</p> ]]></content:encoded> </item> <item><title>By: Kevin Green</title><link>http://www.cyberciti.biz/faq/linux-iptables-firewall-flushout-configuration-every-5minutes/#comment-38237</link> <dc:creator>Kevin Green</dc:creator> <pubDate>Sun, 06 Jul 2008 12:49:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1169#comment-38237</guid> <description>nice script, but you forgot the raw table
also, i think it would be a good idea to reset the counters and delete any existing empty chains
so
iptables -F
iptables -X
iptables -Z
iptables -t mangle -F
iptables -t mangle -X
iptables -t mangle -Z
iptables -t nat -F
iptables -t nat -X
iptables -t nat -Z
iptables -t raw -F
iptables -t raw -X
iptables -t raw -Z
cheers</description> <content:encoded><![CDATA[<p>nice script, but you forgot the raw table<br
/> also, i think it would be a good idea to reset the counters and delete any existing empty chains<br
/> so</p><p>iptables -F<br
/> iptables -X<br
/> iptables -Z<br
/> iptables -t mangle -F<br
/> iptables -t mangle -X<br
/> iptables -t mangle -Z<br
/> iptables -t nat -F<br
/> iptables -t nat -X<br
/> iptables -t nat -Z<br
/> iptables -t raw -F<br
/> iptables -t raw -X<br
/> iptables -t raw -Z</p><p>cheers</p> ]]></content:encoded> </item> </channel> </rss>
