<?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; iptables</title> <atom:link href="http://www.ghacks.net/tag/iptables/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>Allow Samba through your Linux firewall with ufw</title><link>http://www.ghacks.net/2010/12/29/allow-samba-through-your-linux-firewall-with-ufw/</link> <comments>http://www.ghacks.net/2010/12/29/allow-samba-through-your-linux-firewall-with-ufw/#comments</comments> <pubDate>Wed, 29 Dec 2010 17:06:25 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Online Services]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[firewal]]></category> <category><![CDATA[gufw]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[linux firewall]]></category> <category><![CDATA[samba]]></category> <category><![CDATA[sudo]]></category> <category><![CDATA[ufw]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=38496</guid> <description><![CDATA[As most of you know, Samba allows your Linux machine to work with Windows machines (and vice versa). Without Samba Linux would be locked in an unable to play nicely on heterogeneous networks. So what most Linux users do is install Samba to allow file/folder sharing and network browsing. Typically speaking, Samba is very easy to install [...]]]></description> <content:encoded><![CDATA[<p>As most of you know, Samba allows your Linux machine to work with Windows machines (and vice versa). Without Samba Linux would be locked in an unable to play nicely on heterogeneous networks. So what most Linux users do is install Samba to allow file/folder sharing and network browsing. Typically speaking, Samba is very easy to install and work with. But when problems arise Samba can be a nightmare to troubleshoot. One of the first steps in your troubleshooting should always be your firewall as this is very often the problem. What do you do if your firewall isn&#8217;t allowing Samba through? You tell your firewall to allow Samba to pass. Let&#8217;s see how this is done.</p><p><span
id="more-38496"></span>I want to show you how this is done in two different ways: Using a typical firewall GUI and the ufw command line. For the GUI I am going to illustrate this with GUFW (GNOME frontend for UFW). Naturally, each GUI firewall tool will deal with this process differently, but understanding the fundamentals of what you&#8217;re looking for should give you enough information about how exactly to manage the task with the firewall tool you use.</p><p><strong>ufw</strong></p><div
id="attachment_38502" class="wp-caption alignleft" style="width: 340px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/12/iptables.png"><img
class="size-medium wp-image-38502 " src="http://www.ghacks.net/wp-content/uploads/2010/12/iptables-550x379.png" alt="" width="330" height="227" /></a><p
class="wp-caption-text">Figure 1</p></div><p>Let&#8217;s start with the more challenging task first. I will assume you know some of the basics. What we will be doing is allowing the necessary Samba ports through with the help of the UFW command line. Let&#8217;s first check to make sure your firewall is enabled. To do this issue the command:</p><p><code>sudo iptables -L</code></p><p>When you issue the above command you should see output similar to what you see in Figure 1. If you see nothing, that means your firewall isn&#8217;t enabled.</p><p>Now, let&#8217;s add the rules to allow Samba to pass through your firewall. I am going to illustrate this using the 192.168.1.0 IP address scheme. You can adjust this to fit your needs. The commands you need to run, to open up the necessary ports are:</p><p><code>sudo ufw allow proto udp to any port 137 from 192.168.1.0/24<br
/> sudo ufw allow proto udp to any port 138 from 192.168.1.0/24<br
/> sudo ufw allow proto tcp to any port 139 from 192.168.1.0/24<br
/> sudo ufw allow proto tcp to any port 445 from 192.168.1.0/24</code></p><p>You will issue the above commands one at a time.</p><p><strong>GUFW</strong></p><div
id="attachment_38503" class="wp-caption alignright" style="width: 218px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/12/gufw_1.png"><img
class="size-full wp-image-38503 " src="http://www.ghacks.net/wp-content/uploads/2010/12/gufw_1.png" alt="" width="208" height="222" /></a><p
class="wp-caption-text">Figure 2</p></div><p>Now let&#8217;s take a look at allowing Samba through your firewall using the UFW front-end, GUFW.  You can start the GUFW tool by clicking <strong>System &gt; Administration &gt; Firewall Configuration</strong>. When the GUFW window opens (see Figure 2). If the firewall is not enabled, check the Enabled check box to start it up. Once it is started up you can then add rules to the configuration.</p><div
id="attachment_38504" class="wp-caption alignleft" style="width: 340px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/12/gufw_2.png"><img
class="size-medium wp-image-38504 " src="http://www.ghacks.net/wp-content/uploads/2010/12/gufw_2-550x186.png" alt="" width="330" height="112" /></a><p
class="wp-caption-text">Figure 3</p></div><p>When you click the Add button a new window will appear (see Figure 3). From this window select the Preconfigured tab. In this window select the following:</p><ul><li>Allow</li><li>In</li><li>Service</li><li>Samba</li></ul><p>When you have the above selected, click Add. Now go back and add another rule to use the same configuration as above with the exception of selecting Out instead of In. Once you have done that, close the Add Rule window and then quit the GUFW window. Your firewall should now allow Samba through.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/12/29/allow-samba-through-your-linux-firewall-with-ufw/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Introduction to iptables</title><link>http://www.ghacks.net/2010/06/14/introduction-to-iptables/</link> <comments>http://www.ghacks.net/2010/06/14/introduction-to-iptables/#comments</comments> <pubDate>Mon, 14 Jun 2010 19:48:30 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[chains]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[linux security]]></category> <category><![CDATA[packet traffic]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=26547</guid> <description><![CDATA[If you&#8217;ve been around Linux long enough you know there are many ways to secure your box. What you may or may not know is that a number of those means are simply front-ends for the all-mighty iptables tool. IPtables is a very powerful, complicated system which can control packet traffic on your system. It [...]]]></description> <content:encoded><![CDATA[<p>If you&#8217;ve been around Linux long enough you know there are many ways to secure your box. What you may or may not know is that a number of those means are simply front-ends for the all-mighty <em>iptables </em>tool. IPtables is a very powerful, complicated system which can control packet traffic on your system. It can deny, reject, allow, route, and do just about anything else you want to do with that traffic&#8230;all from the command line. Of course, along with this power, comes some serious complexity.</p><p>That complexity is what an introductory article is needed. I have seen plenty of users try to just jump into the heart and soul of iptables, only to see them fail miserably. To fully understand iptables one must first understand how iptables is actually used. In this article I will help you to understand the fundamentals of iptables so later on we can further that knowledge with more in-depth scripts and commands.</p><p><span
id="more-26547"></span><strong>What IS iptables?</strong></p><p>As I mentioned earlier, iptables is a powerful way to control packet traffic to and from your Linux box. But how does it manage this?  It does so by creating TABLES made up of CHAINS. There are three types of chains:</p><ul><li>INPUT: Controls packets coming in.</li><li>OUTPUT: Controls packets going out.</li><li>FORWARD: Controls packets that are forwarded.</li></ul><p>These are also applied to the default policies. When you install a Linux operating system it will have three pre-defined iptables chains (one for each of the above).</p><p>Now each chain can handle the packet traffic in one of four different ways (actions):</p><ul><li>ACCEPT: Allow the packet in/out.</li><li>REJECT: The target device will reject the packet.</li><li>DROP: The packet is immediately dropped and the target device never sees said packet.</li><li>RETURN: Go to another chain in your table as if it never saw the rejecting chain.</li></ul><p>So now you have a TABLE made up of CHAINS that use ACTIONS to route traffic. Is this getting any easier? Now, you can also have more than one TABLE on a machine &#8211; but that is far too complex for an introductory article. Your machine will also have a default POLICY for each chain (INPUT, OUTPUT, FORWARD). By default these POLICIES are typically set to the action ACCEPT.</p><p>You must also understand that when a packet arrives on a machine it must traverse the iptables CHAIN until it either matches a CHAIN rule or it passes through all rules unscathed. Because of this you want to create your chains carefully. If you do not you can wind up with traffic you want to ACCEPT getting REJECTed because of a poorly ordered chain. For example:</p><p>Let&#8217;s say you want to ACCEPT all ssh traffic within your internal network safe passage to your machines. But what if you have a CHAIN rule that REJECTS ssh traffic in place before that internal rule? If you do this all internal ssh traffic will be REJECTed as well. In this case you would want your TABLE chain order like so:</p><p>CHAIN ACCEPTing incoming LAN ssh traffic</p><p>CHAIN REJECTing incoming WAN ssh traffic</p><p>Let&#8217;s take a look at how you use <em>itables</em> as a command to create or change POLICY chains.</p><p><strong>Usage</strong></p><div
id="attachment_26554" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/06/iptables_l.png"><img
class="size-medium wp-image-26554 " src="http://www.ghacks.net/wp-content/uploads/2010/06/iptables_l-500x352.png" alt="" width="300" height="211" /></a><p
class="wp-caption-text">Figure 1</p></div><p>If you issue the command <em>iptables -L </em>all of your current chains will be listed like what you see in Figure 1. NOTE: The <em>iptables </em>command MUST be run as either the root user or with the help of <em>sudo.</em></p><p>As you can see, in my output, my TABLE consists of the three default policy CHAINS and each is currently set to the action ACCEPT.  What if I want to change my INPUT policy to DROP? After all, do you want incoming traffic to have total access to your machine? You can set the input POLICY to DROP with the following command:</p><p><em>sudo iptables -P INPUT DROP</em></p><p>What you have effectively done above is set your default INPUT POLICY to REJECT. So without creating any new CHAINS all incoming traffic to that machine will be REJECTED. Here&#8217;s the problem with that&#8230;say, for instance, you want to allow ssh traffic into that machine? If you leave it as is this will not happen. Because you have the INPUT POLICY set to REJECT and you have no other CHAINS in place, no incoming traffic will work. Remember, though, what I said about creating CHAINS in the right order to ensure needed traffic can find safe passage.</p><p><strong>Final thoughts</strong></p><p>Thus begins our journey with iptables. It&#8217;s not the most simple system to employ, but it certainly is powerful.  Is it worth the time and effort when there are so many GUI tools to choose from? That depends upon your needs. If you are working on nothing more than a desktop &#8211; then the GUI front-end will more than likely be enough. If, however, you have a server with mission-critical or sensitive data you might need the extra power and flexibility that iptables brings to the table.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/06/14/introduction-to-iptables/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Firewall your Fedora</title><link>http://www.ghacks.net/2010/06/13/firewall-your-fedora/</link> <comments>http://www.ghacks.net/2010/06/13/firewall-your-fedora/#comments</comments> <pubDate>Sun, 13 Jun 2010 21:54:44 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[Fedora]]></category> <category><![CDATA[firewall]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[masquerading]]></category> <category><![CDATA[NAT]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=26523</guid> <description><![CDATA[If you are new to Fedora, or if you are now returning to Fedora from a long haitus (since Fedora 9 for me), Fedora 13 has been a welcoming experience. Not only has it reached near-Ubuntu-like levels of user-friendliness, it includes some of the best tools around for certain jobs. One of those tools is [...]]]></description> <content:encoded><![CDATA[<p>If you are new to Fedora, or if you are now returning to Fedora from a long haitus (since Fedora 9 for me), Fedora 13 has been a welcoming experience. Not only has it reached near-Ubuntu-like levels of user-friendliness, it includes some of the best tools around for certain jobs. One of those tools is the Firewall tool. For Fedora 13 the firewalling tool is system-config-firewall, release 1.2.25. But what is system-config-firewall? To put it simply, this tool is a graphical means of creating firewall rules for your Fedora installation. Now, don&#8217;t think this tool is new to Fedora 13 &#8211; it&#8217;s not. But it is installed by default and actually makes creating a firewall quite easy, even for new users.</p><p>In this article I will introduce you to the Fedora firewall tool and show you how to secure your Linux distribution quickly and reliably.</p><p><span
id="more-26523"></span></p><p><strong>Two ways to success</strong></p><p>There are two ways to configure the firewall tool to meet your needs. The first method is manually. You can decide what to leave open and what to close up. The other method is with the help of a very easy to use Wizard. What these choices do is allow the system to be useful for both new and seasoned users alike.</p><p>What I really like about this tool is that it doesn&#8217;t take anything for granted. It allows you decide what interfaces, services, ports are all trusted; it allows you to create your own custom rules, do port forwarding, and masquerading. This tool is pretty fantastic and will keep your desktop secure. Now, let&#8217;s see how this thing works.</p><p><strong>The Wizard</strong></p><div
id="attachment_26524" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/06/firewall_main.png"><img
class="size-medium wp-image-26524  " src="http://www.ghacks.net/wp-content/uploads/2010/06/firewall_main-500x352.png" alt="" width="300" height="211" /></a><p
class="wp-caption-text">Figure 1</p></div><p>The Wizard is where every new user should start. But before you get to the Wizard you actually have to start the tool. To do this click <strong>System &gt; Administration &gt; Firewall</strong> and the main window will open. From this main window click on the Wizard button to begin the process of creating your firewall.</p><p>The steps of the Wizard are as follows:</p><p>Step 1: Welcome screen (just click Foward).</p><p>Step 2: Select the system you ahve (System with Network access or system without network access).</p><p>Step 3: User skill level (Beginner or Expert).</p><p>Step 4: Configuration (Desktop or Server).</p><p>After you have completed the Wizard click the Apply button on the main window to complete the process. This will clear your current firewall and apply the settings the Wizard has created. Only problem? The wizard really didn&#8217;t do much as far as customization for your needs. In order to really customize your firewall you have to step outside the boundaries of the wizard. Let&#8217;s do that.</p><p>If you look at the main window you can see there is a number of options you can select. If you find the only option in the left pane that is available is Trusted Services, that means you have selected Beginner level. In order to access the other features (Other Ports, Trusted Interfaces, etc) you will have to set yourself up as an Expert by clicking <strong>Options &gt; User Skill Level &gt; Expert.</strong> Once you have done that all the other options will be available.</p><p>At this point you simply need to walk through all of the possible options and select the following:</p><ul><li>Trusted Services: Which services do you want to be made available to hosts and networks.</li><li>Other Ports: Here you can open up any port listed in <strong>/etc/services</strong>.</li><li>Trusted Interfaces: If you have more than one NIC on your machine this will be especially handy. Define internal and external network interfaces and refine what each has open.</li><li>Masquerading: Need to hide an entire range of private IP address behind a single public address? You might need to configure masquerading.</li><li>Port Forwarding: If you need to configure the host machine to forward a port request to another machine, this is where you do it.</li><li>ICMP Filter: Here you configure error messages between computers. You can block things like ping requests here.</li><li>Custom Rules: This is where you can add your very own custom rules to your firewall. We will discuss this further in another article.</li></ul><p>Once you have made any changes make sure you click the Apply button in order to apply the changes.</p><p><strong>Final thoughts</strong></p><p>That&#8217;s pretty much the gist of the Fedora Firewall tool. We will take this further soon with an article on creating your own customized rules with this tool. Until then, enjoy hardening your Fedora box with this easy to use firewall tool.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/06/13/firewall-your-fedora/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Use this iptables script for Web/Mail server security</title><link>http://www.ghacks.net/2009/10/03/use-this-iptables-script-for-webmail-server-security/</link> <comments>http://www.ghacks.net/2009/10/03/use-this-iptables-script-for-webmail-server-security/#comments</comments> <pubDate>Sat, 03 Oct 2009 21:15:59 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[firewall]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[ubuntu server]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=16909</guid> <description><![CDATA[Security. Ah, security. It&#8217;s the make or break for administrators on so many levels. For the Linux operating system you could go in so many directions with your security. You could go the graphical front-end and make life easy but lose some flexibility. Or you could go the far more challenging route and use the [...]]]></description> <content:encoded><![CDATA[<p>Security. Ah, security. It&#8217;s the make or break for administrators on so many levels. For the Linux operating system you could go in so many directions with your security. You could go the graphical front-end and make life easy but lose some flexibility. Or you could go the far more challenging route and use the command line <em>iptables. </em>I will say the GUI tools have come a long way, but in some instances the ease of use the offer gets in the way of being able to granularly configure your server/network security.</p><p>When you spend a lot of time creating and administering the web/mail server combination, it&#8217;s always good to have a solution that is easy to put in place. I have found one that I have used for a while now and trust its security and ease of use. This &#8220;system&#8221; uses a fairly complex iptables script that has just a single line that you will need to modify in order to have sound security for a web/mail server that serves up web pages via Apache on port 80 and mail via SMTP on port 25 and IMAP via port 143. Included in this script is the inclusion of port 25 for secure shell access.</p><p><span
id="more-16909"></span>You will be surprised how simple this script is to use. I have uploaded the script to a pastebin site which you can access using <a
title="iptables script on pastebin" href="http://pastebin.com/f7ae155ad" target="_blank">this address</a>. Copy that script to your Linux server (for the sake of simplicity save it in <strong>~/scripts</strong>, which you will create) and you are ready to set the system up.</p><p><strong>Configuration</strong></p><p>The only line you need to configure (unless you need to change the networking device name and/or want to include extra ports or remove ports from the script) is line 8. This line looks like:</p><p><code>SCRIPT_DIR="/PATH/TO/DIRECTORY"</code></p><p>What you want to have there is the location that will be filled with any IP address blocked by the firewall. For the purposes of this tutorial it will be saved in <strong>~/scripts</strong>.</p><p>Once you have that edited you can save the file and call it <em>start_iptables.sh</em>. Now give the file executable permission with the command:</p><p><em>chmod u+x start_iptables.sh</em></p><p>Now create a new file called <em>stop_iptables.sh</em>. The contents of that file will be:</p><p><code>iptables -F<br
/> iptables -X<br
/> iptables -t nat -F<br
/> iptables -t nat -X<br
/> iptables -t mangle -F<br
/> iptables -t mangle -X<br
/> iptables -P INPUT ACCEPT<br
/> iptables -P OUTPUT ACCEPT<br
/> iptables -P FORWARD ACCEPT</code></p><p>Make that file executable with the command:</p><p><em>chmod u+x stop_iptables.sh</em></p><p>The former script will start your firewall, the latter script will stop it.</p><p><strong>Starting this script</strong></p><p>You can start and stop this script any time you feel like with the command:</p><p><em>sudo ~/scripts/start_iptables.sh</em></p><p>If there are no errors you should see something like:</p><p><em>Starting IPv4 Wall&#8230;</em></p><p>You can also check to see by listing all of your iptables chains with the command:</p><p><em>sudo iptables -L</em></p><p>Stopping the firewall is done with the command:</p><p><em>sudo ~/scripts/stop_iptables.sh</em></p><p><strong>Start at bootup</strong></p><p>Now let&#8217;s make it such that the firewall script starts upon boot of the server (should the need arise).  Open up the <strong>/etc/rc.local </strong>file and add the line:</p><p>/PATH/TO/scripts/start_iptables.sh</p><p>before the &#8220;exit 0&#8243; line.</p><p>Where /PATH/TO/ is the explicit path to the <strong>~/scripts</strong> directory (you can&#8217;t use &#8220;~/&#8221; in rc.local).</p><p>The script will now start at boot.</p><p><strong>Final thoughts</strong></p><p>This easy to install firewall will add a level of saftey to your web/mail server that would be hard to come by with a GUI tool. And if you are using a headless (console only) server, it&#8217;s the only way to go.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/10/03/use-this-iptables-script-for-webmail-server-security/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <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>Firestarter: Simple to use, powerful desktop firewall</title><link>http://www.ghacks.net/2009/09/15/firestarter-simple-to-use-powerful-desktop-firewall/</link> <comments>http://www.ghacks.net/2009/09/15/firestarter-simple-to-use-powerful-desktop-firewall/#comments</comments> <pubDate>Tue, 15 Sep 2009 17:08:58 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[firewall]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[linux firewall]]></category> <category><![CDATA[linux security]]></category> <category><![CDATA[network security]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=16367</guid> <description><![CDATA[Every PC needs protection. Even though the Linux operating system has a reputation for being nearly crack-proof, it is irresponsible to assume this true. Any operating system connected to a network is vulnerable in some way or other and having as much protection as you can is the only way to use a computer intelligently. [...]]]></description> <content:encoded><![CDATA[<p>Every PC needs protection. Even though the Linux operating system has a reputation for being nearly crack-proof, it is irresponsible to assume this true. Any operating system connected to a network is vulnerable in some way or other and having as much protection as you can is the only way to use a computer intelligently.</p><p>Now with the Linux operating system you have a lot of choices for protection. But one of the easiest to use is <a
title="Firestarter" href="http://www.fs-security.com/" target="_blank">Firestarter</a>. Firestarter is one of the easiest-to-use firewalls I have used. And with this simplicity does not come a sacrifice to security. Just because it&#8217;s easy does not mean it lacks protection. Firestarter is powerful and has a ton of features. In this article you will learn how to install Firestarter and set up a basic desktop firewall.</p><p><span
id="more-16367"></span><strong>Feature highlights</strong></p><p>Firestarter includes such features as:</p><ul><li><span
style="background-color: #ffffff">Setup wizard.</span></li><li><span
style="background-color: #ffffff">Real time event viewer.</span></li><li><span
style="background-color: #ffffff">Easy port forwarding.</span></li><li><span
style="background-color: #ffffff">ICMP parameter tuning.</span></li><li><span
style="background-color: #ffffff">Advanced kernel tuning.</span></li><li><span
style="background-color: #ffffff">Suitable for desktops, servers, and gateways.</span></li></ul><p>and much, much more.</p><p><strong>Installation</strong></p><p>The installation of Firestarter is simple. Because it will most likely be found in your distributions&#8217; repositories you will only need to follow these steps for installation:</p><ol><li><span
style="background-color: #ffffff">Open up your Add/Remove Software tool.</span></li><li><span
style="background-color: #ffffff">Search for &#8220;firestarter&#8221; (no quotes).</span></li><li><span
style="background-color: #ffffff">Select Firestarter for installation.</span></li><li><span
style="background-color: #ffffff">Click Apply.</span></li><li><span
style="background-color: #ffffff">Enter your user password.</span></li><li><span
style="background-color: #ffffff">Wait for the installation to complete.</span></li><li><span
style="background-color: #ffffff">Close your Add/Remove Software utility.</span></li></ol><p><strong>Running Firestarter</strong></p><div
id="attachment_16370" class="wp-caption alignleft" style="width: 431px"><a
rel="attachment wp-att-16370" href="http://www.ghacks.net/2009/09/15/firestarter-simple-to-use-powerful-desktop-firewall/firestarter_1/"><img
class="size-full wp-image-16370 " src="http://www.ghacks.net/wp-content/uploads/2009/09/firestarter_1.png" alt="Figure 1" width="421" height="238" /></a><p
class="wp-caption-text">Figure 1</p></div><p>You will find the Firestarter executable located in the Administration sub-menu of the System menu (in GNOME). When you first run Firestarter the wizard will open up. The first screen is the usual Welcome screen so you can just click the Forward button. The first screen you will have to do any configuration with is the Network Device Setup (see Figure 1). In this screen you need to set which interface Firestarter is to listen to. I am using a laptop so I will select my wireless device.</p><div
id="attachment_16374" class="wp-caption alignright" style="width: 426px"><a
rel="attachment wp-att-16374" href="http://www.ghacks.net/2009/09/15/firestarter-simple-to-use-powerful-desktop-firewall/firestarter_nat/"><img
class="size-full wp-image-16374 " src="http://www.ghacks.net/wp-content/uploads/2009/09/firestarter_nat.png" alt="Figure 2" width="416" height="236" /></a><p
class="wp-caption-text">Figure 2</p></div><p>The next screen (see Figure 2) asks if you need to use internet connection sharing to set your machine up as a gateway. If you do you will need to first click the check box to enable it and then select an interface for the other machines to connect to. If you need to use your machine as a DHCP server you will have to have that installed outside of Firestarter.</p><p>Once you have taken care of connection sharing (if it is needed) click the Forward button and you&#8217;re done. The last screen wants to know if you want to start the firewall immediately and has you save your configuration.</p><div
id="attachment_16375" class="wp-caption alignleft" style="width: 282px"><a
rel="attachment wp-att-16375" href="http://www.ghacks.net/2009/09/15/firestarter-simple-to-use-powerful-desktop-firewall/firestarter/"><img
class="size-full wp-image-16375 " src="http://www.ghacks.net/wp-content/uploads/2009/09/firestarter.png" alt="Figure 3" width="272" height="325" /></a><p
class="wp-caption-text">Figure 3</p></div><p>While Firestarter is running you will see a small icon in your notification area that looks like a blue circle with a right-pointing triangle. If you click on that it will open up the Firestarter main window (see Figure 3). From this window you can Stop the firewall, lock the firewall, view the events log, edit both your inbound and outbound policies, and monitor active connections.</p><p>In order to monitor active connections expand the Active Connections listing which will list every connection made to and from your machine. In both the Active connections section and the Events tab you can right click an entry and take action. For instance, in the Active Connections section you can right click an entry and look up the hostname of that entry. In the Events tab you can do more. If you right click an entry in the Events tab you can do the following:</p><ul><li><span
style="background-color: #ffffff">Allow connections from source.</span></li><li><span
style="background-color: #ffffff">Allow inbound service for everyone.</span></li><li><span
style="background-color: #ffffff">Allow inbound service for source.</span></li><li><span
style="background-color: #ffffff">Disable events from source.</span></li><li><span
style="background-color: #ffffff">Disable events on port.</span></li><li><span
style="background-color: #ffffff">Lookup hostnames.</span></li></ul><p>Finally, in the Policy tab, you can right click any blank area and add a rule that will apply to a connection from a host or to a port/service. When you go to add a rule you will only need enter the IP address (or domain) and then add a comment.</p><p><strong>Final thoughts</strong></p><p>Firestarter makes the often daunting task of creating a firewall for a Linux machine simple. If you have ever dealt with iptables you will understand when I say this is a huge relief for desktop users who do not want to take the time to learn to use the underlying technology.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/09/15/firestarter-simple-to-use-powerful-desktop-firewall/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Configure a Linux Firewall with Webmin</title><link>http://www.ghacks.net/2009/03/27/configure-a-linux-firewall-with-webmin/</link> <comments>http://www.ghacks.net/2009/03/27/configure-a-linux-firewall-with-webmin/#comments</comments> <pubDate>Fri, 27 Mar 2009 18:53:45 +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 Basic]]></category> <category><![CDATA[firewall]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[remote administration]]></category> <category><![CDATA[webmin]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=11501</guid> <description><![CDATA[Recently I wrote two articles, one on Creating a Linux Firewall with fwbuilder, and one Webmin: One Stop Linux Configuration. So I thought it might be a good idea to do an article that combined the two and illustrated how to configure a Linux firewall with Webmin. As you would expect, with the help of [...]]]></description> <content:encoded><![CDATA[<p>Recently I wrote two articles, one on <a
title="Create a Linux Firewall with fwbuilder" href="http://www.ghacks.net/2009/03/25/build-a-quick-and-reliable-firewall-with-fwbuilder/" target="_blank">Creating a Linux Firewall with fwbuilder</a>, and one Webmin: <a
title="Webmin: One Stop Linux Configuration" href="http://www.ghacks.net/2009/03/24/webmin-one-stop-linux-configuration/" target="_blank">One Stop Linux Configuration</a>. So I thought it might be a good idea to do an article that combined the two and illustrated how to configure a Linux firewall with Webmin.</p><p>As you would expect, with the help of Webmin, creating a firewall is very simple. And the default Webmin installation comes complete with a firewall module built in, so there is nothing to install (once you have Webmin installed.) All you have to do is point your browser to http://IP_OR_DOMAIN:1000 (Where IP_OR_DOMAIN is the actual IP address or domain hosting your Webmin installation.) If Webmin is installed on your desktop you can point your browser to http://localhost:10000.</p><p><span
id="more-11501"></span></p><div
id="attachment_11502" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/03/webmin_firewall_top.png"><img
class="size-medium wp-image-11502" src="http://www.ghacks.net/wp-content/uploads/2009/03/webmin_firewall_top-500x215.png" alt="Webmin Firewall" width="300" height="129" /></a><p
class="wp-caption-text">Webmin Firewall</p></div><p>Once you are in the Webmin window you will want to click on the Servers link and then click on the Linux Firewall link. The image to the left is the top portion of the configuration screen. This image is showing a default iptables chain that is installed by default in Fedora. As you can see these chain rules are easily modified, moved, appended, and removed.</p><div
id="attachment_11503" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/03/webmin_firewall_add_rule.png"><img
class="size-medium wp-image-11503" src="http://www.ghacks.net/wp-content/uploads/2009/03/webmin_firewall_add_rule-500x348.png" alt="The Add Rule Window" width="300" height="209" /></a><p
class="wp-caption-text">The Add Rule Window</p></div><p>I want to illustrate how easy it is to add a new rule to the already existing chain. Let&#8217;s say you want to add a rule that denies all incoming connections to port 110 (pop3) to your machine. To do this click on the Add Rule button to reveal the Add Rule window (see image to the right.)</p><p>The primary configurations to take for this would be:</p><ul><li>Rule Comment: Give the rule a name.</li><li>Action to take: Drop</li><li>Source Address: Any</li><li>Destination Address: 192.168.1. (This will depend upon your needs. If you have a static IP address for the machine enter that.</li><li>Destination Port: 110</li></ul><p>Once you have filled this out, click Create Rule and you will be returned to the main window with your rule listed.</p><div
id="attachment_11504" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/03/webmin_firewall_buttons.png"><img
class="size-medium wp-image-11504" src="http://www.ghacks.net/wp-content/uploads/2009/03/webmin_firewall_buttons-500x329.png" alt="Final Steps" width="300" height="197" /></a><p
class="wp-caption-text">Final Steps</p></div><p>Once you have your new rule(s) created you have to scroll down and click the Apply Configuration button (see the image to the left). You will also notice, near the bottom, buttons that allow you to enable your firewall at boot, reset your firewall, and reset to the currently active firewall.</p><p>Once you have applied your configuration, if you want to remove a rule you just created you have to go back to the rule list, select the rule you want to delete, and click the Delete Selected button.</p><p>It is also important to make sure you have your rules set up in the right order. It is very easy to arrange your rules with the Webmin Firewall Module. Go to the rule listing and click either the up or down arrow the corresponds to the rule you want to move, The rule is then moved one slot up or down (depending upon which arrow you click). But don&#8217;t forget to click the Apply Configuration or your move will not stick.</p><p><strong>Final Thoughts</strong></p><p>If you are looking for a very simple, web-based, solution for creating a firewall the Webmin firewall module might be the answer for you. Not only is it easy to use, you can administer your firewall remotely.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/03/27/configure-a-linux-firewall-with-webmin/feed/</wfw:commentRss> <slash:comments>5</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>
