<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://townx.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>townx - Page - Comments</title>
 <link>http://townx.org</link>
 <description>Comments for &quot;Page&quot;</description>
 <language>en</language>
<item>
 <title>firewall</title>
 <link>http://townx.org/simple_firewall_for_ubuntu_using_iptables#comment-38131</link>
 <description>&lt;p&gt;Hi,&lt;br /&gt;
Great script - I&#039;ve used it as the starter for my setup.&lt;/p&gt;

&lt;p&gt;ShieldsUP notes that your script shows ports 0 and 1 as closed rather than in stealth mode, and also doesn&#039;t drop &lt;span class=&quot;caps&quot;&gt;ICMP &lt;/span&gt;packets - meaning that if the machines are directly attached to the internet via ppp, or with an &lt;span class=&quot;caps&quot;&gt;ADSL &lt;/span&gt;modem with no firewall, then they can be discovered.&lt;/p&gt;

&lt;p&gt;Also your script doesn&#039;t handle dialup connections.&lt;/p&gt;

&lt;p&gt;The following changes mitigates against these:&lt;/p&gt;


&lt;ol&gt;
&lt;li&gt;drop everything else on ppp&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-i ppp+ -p udp -j &lt;span class=&quot;caps&quot;&gt;DROP&lt;/span&gt;&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-i ppp+ -p tcp -m tcp --syn -j &lt;span class=&quot;caps&quot;&gt;DROP&lt;/span&gt;&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-i ppp+ -p icmp -j &lt;span class=&quot;caps&quot;&gt;DROP&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Explcitly deal with port 0&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p tcp --sport 0&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p udp --sport 0&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p tcp --dport 0&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p udp --dport 0&lt;/li&gt;
&lt;li&gt;Explcitly deal with port 1&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p tcp --sport 1&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p udp --sport 1&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p tcp --dport 1&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p udp --dport 1&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;regards&lt;/p&gt;

&lt;p&gt;Colin&lt;/p&gt;</description>
 <pubDate>Thu, 08 May 2008 03:01:53 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 38131 at http://townx.org</guid>
</item>
<item>
 <title>Thx ;)</title>
 <link>http://townx.org/simple_firewall_for_ubuntu_using_iptables#comment-38122</link>
 <description>&lt;p&gt;thanks!though  iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-p tcp -s 0/0 --dport 80 -j &lt;span class=&quot;caps&quot;&gt;ACCEPT &lt;/span&gt;is needed!&lt;/p&gt;</description>
 <pubDate>Wed, 30 Apr 2008 18:18:12 -0500</pubDate>
 <dc:creator>Prakash</dc:creator>
 <guid isPermaLink="false">comment 38122 at http://townx.org</guid>
</item>
<item>
 <title>Well, we&#039;ve only got a</title>
 <link>http://townx.org/animals_2_why_animals_should_be_kept_off_furniture_17_12_1991#comment-34383</link>
 <description>&lt;p&gt;Well, we&#039;ve only got a rabbit, and she&#039;s in a hutch. So no furniture issues.&lt;/p&gt;</description>
 <pubDate>Thu, 17 Apr 2008 18:15:49 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 34383 at http://townx.org</guid>
</item>
<item>
 <title>Off the furniture?</title>
 <link>http://townx.org/animals_2_why_animals_should_be_kept_off_furniture_17_12_1991#comment-26961</link>
 <description>&lt;p&gt;That&#039;s assuming that you still have furniture. Most of the time they just tear it up with their claws. I still can&#039;t live without them :)&lt;/p&gt;</description>
 <pubDate>Tue, 25 Mar 2008 15:52:13 -0500</pubDate>
 <dc:creator>Pet Websites</dc:creator>
 <guid isPermaLink="false">comment 26961 at http://townx.org</guid>
</item>
<item>
 <title>What, the ports became</title>
 <link>http://townx.org/simple_firewall_for_ubuntu_using_iptables#comment-14521</link>
 <description>&lt;p&gt;What, the ports became unavailable? Or the services stopped running? When you stopped the firewall? If you set it up as above, stopping the firewall shouldn&#039;t touch other services, and should definitely not block them.&lt;/p&gt;</description>
 <pubDate>Sun, 18 Nov 2007 18:07:54 -0600</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 14521 at http://townx.org</guid>
</item>
<item>
 <title>shit</title>
 <link>http://townx.org/simple_firewall_for_ubuntu_using_iptables#comment-14520</link>
 <description>&lt;p&gt;when i typed /etc/init.d/firewall stop ssh, apache gone away .. :(&lt;br /&gt;
why ?&lt;/p&gt;</description>
 <pubDate>Sun, 18 Nov 2007 11:09:12 -0600</pubDate>
 <dc:creator>alex rose</dc:creator>
 <guid isPermaLink="false">comment 14520 at http://townx.org</guid>
</item>
<item>
 <title>Thanks for that, Roy. I&#039;ve</title>
 <link>http://townx.org/simple_firewall_for_ubuntu_using_iptables#comment-14403</link>
 <description>&lt;p&gt;Thanks for that, Roy. I&#039;ve used some of the &lt;span class=&quot;caps&quot;&gt;GUI&lt;/span&gt;s before, but the simple ones can&#039;t cope with the scenario outlined in the article. While fwbuilder probably could, I like the simplicity of my script, and have used it succesfully without touching it for about 3 years. I&#039;m very happy with it.&lt;/p&gt;</description>
 <pubDate>Tue, 02 Oct 2007 13:20:28 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 14403 at http://townx.org</guid>
</item>
<item>
 <title>Great, glad it was helpful.</title>
 <link>http://townx.org/simple_firewall_for_ubuntu_using_iptables#comment-14402</link>
 <description>&lt;p&gt;Great, glad it was helpful.&lt;/p&gt;</description>
 <pubDate>Tue, 02 Oct 2007 13:19:19 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 14402 at http://townx.org</guid>
</item>
<item>
 <title>short and sweet, works as</title>
 <link>http://townx.org/simple_firewall_for_ubuntu_using_iptables#comment-14401</link>
 <description>&lt;p&gt;short and sweet, works as advertised! happy customer here. &lt;/p&gt;</description>
 <pubDate>Mon, 01 Oct 2007 22:57:55 -0500</pubDate>
 <dc:creator>Reid</dc:creator>
 <guid isPermaLink="false">comment 14401 at http://townx.org</guid>
</item>
<item>
 <title>iptables</title>
 <link>http://townx.org/simple_firewall_for_ubuntu_using_iptables#comment-14374</link>
 <description>&lt;p&gt;One of the most impressive tools for building iptables firewalls is fwbuilder at &lt;a href=&quot;http://www.fwbuilder.org&quot; title=&quot;www.fwbuilder.org&quot;&gt;www.fwbuilder.org&lt;/a&gt;.&lt;br /&gt;
This fantastic &lt;span class=&quot;caps&quot;&gt;GUI &lt;/span&gt;app writes the iptables for you in a way that is easy to read.&lt;/p&gt;

&lt;p&gt;Really good for heavy weight firewalling.&lt;/p&gt;

&lt;p&gt;Roy.&lt;/p&gt;</description>
 <pubDate>Fri, 14 Sep 2007 15:20:42 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 14374 at http://townx.org</guid>
</item>
<item>
 <title>thanks!</title>
 <link>http://townx.org/installing-ubuntu-6-10-edgy-guest-operating-system-vmware#comment-14373</link>
 <description>&lt;p&gt;man... for the longest time i couldn&#039;t get display scaling to work... copy and paste worked fine because i knew vmware-tools had to be running... but &quot;vmware-user&quot; was the magik utility that needs to be running for the scaling to work.  Thanks man!&lt;/p&gt;

&lt;p&gt;FG&lt;/p&gt;</description>
 <pubDate>Thu, 13 Sep 2007 19:55:03 -0500</pubDate>
 <dc:creator>FG</dc:creator>
 <guid isPermaLink="false">comment 14373 at http://townx.org</guid>
</item>
<item>
 <title>Thanks Michael. Glad to be</title>
 <link>http://townx.org/simple_firewall_for_ubuntu_using_iptables#comment-14336</link>
 <description>&lt;p&gt;Thanks Michael. Glad to be of service.&lt;/p&gt;</description>
 <pubDate>Thu, 06 Sep 2007 09:30:35 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 14336 at http://townx.org</guid>
</item>
<item>
 <title>So simple!</title>
 <link>http://townx.org/simple_firewall_for_ubuntu_using_iptables#comment-14325</link>
 <description>&lt;p&gt;I&#039;ve fooled with iptables off and on for a few years now.  Never quite getting all the pieces right.  Thanks for bringing it back down to Earth with a simple as pie approach to setting the rules and integrating with start up.  It was good to learn a thing or two about update-rc.d.  That was an interesting tool I hadn&#039;t seen before.&lt;/p&gt;

&lt;p&gt;One note:  Add your input accept rules (like port 80 for &lt;span class=&quot;caps&quot;&gt;HTTP BEFORE &lt;/span&gt;you drop everything else).  Took me a couple minutes to figure that one out, but otherwise, all else was smooth sailing.&lt;/p&gt;

&lt;p&gt;--Michael&lt;/p&gt;</description>
 <pubDate>Sun, 26 Aug 2007 21:42:07 -0500</pubDate>
 <dc:creator>Michael</dc:creator>
 <guid isPermaLink="false">comment 14325 at http://townx.org</guid>
</item>
<item>
 <title>Very helpful.  Thanks for</title>
 <link>http://townx.org/simple_firewall_for_ubuntu_using_iptables#comment-14220</link>
 <description>&lt;p&gt;Very helpful.  Thanks for posting.&lt;/p&gt;</description>
 <pubDate>Thu, 21 Jun 2007 00:05:29 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 14220 at http://townx.org</guid>
</item>
<item>
 <title>In which case, my apologies.</title>
 <link>http://townx.org/animals_2_why_animals_should_be_kept_off_furniture_17_12_1991#comment-14169</link>
 <description>&lt;p&gt;In which case, my apologies. I wasn&#039;t intending to upset animal lovers. Just put animals in their place :) I&#039;ll let the free advertising stand.&lt;/p&gt;</description>
 <pubDate>Tue, 29 May 2007 07:31:43 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 14169 at http://townx.org</guid>
</item>
</channel>
</rss>
