<?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>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; fwbuilder</title> <atom:link href="http://www.ghacks.net/tag/fwbuilder/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Build a custom firewall with fwbuilder</title><link>http://www.ghacks.net/2009/09/18/build-a-custom-firewall-with-fwbuilder/</link> <comments>http://www.ghacks.net/2009/09/18/build-a-custom-firewall-with-fwbuilder/#comments</comments> <pubDate>Fri, 18 Sep 2009 03:23:39 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[firewall builder]]></category> <category><![CDATA[fwbuilder]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[linux security]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=16443</guid> <description><![CDATA[For the Linux operating system there are plenty of possibilities when it comes to firewalls. One possible option is Firestarter (You can read my &#8220;introductory&#8221; article &#8220;Firestarter: Simple to use desktop firewall&#8221; for an example of one such tool). You could also get very granular with the command line tool iptables. Of course most administrators [...]]]></description> <content:encoded><![CDATA[<p>For the Linux operating system there are plenty of possibilities when it comes to firewalls. One possible option is Firestarter (You can read my &#8220;introductory&#8221; article &#8220;<a
title="Firestarter" href="http://www.ghacks.net/2009/09/15/firestarter-simple-to-use-powerful-desktop-firewall/" target="_blank">Firestarter: Simple to use desktop firewall</a>&#8221; for an example of one such tool). You could also get very granular with the command line tool iptables. Of course most administrators do not have the time or inclination to deal with such heavy-hitting tools as iptables (if you do have the time, however, iptables is incredibly powerful). So where do you go to get something user-friendly AND powerful? One such option is <a
title="Fwbuilder" href="http://www.fwbuilder.org" target="_blank">fwbuilder</a>.</p><p>Fwbuilder is a powerful firewall creation tool that works by adding objects to build a customized firewall. An object can be just about anything from a firewall, a library, a host, interface, address, DNS name, etc. The idea is you piece objects together to form a cohesive whole that works together to form a complete firewall. The only problem most run into is, when you fire up fwbuilder, where do you start? It may seem a bit confusing at first, but you know where the first step is, the rest of the journey is pretty clear.</p><p><span
id="more-16443"></span><strong>Installing fwbuilder</strong></p><p>I will touch briefly on installing fwbuilder, because it will not be found on your default system. And although you will find fwbuilder in your respository, it will be an outdated version. So to install the latest version first open up your <strong>/etc/apt/sources.list </strong>file and add the following (Note: I am installing this on Ubuntu 9.04.):</p><p><code>deb http://www.fwbuilder.org/deb/stable/ jaunty contrib</code></p><p>Before you update apt you will need to add the <a
title="GPG key" href="http://www.fwbuilder.org/PACKAGE-GPG-KEY-fwbuilder.asc" target="_blank">GPG key</a>. Download that key and then issue the command:</p><p><em>sudo apt-key add PACKAGE-GPG-KEY-fwbuilder.asc</em></p><p>Now issue the command:</p><p><em>sudo apt-get update</em></p><p>Finally you can install with the command:</p><p><em>sudo apt-get install fwbuilder</em></p><p>Once installed you will find fwbuilder in the Administration sub-menu of the System menu (The entry will be labeled Firewall Builder).</p><p><strong>Building a firewall</strong></p><div
id="attachment_16445" class="wp-caption alignleft" style="width: 473px"><a
rel="attachment wp-att-16445" href="http://www.ghacks.net/2009/09/18/build-a-custom-firewall-with-fwbuilder/fwbuilder_main/"><img
class="size-full wp-image-16445" src="http://www.ghacks.net/wp-content/uploads/2009/09/fwbuilder_main.png" alt="Figure 1" width="463" height="385" /></a><p
class="wp-caption-text">Figure 1</p></div><p>When you start up fwbuilder the main window (see Figure 1) will not seem very intuitive. The first thing you need to do is create a new firewall. To create a new firewall click the Object drop-down which is the icon to the immediate left of the User drop-down. Or you click the Object menu and select New Object (which will open the Object drop-down menu). From this drop-down select New Firewall.</p><p>When you add a new firewall object a wizard will appear. Before you can move beyond the first screen you have to do the following:</p><ul><li>Name your firewall.</li><li>Select the firewall software the machine is running.</li><li>Select the OS the firewall is running on.</li></ul><p>In the first screen of this wizard is a very important option (if you want to make life easy for yourself). You can base your firewall on pre-configured templates. For new users this is always a good place to start. And even though you choose a pre-configured template, you can still customize this firewall.</p><p>But we&#8217;re building a customized firewall, so no templates here.</p><div
id="attachment_16447" class="wp-caption alignright" style="width: 239px"><a
rel="attachment wp-att-16447" href="http://www.ghacks.net/2009/09/18/build-a-custom-firewall-with-fwbuilder/fwbuilder_devices-2/"><img
class="size-full wp-image-16447" src="http://www.ghacks.net/wp-content/uploads/2009/09/fwbuilder_devices1.png" alt="Figure 2" width="229" height="269" /></a><p
class="wp-caption-text">Figure 2</p></div><p>The next screen asks you how you want to define your interfaces. There are two methods: Manually and using SNMP to automatically discover the interfaces. Manually is the most reliable method of course so select that option and click Next.</p><p>In the device setup window (see Figure 2) you will enter the information for your networking device. Once you have entered this click Add. If you can&#8217;t figure out the MAC address you can always use the Networking Tool application under the Administration sub-menu of the System menu.</p><p>Once you have added the device click the Finish button. If you have a machine with two networking devices add your second device and then click Finish. You will now be in the window where you will add rules to your firewall. In the upper left pane click on the name of the firewall to open up the Desktop/Policy window (see Figure 3).</p><div
id="attachment_16448" class="wp-caption alignleft" style="width: 366px"><a
rel="attachment wp-att-16448" href="http://www.ghacks.net/2009/09/18/build-a-custom-firewall-with-fwbuilder/fwbuilder_desktop/"><img
class="size-full wp-image-16448" src="http://www.ghacks.net/wp-content/uploads/2009/09/fwbuilder_desktop.png" alt="Figure 3" width="356" height="233" /></a><p
class="wp-caption-text">Figure 3</p></div><p>What you want to do is right click within the upper right pane and select &#8220;Insert Rule&#8221;. When the rule is inserted it will be fairly worthless. You will notice much of the policies are listed as &#8220;Any&#8221; or &#8220;All&#8221;. In order to change this you have to add new objects. Let&#8217;s say, for example, we want to create an address range that will cover our entire LAN to be used as a destination. To do this click on the Object drop-down and select New Address Range. The lower right pane will change where you can enter the values for your range. I will enter the following:</p><ul><li>Name: Internal LAN</li><li>Range Start: 192.168.1.1</li><li>Range End: 192.168.1.200</li></ul><p>You can add a comment if you like.</p><div
id="attachment_16449" class="wp-caption alignright" style="width: 366px"><a
rel="attachment wp-att-16449" href="http://www.ghacks.net/2009/09/18/build-a-custom-firewall-with-fwbuilder/fwbuilder_new_object/"><img
class="size-full wp-image-16449" src="http://www.ghacks.net/wp-content/uploads/2009/09/fwbuilder_new_object.png" alt="Figure 4" width="356" height="233" /></a><p
class="wp-caption-text">Figure 4</p></div><p>Now click Apply and that object has been created. This is where the fun begins. As you can see (in Figure 4) my new object is listed in the lower left pane. What I do is click and drag that object into the section of the new rule I want to apply that object to. So I want the Internal Lan object to apply to the Destination section of the rule so I will drag it to that section to apply it.</p><p>Now create as many objects as you need for your firewall and click and drag them to apply them. But don&#8217;t think you have to limit yourself to one rule. You can add as many rules to this firewall as you need.</p><p>Once you have completed building your firewall right click the firewall name (in my example it would be Desktop from the upper left pane) and click &#8220;Compile&#8221;.  This will open up a compilation wizard that is simple to walk through. The compilation will create a file with the same name as the firewall and an extension of .fw.  After the compilation is complete right click the firewall name and select Install. The installation wizard is also a simple walkthrough of steps. You will have to give a user for the firewall to run under as well as the password for that user. Also you will have to select if you are going to run in test mode or not. If you are install the firewall in test mode it will not be permanent. If you install in regular mode fwbuilder will ask you how soon you want to reboot your machine (so the firewall can take effect.) I suggest running in test most first. If this works then go back through the Install process and allow for full installation (including reboot).</p><p><strong>Final thoughts</strong></p><p>Fwbuilder is a powerful tool that allows you to create very customized firewalls. I highly recommend this tool for anyone serious about Linux security.</p><p><strong><br
/> </strong></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/09/18/build-a-custom-firewall-with-fwbuilder/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Build a Quick and Reliable Firewall with fwbuilder</title><link>http://www.ghacks.net/2009/03/25/build-a-quick-and-reliable-firewall-with-fwbuilder/</link> <comments>http://www.ghacks.net/2009/03/25/build-a-quick-and-reliable-firewall-with-fwbuilder/#comments</comments> <pubDate>Wed, 25 Mar 2009 18:53:33 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[firewall]]></category> <category><![CDATA[fwbuilder]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[network security]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=11462</guid> <description><![CDATA[Network security is tantamount to retaining your sanity. Be it at home or at your place of business, a firewall is often a necessity (especially when you have Windows machines on your network.) With the Linux operating system there are a number of ways to build a firewall. Back in the day I used to [...]]]></description> <content:encoded><![CDATA[<p>Network security is tantamount to retaining your sanity. Be it at home or at your place of business, a firewall is often a necessity (especially when you have Windows machines on your network.) With the Linux operating system there are a number of ways to build a firewall. Back in the day I used to hand-build a firewall using the now-outdated <em>ipchains</em> (replaced by <em>iptables).</em> It wasn&#8217;t a time-consuming, difficult task but one that lead to a very strong firewall.</p><p>That was then, this is now and in the now there are graphical front ends to help you build a firewall without having to issue a single command from the command line. One of those tools is <em>fwbuilder.</em> The fwbuilder tool builds iptables rulesets but does so by treating each element of the individual rule as an object, a service, or a time. Objects are addresses. Services are protocols or (as the name implies) services. Time is just as it says, time (such as day of the week or a specific time.)</p><p><span
id="more-11462"></span>To start up <em>fwbuilder</em> you will find the menu entry in Applications | Administration (under KDE) or in System | Administration (under GNOME). When you fire up <em>fwbuilder</em> you might find yourself thinking &#8220;Where do I start?&#8221; The first thing to do is go to the File menu and select New Object File. You have to give your object file a name and then save it.</p><div
id="attachment_11465" class="wp-caption alignleft" style="width: 208px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/03/fwbuilder_new_icon.png"><img
class="size-full wp-image-11465" src="http://www.ghacks.net/wp-content/uploads/2009/03/fwbuilder_new_icon.png" alt="fwbuilder new object" width="198" height="217" /></a><p
class="wp-caption-text">fwbuilder new object</p></div><p>Once you have done this you are ready to start building. As you can see, in the image to the left, the drop-down icon to the left of the User drop-down is what you click to insert a new object into your object file. Click that drop-down to reveal the list of all object to insert.</p><p>The first object you must insert into your object file is the Firewall. When you select that a wizard will open up asking for a name for your firewall, what software will run the firewall, and what OS the firewall will run on. I will name my firewall &#8220;Example_Firewall&#8221;, I will choose <em>iptables</em> from the software list, and Linux 2.4/2.6 for the OS.</p><div
id="attachment_11466" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/03/fwbuilder_templates.png"><img
class="size-medium wp-image-11466" src="http://www.ghacks.net/wp-content/uploads/2009/03/fwbuilder_templates-500x463.png" alt="Template Chooser" width="300" height="278" /></a><p
class="wp-caption-text">Template Chooser</p></div><p>Now, if you want to go the really easy route you can select to insert preconfigured template for your firewall. If you select this you will have to choose your template. Once you have taken care of this information click Next.</p><p>Once you click next you will see a list of different templates available. Each template serves a different purpose. As you click on each template a full description will reveal itself in the bottom pane.</p><p>After you select the proper template click the Finish button. Now <em>fwbuilder</em> will be open so you can view your template.</p><div
id="attachment_11467" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/03/fwbuilder_ready.png"><img
class="size-medium wp-image-11467" src="http://www.ghacks.net/wp-content/uploads/2009/03/fwbuilder_ready-500x298.png" alt="Ready To Insert Objects" width="300" height="179" /></a><p
class="wp-caption-text">Ready To Insert Objects</p></div><p>The first thing you can do is expand the name of the firewall (in my example I would Example_Firewall) and select the object you want to view. Say you want to view the Policy of this firewall (remember this was created from a template so there are already rules applied). To do this click the &#8220;Policy&#8221; listed (once you expand the firewall) which will reveal the policy in all its glory.</p><div
id="attachment_11468" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/03/fwbuilder_policy.png"><img
class="size-medium wp-image-11468" src="http://www.ghacks.net/wp-content/uploads/2009/03/fwbuilder_policy-500x299.png" alt="fwbuilder policy editor" width="300" height="179" /></a><p
class="wp-caption-text">fwbuilder policy editor</p></div><p>Because this is a template you can not edit the objects. This is one of those that you chose based on a specific, yet simple, need.</p><p>In the image to the right you can see the details of the policy included with the single interface firewall template.</p><p>If you want to create a custom firewall you would go through the same process but, at the point where you are defining your firewall you wouldn&#8217;t choose the Preconfigured Template. Instead you would leave that option unchecked and then, in the next window, choose to &#8220;Configure Interfaces Manually&#8221;. At this point you would add objects as needed and configure those objects to suit your needs.</p><p>Once your firewall is built you must then save the firewall, compile the firewall, and install the rules. Here&#8217;s the kicker with configuring your firewalls manually. You will need to know the MAC addresses of your interfaces. Fwbuilder has built in SNMP discovery which will help to map out the various interfaces on your network. To use that tool go to the Tool menu and select Discovery Druid. This tool should keep you from having to manually find and associate MAC addresses.</p><p><strong>Final Thoughts</strong></p><p>The fwbuilder tool is an outstanding means of creating firewalls for any situation. This article gave you a cursory glance at this powerful tool. Give it a try and build a firewall. Try the templates and, once you are familiar with the tool, build your very own customized firewall.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/03/25/build-a-quick-and-reliable-firewall-with-fwbuilder/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
