<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LinuxNiche &#187; firewall</title>
	<atom:link href="http://blog.linuxniche.net/tag/firewall/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.linuxniche.net</link>
	<description>The ramblings of a linux geek..</description>
	<lastBuildDate>Wed, 29 Dec 2010 14:14:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Need a Firewall?  Part 2.</title>
		<link>http://blog.linuxniche.net/2009/09/need-a-firewall-part-2/</link>
		<comments>http://blog.linuxniche.net/2009/09/need-a-firewall-part-2/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 03:55:08 +0000</pubDate>
		<dc:creator>FatalSaint</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[endian]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[ipcop]]></category>
		<category><![CDATA[pfsense]]></category>

		<guid isPermaLink="false">http://blog.linuxniche.net/?p=485</guid>
		<description><![CDATA[Welcome Back!! In the last article regarding firewalls I gave you the links and some basic information regarding three different firewall options.  I had intended to try all three and let you know how it went but I was enjoying messing with the Endian firewall too much to lose it!  Well, I recently got bored [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Welcome Back!!</strong></p>
<p>In the <a href="http://blog.linuxniche.net/?p=235" target="_blank">last article</a> regarding firewalls I gave you the links and some basic information regarding three different firewall options.  I had intended to try all three and let you know how it went but I was enjoying messing with the Endian firewall too much to lose it!  Well, I recently got bored and decided what the hell &#8211; time to try something new.  So I went to the next in the list:  <a href="http://www.pfsense.com/" target="_blank"><strong>pfSense</strong></a>.</p>
<p><span id="more-485"></span>So in this article I&#8217;ll give you a brief overview of what pfSense can do.  This article is going to be a lot more technical than the last article because to be honest &#8211; pfSense required me to be more technical than either Endian or IPCOP for what I needed.  If you do not run a DMZ at your house and are just looking for a quick, cheap firewall to turn your old computer into something useful &#8211; pfSense can do that with not a lot of work on your part, and the majority of this article will not be for you.  If you do run a DMZ &#8211; you&#8217;ll need to read this :).</p>
<p>So I downloaded the LiveCD installer option, printed out my port configuration page from my Endian setup, and rebooted the firewall.  It booted directly into a fully working system in just a few minutes &#8211; which is expected when using a &#8220;LiveCD&#8221;.</p>
<p>In the pfSense documentation it recommended to configure the firewall before installing to the hard drive so I did just that.  I logged into the website, which in my opinion is a fairly professional and clean interface, and started configuring my network cards and subnets.</p>
<p>Everything went pretty smoothly at the beginning and eventually I got to the point of installing to the hard drive.  This was again, totally uneventful and worked perfectly.  The installation was a little more difficult, or seemed to be, than the others I have tried (Smoothwall, IPCop, Endian) because the installer wouldn&#8217;t really do anything for you (like partition the hard drive).  I&#8217;m not <strong>too</strong> surprised by this, as this firewall is based on a BSD kernel and not Linux &#8211; which in my experience the BSD distributions tend not to be as user-friendly as their Linux counterparts.  BSD derivatives make up for it, however, (again in my experience), by being a little more stable and secure out of the box than Linux is.</p>
<p>To be fair, that&#8217;s usually because out of the box a BSD system has less 3rd party software, which leads again to the non-user friendliness :).  Anyway, back on point, after selecting my options for the installation I ejected the CD and rebooted into pfSense.</p>
<p>As advertised, it saved all my configuration details and most of my LAN worked as is.  Now I got to the point of the more difficult things like checking the firewall port forwarding and setting up my DMZ.  This is where pfSense got to be a little more difficult..</p>
<p>In IPCOP, it automatically asks you if you have/want an Orange interface, and then automatically configures you a nice default set of rules that allow pretty much anything out to the internet but not to your Green or Blue networks.  This works well, is point/click easy, and takes all of 10 minutes to start forwarding your ports to your DMZ and off you go.</p>
<p>In Endian, it also wants to know if you want a Orange network, and it also automatically configures a nice default set of firewall rules that are much more restrictive than in the IPCOP defaults.  This is good for security, and requires the admin to open up only what he or she wants.</p>
<p>In pfSense.. it wants to know why you want to use a third interface and tells you to go stick it.  Well ok, not really.  It is however much less intuitive.  During installation it will ask you for a LAN interface, fair enough, then it asks for an internet interface, good good, and then it just goes on to ask for &#8220;Optional Interfaces&#8221; that it duely names &#8220;OPT1, OPT2, OPT3.. etc&#8221; until you decide you&#8217;re done adding interfaces.  Once the interface is then added, you have to go into the web interface and actually enable it (because.. you may have just been adding random nonexistant interfaces for fun) and then you go to the firewall rules area and find&#8230;. nothing.  This is great for just being annoying :).</p>
<p>Under the pfSense firewall rules you have different tabs per interface and you do have of course a tab for the new interface but NO default rules are added.  No DNS, no web, nada.  So you get to add everything you need, including basic &#8220;make this subnet work&#8221; rules by hand.</p>
<p>On the other hand.. pfSense does have a rule that Endian opted to skip: The Any-&gt;Any Allow rule for your LAN network.  You know, that&#8217;s the easy rule I described in my last article that makes ipcop a great new or inexperienced user&#8217;s firewall setup.  You don&#8217;t have to mess with anything to get all of the internet at your fingertips, while securing the malicious traffic from the outside. Again this is a complete trade-off on how you want to setup your network: Access control for employee&#8217;s or children, or easy configuration with minimal fuss.</p>
<p>Now, Endian and pfSense each take a different road by default, but can each be made like the other due to support for bi-directional (incoming and outgoing traffic) firewalling&#8230; IPCOP on the other hand takes the easy road, with no default options to change it.  With IPCOP you have to install an addon that allows you to block outgoing traffic &#8211; again solidifying IPCOP&#8217;s role as the user-friendly easy firewall with limited advanced options (without addons).</p>
<p>Like IPCOP, however, pfSense comes with nearly no additional software beyond your default firewall/router/nat configuration.  It does have some advanced things: Loadbalancing with another pfSense firewall, PPoE server, etc.. but no Proxies, anti-virus, content filters, etc.  Endian came default with these.  Unlike IPCOP, however, the pfSense package/addon interface seems <strong>much</strong> simpler.  It&#8217;s already there in your menu, ready to go, just click &#8220;install&#8221; on any particular addon and it automatically fetches, installs and configures it.  Using these you can add all the missing functionality you need.  In IPCOP, this requires you to install the basic addon interface first (via a command line in SSH), and then you can browse to &#8220;Addons&#8221; in the web interface, pick an addon where you have to go download the package to your computer, then go back to the web interface and &#8220;upload&#8221; the package to IPCOP.  This whole procedure breaks the &#8220;easy&#8221; that IPCOP&#8217;s entire foundation lives on.</p>
<p>Going back to the port forwarding in the DMZ, I was presented with a different problem.  First, what was obvious to me but may not be to some (or most?), was that because the firewall interface is broken up by interface (LAN, WAN, DMZ) you can&#8217;t just create one bi-directional rule for port forward, but instead have to go create one rule on the WAN to allow it coming in, and one rule on the DMZ to allow it going out.</p>
<p>Normally this would create double the work, if it weren&#8217;t for a hidden specialty that pfSense has and I will get to in a minute.  Second, after spending an hour banging my head against the wall and searching through pages of forum posts online trying to figure out why my port forwards still weren&#8217;t working for my DMZ.. I found a post that explained you needed to actually add specific NAT rules for each port as well.</p>
<p>Holy Hell pfSense, so let&#8217;s get this right: what you can do in one rule in Endian and IPCOP, takes 3 rules in 3 different pages for pfSense?!? One in Firewall-&gt;NAT, one in Firewall-&gt;Rules-&gt;WAN, and one in Firewall-&gt;Rules-&gt;DMZ &#8211; AND they are all different.  So basically, if I have 20 rules in Endian for 20 ports I need to forward &#8211; then doing it this way would have taken <strong>60 bloody rules</strong>!  To be fair, if you do the NAT one first it has a checkbox that will automatically create a rule for the WAN &#8211; but still, that&#8217;s just nonsense!</p>
<p>Now, not all servers need this: Web servers for example don&#8217;t need to get &#8220;out&#8221; port 80 due to the nature of the stateful firewall &#8211; it allows &#8220;responses&#8221; from your webserver to the client; however mail servers on the other hand obviously need to get &#8220;out&#8221; port 25 to talk to other mail servers &#8211; my example of 60 represents a &#8220;worst case scenario&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.linuxniche.net/2009/09/need-a-firewall-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Need a Firewall?</title>
		<link>http://blog.linuxniche.net/2009/07/need-a-firewall/</link>
		<comments>http://blog.linuxniche.net/2009/07/need-a-firewall/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 18:14:03 +0000</pubDate>
		<dc:creator>FatalSaint</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.linuxniche.net/?p=235</guid>
		<description><![CDATA[Do you have an old PC you don&#8217;t use? I have now reviewed the pfSense firewall here. Hello again!  Up until a few days ago I secured my home DSL broadband network with the IPCOP 1.4 firewall.  I do like IPCOP and it was fun and easy to use.. especially when you add all the addons [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Do you have an old PC you don&#8217;t use?<br />
</strong><span style="color: #ff0000;">I have now reviewed the pfSense firewall <a href="http://blog.linuxniche.net/?p=485" target="_self">here</a>.</span></p>
<p>Hello again!  Up until a few days ago I secured my home DSL broadband network with the IPCOP 1.4 firewall.  I do like IPCOP and it was fun and easy to use.. especially when you add all the addons (which are of course unsupported) that you may want.  Keep in mind that, while Linux based, everything is managed through a web interface, just like any Netgear/Linksys router.  Now, I do believe in the KISS principal on security.  A server/box should be what it is and nothing more.  A firewal should be a firewall, proxy a proxy, mail server a mail server, etc.  The more you combine into one machine the more chance multiple applications/systems can become compromised.<span id="more-235"></span></p>
<p>However, some of us are just securing our home network here, not some corporate secrets that will cause a global radioactive explosion if they happen to leak beyond the boundaries of the intrawebz.  Granted, Your own life could potentially be ruined if someone gets ahold of your bank information, but to expect the average user to be running 30 different systems for each piece of security is just unrealistic.</p>
<p>So, the addons on IPCOP almost become a necessity because out of the box it&#8217;s a Firewall, and IDS, and Proxy.  But the proxy doesn&#8217;t include much of any content filtering by default, it&#8217;s just simply a proxy.  The other thing about IPCOP is by default the interface doesn&#8217;t really support bi-directional rule creation.  It pretty much assumes all outgoing traffic is good, all incoming is bad.  Which is nice and simple, if a bit limited.  So, a few addons later you have a full content-filtering, bi-directional, firewall and router solution to secure your home.</p>
<p>What all this means for you is that (especially if you have kids): You can easily block most Porn, Virus&#8217;, Spams, Advertisements, Hacker/Illegal/Piracys/gambling/etc websites, and a whole bunch of other things considered &#8220;bad&#8221; on the internet, simply by clicking a checkbox.  Try getting your Linksys to do that :).</p>
<p>The downside to these firewalls is that they require hardware.   Unlike the Linksys or Netgear router that you buy from the store, take home and just plug into your DSL/cable/satellite modem to give you the assumption of security (these don&#8217;t provide much protection, especially if you leave them at the defaults, including passwords.), IPCOP and the others I discuss here require a separate computer.  The nice thing however is that this computer can be the biggest piece of junk you can find in a yard sale and it&#8217;ll likely still work.  We&#8217;re talking PII&#8217;s here with 5GB hard drive space and probably 256MB memory is more than enough to run these.</p>
<p>As I said, it was IPCOP for me until recently.  Several months ago Snort started failing with a Helper Code on the page.  It appears that the version of Snort (the Intrusion Detection System, IDS) on IPCOP 1.4 is 2.6 and the new Snort rulesets only support 2.8 and up.  So I checked out IPCOP&#8217;s forums and other sources of information and basically gathered that, not only is it known that Snort is broke, but the people at IPCOP seem to have gotten the idea that snort is useless anyway, so they just <a href="http://www.ipcops.com/phpbb3/viewtopic.php?f=16&amp;t=12612" target="_blank">won&#8217;t include it in the next release</a>, 2.0.</p>
<p>Well, this blog isn&#8217;t to argue the usefullness or lack thereof of Snort.  Suffice to say, I like Snort, I do find it useful in detecting various things (sure, I get a lot of fluff, but it&#8217;s easier to look through Snort alerts than the billions of lines of firewall logs that get generated) and I think an IDS is an integral part of security.  I&#8217;m sure IPCOP has good reasons for ditching Snort, but I want it, so I ditched IPCOP.  While on the search for a new &#8220;turn-key&#8221; based firewall solution I came across these:</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.linuxniche.net/2009/07/need-a-firewall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

