<?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; linux firewall</title> <atom:link href="http://www.ghacks.net/tag/linux-firewall/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 17:32:23 +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>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> </channel> </rss>
