<?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>Ubuntu Linux Help &#187; configure</title> <atom:link href="http://ubuntulinuxhelp.com/tag/configure/feed/" rel="self" type="application/rss+xml" /><link>http://ubuntulinuxhelp.com</link> <description>Tips, Tricks and How To&#039;s for the Ubuntu Linux User</description> <lastBuildDate>Thu, 19 Jan 2012 13:15:19 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>CIFS VFS Shutdown Error When Using SMBFS</title><link>http://ubuntulinuxhelp.com/cifs-vfs-shutdown-error-when-using-smbfs/</link> <comments>http://ubuntulinuxhelp.com/cifs-vfs-shutdown-error-when-using-smbfs/#comments</comments> <pubDate>Tue, 15 Dec 2009 14:20:22 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[How To]]></category> <category><![CDATA[9.04]]></category> <category><![CDATA[cifs]]></category> <category><![CDATA[configure]]></category> <category><![CDATA[damba]]></category> <category><![CDATA[error]]></category> <category><![CDATA[file]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[jaunty]]></category> <category><![CDATA[network]]></category> <category><![CDATA[network-manager]]></category> <category><![CDATA[shares]]></category> <category><![CDATA[shutdown]]></category> <category><![CDATA[smbfs]]></category> <category><![CDATA[tweak]]></category> <category><![CDATA[umount]]></category> <category><![CDATA[vfs]]></category> <category><![CDATA[virtual]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/?p=1810</guid> <description><![CDATA[I recently installed a fresh copy of Ubuntu Jaunty (9.04) and set up access to (DNS-321) my network shares using smbfs; as in the post &#8220;Sharing the Same Files Between Two PC’s&#8220;. Shortly afterwards, when rebooting, shutting down, etc. I received this error message: ACPID: Exiting NM_SYSTEM_SETTING: SCPlugin-Ifupdown: Devices removed (UDI: /org/freedesktop/hal/devices/net_00_30_1B_BE_38_3D) [601.136038] CIFS VFS: [...]]]></description> <content:encoded><![CDATA[<p>I recently installed a fresh copy of <strong>Ubuntu Jaunty</strong> (9.04) and set up access to (DNS-321) my <strong>network shares using smbfs</strong>; as in the post &#8220;<a
href="http://ubuntulinuxhelp.com/sharing-the-same-files-between-two-pcs/" title="Sharing the Same Files Between Two PC’s"  target="_self">Sharing the Same Files Between Two PC’s</a>&#8220;. Shortly afterwards, when rebooting, <strong>shutting down</strong>, etc. I received this <strong>error message</strong>:</p><p><span
style="color: #ff0000;">ACPID: Exiting</span></p><p><span
style="color: #ff0000;">NM_SYSTEM_SETTING: SCPlugin-Ifupdown: Devices removed (UDI: /org/freedesktop/hal/devices/net_00_30_1B_BE_38_3D)</span></p><p><span
style="color: #ff0000;">[601.136038] CIFS VFS: Server not responding<br
/> [601.136085] CIFS VFS: No response for CMD 50 mid 166</span></p><p>Then the <strong>system would sit for <span
style="text-decoration: underline;">several</span> seconds</strong> before doing anything. This never occurred with my Ubuntu 8.04 system (remembering that I installed and configured the network shares the same way).</p><p><strong>Side note:</strong> For those not familiar, &#8220;VFS&#8221; refers to &#8220;<strong>Virtual File System</strong>&#8221; (node) and &#8220;CIFS&#8221; is &#8220;<strong>Common Internet File System</strong>). CIFS VFS is a virtual file system / project for Linux to allow access to servers and storage appliances. More from the documentation I found during research, is found on:  <a
href="http://linux-cifs.samba.org/" title="Advanced Common Internet File System for Linux "  target="_blank">http://linux-cifs.samba.org/</a></p><p>As near as I can surmise, since <strong>network-manager is installed</strong>, this is probably and issue where scripting for shutting down <strong>network-manager has higher priority than umount scripting</strong> and / or a permissions issue? A case in point is that the umount command would not work until I used sudo.</p><div
id="attachment_1811" class="wp-caption aligncenter" style="width: 475px"><a
href="http://xkcd.com/c149.html"  target="_blank"><img
class="size-full wp-image-1811" title="Sudo Make Me a Sandwich" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/12/sandwich.png?9d7bd4" alt="XKCD Comic - Make me a sandwich" width="465" height="386" /></a><p
class="wp-caption-text">XKCD Comic - Make me a sandwich</p></div><p>Initially there were two ways I could fix this:</p><p>1) Various forums and site <strong>suggest removing network-manager from the system</strong> and configuring the network myself. It&#8217;s a possibility, but I didn&#8217;t want to do that.</p><p>2) <strong>Use terminal to sudo umount</strong> //192.168.3.10/sites &amp;&amp; sudo umount //192.168.3.10/stock each time I wanted to restart, shutdown, etc. Again that&#8217;s a possible solution, but annoying to keep having to do.</p><p>Strangely, Google was not helpful (for me) as there were only a few mentions of this error in returned search results, and I could not glean much from them.</p><p>I played with the idea of using a <span
id="more-1810"></span><strong>script to automatically run the root based umount</strong> command each time, but that became problematic for me (I&#8217;m not a developer), as I had trouble getting the script to work properly. I did find a thread on Ubuntu forums, &#8220;<a
href="http://web.archive.org/web/20070605014311rn_1/ubuntuforums.org/showthread.php?t=171958&amp;highlight=cifs" title="Cifs not unmountig and causing a problem even on shutdown"  target="_blank">Cifs not unmounting and causing a problem even on shutdown</a>&#8221; but it was removed (this link is to the Wayback Internet Archive, that still, luckily,  had a copy of that content), and finally found another script already written by &#8220;<a
href="http://ubuntuforums.org/member.php?u=119739" title="Max Durden"  target="_blank">max.durden</a>&#8221; on the same forum: How to: <a
href="http://ubuntuforums.org/showthread.php?t=293513" title="Automatically umount cifs partitions"  target="_blank">Automatically umount cifs partitions</a>.</p><p><strong>I tried his solution and it worked!</strong> Because I&#8217;m worried about this thread also disappearing (I&#8217;ve encountered missing thread links <span
style="text-decoration: underline;">several times</span> on the forum), here are the steps below&#8230;</p><p>Download Max&#8217;s fix file: <a
href="http://dl.dropbox.com/u/3306550/mountcifs.zip" title="Download mountcifs.zip file"  target="_blank">mountcifs.zip</a></p><p>Extract the contents and copy the extracted  file (named mountcifs) to the<span
style="color: #3366ff;"> /etc/init.d/</span> directory (<strong><span
style="color: #ff6600;">sudo cp mountcifs /etc/init.d/</span></strong>).</p><p>Make the file executable with the command <span
style="color: #ff6600;"><strong>sudo chmod +x mountcifs</strong></span></p><p>Hard link that file using his names in the commands he specified in the original post:</p><p><strong><span
style="color: #ff6600;">cd /etc/rc0.d<br
/> sudo ln -s /etc/init.d/mountcifs K02mountcifs</span></strong></p><p><strong><span
style="color: #ff6600;">cd /etc/rc6.d<br
/> sudo ln -s /etc/init.d/mountcifs K02mountcifs</span></strong></p><p>The above fix works perfectly, no more errors, thanks to &#8220;Max&#8221; at Ubuntu Forums. It you have any questions about his fix, again, please visit his solution at <a
href="http://ubuntuforums.org/showthread.php?t=293513" title="Max Durden automatic unmount fix"  target="_blank">http://ubuntuforums.org/showthread.php?t=293513</a> for much, much more information and follow up!</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/cifs-vfs-shutdown-error-when-using-smbfs/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Leave the Num Lock On!</title><link>http://ubuntulinuxhelp.com/leave-the-num-lock-on/</link> <comments>http://ubuntulinuxhelp.com/leave-the-num-lock-on/#comments</comments> <pubDate>Mon, 14 Dec 2009 15:59:03 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[How To]]></category> <category><![CDATA[9.04]]></category> <category><![CDATA[configure]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[gdm]]></category> <category><![CDATA[jaunty]]></category> <category><![CDATA[keyboard]]></category> <category><![CDATA[num lock]]></category> <category><![CDATA[numlock]]></category> <category><![CDATA[numlockx]]></category> <category><![CDATA[tweak]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/?p=1807</guid> <description><![CDATA[I recently (finally) upgraded to Ubuntu 9.04 (I&#8217;ve always had issues with x.10 releases for some reason). Until the upgrade I wanted to remain with the LTS track, but (it seems) less developers are supporting it, hence the move. I&#8217;ve performed excessive numbers of installs of Ubuntu and various applications on test boxes, but they [...]]]></description> <content:encoded><![CDATA[<div
id="attachment_1808" class="wp-caption alignleft" style="width: 150px"><img
class="size-full wp-image-1808" title="Leave the Num Lock on!" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/12/rant.jpg?9d7bd4" alt="Leave the Num Lock on!" width="140" height="140" /><p
class="wp-caption-text">Leave the Num Lock on!</p></div><p>I recently (finally) upgraded to Ubuntu 9.04 (I&#8217;ve always had issues with x.10 releases for some reason). Until the upgrade I wanted to remain with the LTS track, but (it seems) less developers are supporting it, hence the move. I&#8217;ve performed excessive numbers of installs of Ubuntu and various applications on test boxes, but they (obviously) were not my primary system, it&#8217;s important to note this, as ordinarily I did not notice a small <strong>annoyance regarding Num Lock</strong>. On my updated primary system, I noticed this issue immediately, when I tried to log in.</p><p><strong>Here&#8217;s the rant&#8230;</strong> If I set the BIOS in my hardware, to turn on the Num Lock, then <strong>I&#8217;ve done so for a specific reason! </strong>For <strong>Ubuntu to keep turning it off</strong> when I log out, reboot or start up the PC &#8211; That&#8217;s just plain annoying. I did a bit of Googling to try and find if the issue is being addressed (I remember <strong>fixing it using numlockx</strong>, and will get to that shortly), but only found a few threads where developers were discussing the &#8220;how tos&#8221; and &#8220;maybe&#8221; of the issue. While I&#8217;m not a developer, by any stretch of the imagination, I do know that other OS&#8217;s accomplish this feat (of abiding by the BIOS num lock settings). So&#8230; Ubuntu, please abide by the BIOS settings (with regards to Num Lock).</p><p>However, for those of you who want to ensure the Num Lock is on, we can use the numlockx tool. There&#8217;s probably a ton of sites listing this and discussing it at great length, but for ease of reference, here are my notes from the last time I had to fix this issue:<span
id="more-1807"></span></p><p>Install numlockx via aptitude &#8211;&gt; <span
style="color: #ff6600;"><strong>sudo aptitude install numlockx</strong></span></p><p>Edit your desktop management settings (make SURE up BACKUP any important data you do not want to lose, just in case):</p><p><strong><span
style="color: #ff6600;">sudo gedit </span><span
style="color: #ff6600;">/etc/gdm/Init/Default</span></strong><span
style="color: #ff6600;"><strong></strong></span></p><p>Add the following just above the statement (in that file), that says &#8220;exit 0&#8243;:</p><p><span
style="color: #008000;">if [ -x /usr/bin/numlockx ]; then<br
/> /usr/bin/numlockx on<br
/> fi</span></p><p>Make sure you manually turn your Num Lock off, log out and log back in.</p><p><span
style="text-decoration: line-through;">One thing I found was that during the log in, the Num Lock was on, as soon as I logged in, it turned off again.  Grrrrrrrr&#8230;.</span> My Bad! It worked properly on subsequent reeboots.</p><p>The Ubuntu Wiki for Jaunty says:</p><p><strong>&#8220;System &#8211;&gt; Administration &#8211;&gt; Keyboard &amp; Mouse &#8211;&gt; Keyboard &#8211;&gt;&#8221;turn on Numlock on Startup</strong>&#8221;</p><p>But&#8230; It&#8217;s not an option (Keyboard &amp; Mouse)  in my Jaunty (which I just installed as a clean install).</p><p>Maybe there&#8217;ll be a fix for this in 10.04? (I hope so).</p><p>Have a better solution? PLEASE let us all know. ;)</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/leave-the-num-lock-on/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Adding a Terminal Hot Key Shortcut &#8211; Reader Questions</title><link>http://ubuntulinuxhelp.com/adding-a-terminal-hot-key-shortcut-reader-questions/</link> <comments>http://ubuntulinuxhelp.com/adding-a-terminal-hot-key-shortcut-reader-questions/#comments</comments> <pubDate>Fri, 04 Dec 2009 14:58:22 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[How To]]></category> <category><![CDATA[configure]]></category> <category><![CDATA[hot key]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[keyboard]]></category> <category><![CDATA[preferences]]></category> <category><![CDATA[shortcut]]></category> <category><![CDATA[terminal]]></category> <category><![CDATA[tweak]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/?p=1789</guid> <description><![CDATA[Janice emailed asking: &#8220;&#8230;and lots of your posts show us how to do things in a terminal. Each time I have to go to Applications / Accessories / Terminal, isn&#8217;t there a faster way, like some key combination or something?&#8230;&#8221; In Ubuntu (for that matter pretty much all Linux distros), you can set up &#8220;hot [...]]]></description> <content:encoded><![CDATA[<p>Janice emailed asking:</p><p><em><span
style="color: #3366ff;">&#8220;&#8230;and lots of your posts show us how to do things in a terminal. Each time I have to go to Applications / Accessories / Terminal, isn&#8217;t there a faster way, like some key combination or something?&#8230;&#8221;</span></em></p><p>In Ubuntu (for that matter pretty much all Linux distros), you can <strong>set up &#8220;hot keys&#8221; to execute functions</strong>. In your case we&#8217;re going to set up a <strong>hot key for opening the Terminal</strong> in Ubuntu 8.04LTS. This way, you can access Terminal much faster!</p><p>Ubuntu already has a &#8220;Keyboard Shortcuts&#8221; tool. You can find it via <span
id="more-1789"></span><span
style="color: #008000;">System</span> &#8211;&gt; <span
style="color: #008000;">Preferences</span> &#8211;&gt; <span
style="color: #008000;">Keyboard Shortcuts</span></p><p><img
class="alignnone size-full wp-image-1790" title="Keyboard Shortcuts" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/12/keyboard.png?9d7bd4" alt="Keyboard Shortcuts" width="472" height="439" /></p><p>Scroll down (or up) to where it says <strong>&#8220;Open a terminal window&#8221;</strong> (as seen in the above screenshot).</p><p>Click on that line and <strong>select your shortcut by entering the key combination you want</strong>. In my case I selected ALT + F12. Now every time I press ALT and F12, a terminal will pop up.</p><p><strong>Caveat:</strong> <span
style="color: #ff0000;">MAKE SURE</span> that the key or key combination you select <strong>does not interfere</strong> with what has been configured for other actions!</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/adding-a-terminal-hot-key-shortcut-reader-questions/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Faster Internet With an Old Laptop &#8211; Revisited</title><link>http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-revisited/</link> <comments>http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-revisited/#comments</comments> <pubDate>Tue, 01 Dec 2009 18:26:58 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[Hands On]]></category> <category><![CDATA[8.04]]></category> <category><![CDATA[access]]></category> <category><![CDATA[acl]]></category> <category><![CDATA[caching]]></category> <category><![CDATA[configure]]></category> <category><![CDATA[fwebmin]]></category> <category><![CDATA[hosts]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[internet]]></category> <category><![CDATA[proxy]]></category> <category><![CDATA[server]]></category> <category><![CDATA[speed]]></category> <category><![CDATA[squid]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[ssl]]></category> <category><![CDATA[web]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/?p=1777</guid> <description><![CDATA[One of my earlier posts, Faster Internet With an Old Laptop – Ubuntu and Squid, discussed how to install Squid and Webmin on an old laptop. The premise being that having a proxy server on the network helped speed up web browsing (because of the caching capabilities), reduced external bandwidth usage, etc. In that post, [...]]]></description> <content:encoded><![CDATA[<p>One of my earlier posts, <a
href="http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/" title="Faster Internet With an Old Laptop – Ubuntu and Squid"  target="_self">Faster Internet With an Old Laptop – Ubuntu and Squid</a>, discussed how to<strong> install Squid and Webmin</strong> on an old laptop. The premise being that having a proxy server on the network helped <strong>speed up web browsin</strong>g (because of the caching capabilities), reduced external bandwidth usage, etc.</p><p>In that post, I was careful to <strong>install Squid3 first</strong>, so that Webmin would use it (in the management interface) instead of the older Squid 2.x; and that the installation would be smoother. One thing I noticed was that <strong>webmin was using an older version of squid</strong>:</p><p><em><span
style="color: #3366ff;">&#8220;&#8230;I noticed that webmin (for some strange reason) thought squid 2.6 was installed&#8230;&#8221;</span></em></p><p>One of our readers (<strong>atass</strong>) provided a <a
href="http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/comment-page-1/#comment-3729" title="Comment from atass"  target="_self">useful comment in that post</a>:</p><p><em><span
style="color: #3366ff;">&#8220;The reason is that you have also installed squid3 AND 2.6. 2.6 was installed via webmin because it is not configured by default to find squid3</span></em></p><p><span
style="color: #3366ff;"><em>I think you should correct this procedure so that you correctly configure webmin to use squid3 by going to module configuration and changing to squid3 paths. Avoid installing Squid via webmin cause it will install Squid 2.6 regardless if you have squid 3 installed&#8221;</em></span></p><p>So this needed fixing, here are the settings (below) I changed to get Squid3 going. Above all, remember to back up data or settings before changing anything.<span
id="more-1777"></span></p><p>Log into your webmin interface and select &#8220;<strong>Squid Proxy Server</strong>&#8221; from the left side navigation menu.<br
/> At the top select &#8220;<strong>Module Config</strong>&#8220;.<br
/> Change the following values:</p><p>Full path to squid config file: <span
style="color: #008000;">/etc/squid3/squid.conf</span><br
/> Squid executable: <span
style="color: #008000;">squid3</span><br
/> Full path to squid cache directory: <span
style="color: #008000;">/var/spool/squid3</span><br
/> Full path to squid log directory: <span
style="color: #008000;">/var/log/squid3</span></p><p>Now remember to stop <strong>squid and start squid3</strong>, via ssh (substituting for your IP address instead of mine):</p><p><strong><span
style="color: #ff6600;">ssh root@192.168.1.200</span></strong></p><p><strong><span
style="color: #ff6600;">sudo /etc/init.d/squid3 restart</span></strong></p><p><strong><span
style="color: #ff6600;">sudo /etc/init.d/squid stop</span></strong></p><p>Now try surfing with your <strong>web browser configured to use the Squid3</strong> proxy. If you get an error message (like I did):</p><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p><span
style="color: #3366ff;">The requested URL could not be retrieved</span></p><p><span
style="color: #3366ff;">While trying to retrieve the URL: http://ubuntulinuxhelp.com/</span></p><p><span
style="color: #3366ff;">The following error was encountered:</span></p><p><span
style="color: #3366ff;">* Access Denied. Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.</span></p><p><span
style="color: #3366ff;">Your cache administrator is xxxx@xxxx.com.</span></p><p><span
style="color: #3366ff;">Generated Tue, 01 Dec 2009 17:44:31 GMT by squidbox (squid/3.0.STABLE1)</span></p><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>Double check your Access Control in the &#8220;Squid Proxy Server&#8221;, <strong>Select the padlock icon that says &#8220;Access Control&#8221;.</strong></p><p><strong>Mirror the original settings</strong> you had in the Access Control <strong>for the older version of Squid</strong>. Then select the<strong> &#8220;Proxy Restrictions&#8221; tab</strong>, and again <strong>mirror the settings.</strong></p><p>Then I restarted Squid3</p><p><strong><span
style="color: #ff6600;">sudo /etc/init.d/squid3 restart</span></strong></p><p>And tried to surf the web&#8230; and everything works!</p><p>Big thanks to the reader that pointed out the issue. That&#8217;s appreciated! :)</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-revisited/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Using Built-in Policy Installer in Firewall Builder</title><link>http://ubuntulinuxhelp.com/using-built-in-policy-installer-in-firewall-builder/</link> <comments>http://ubuntulinuxhelp.com/using-built-in-policy-installer-in-firewall-builder/#comments</comments> <pubDate>Wed, 17 Jun 2009 16:32:36 +0000</pubDate> <dc:creator>Vadim Kurland</dc:creator> <category><![CDATA[How To]]></category> <category><![CDATA[configure]]></category> <category><![CDATA[firewall]]></category> <category><![CDATA[fwbuilder]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[security]]></category> <category><![CDATA[server]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/?p=1622</guid> <description><![CDATA[This article continues the series of articles on Firewall Builder, a graphical firewall configuration and management tool that supports many Open Source firewall platforms as well as Cisco IOS access lists and Cisco ASA (PIX). Firewall Builder was introduced on this site earlier with articles Getting Started With Firewall Builder and Using Built-in Policy Importer [...]]]></description> <content:encoded><![CDATA[<p>This article continues the series of articles on Firewall Builder,     a graphical firewall configuration and management tool that     supports many Open Source firewall platforms as well as Cisco IOS     access lists and Cisco ASA (PIX).  Firewall Builder was introduced     on this site earlier with articles <a
href="http://ubuntulinuxhelp.com/getting-started-with-firewall-builder/" title="Getting Started with Firewall Builder"  target="_self"> Getting Started With Firewall Builder</a> and <a
href="http://ubuntulinuxhelp.com/using-built-in-policy-importer-in-firewall-builder/" title="Using Built-in Policy Importer in Firewall Builder"  target="_blank">Using Built-in Policy Importer in Firewall Builder</a>.</p><p>More information on Firewall Builder, pre-built binary packages     and source code, documentation and <strong>Firewall Builder     Cookbook</strong> can be found on the project web site     at <a
href="http://www.fwbuilder.org/" title="www.fwbuilder.org"  target="_blank"> www.fwbuilder.org</a>. Watch <a
href="http://blog.fwbuilder.org/" title="Project blog"  target="_blank">Project Blog</a> for announcements and articles on all aspects of using     Firewall Builder.</p><p>After firewall configuration has been generated by     one of the policy compilers and saved in a file on     disk in the format required by the target firewall,     it needs to be transferred to the firewall machine     and activated. This function is performed by the     component we call &#8220;Policy Installer&#8221; which is part     of the Firewall Builder GUI.</p><p>Starting with version 2.0, Firewall Builder comes with built-in     installer that uses SSH to communicate with the     firewall. Installer works on all OS where Firewall Builder is     available: Linux, FreeBSD, Windows and Mac OS X.  On Linux, *BSD     and Mac OS X it uses standard ssh client that comes with the     system; on Windows it uses putty.</p><p>Installer needs to be able to copy generated firewall script to     the firewall and then run it there. In order to do so, it uses     secure shell. The program does not include ssh code, it uses     external ssh client.  On Linux, BSD and Mac OS X it uses standard     ssh client <strong>ssh</strong> and secure shell file copy     program <strong>scp</strong> that come with the system; <span
id="more-1622"></span>on Windows it     uses <strong>plink.exe</strong> and <strong>pscp.exe</strong>.  Full directory path to     ssh client program can be configured in the Preferences dialog     (accessible via Edit/Preferences menu), however if you are on     Linux, *BSD or Mac and use standard ssh client that is available     via your PATH environment variable, you do not need to change     default value there.</p><p>Installer works differently depending on the targert platform. In     case of Linux and BSD based firewalls it uses <strong>scp</strong> to copy     generated configuration files to the firewall machine and then     uses <strong>ssh</strong> to log in and run the script. In case of Cisco     routers or ASA appliance (PIX), it logs in, switched     to <strong>enable</strong> and then <strong>configuration</strong> mode and executes     configuration commands one by one in a manner similar     to <strong>expect</strong> scripts. It inspects router&#8217;s replies looking for     errors and stops if it detects one. In the end, it issues     command <strong>write mem</strong> to store new configuration in memory and     logs out.</p><p>Built-in policy installer has been designed to work with dedicated     firewall machine, that is, when computer where you run Firewall     Builder GUI and actual firewall are different     machines. Nevertheless, it can be used when they are the same     machine as well. The only difference is that in all commands below     you would use the name or address of the machine where you run     Firewall Builder instead of the name or address of the dedicated     firewall. SSH client will then connect back to the same machine     where it runs and everything will work exactly the same as if it     was different computer.</p><h2>How does installer decide what address to use to connect to the firewall</h2><p>Installer does not use the name of the firewall to     connect to, it always connects to its IP address. It     starts by scanning interfaces of the firewall object     looking for one that is marked as <em>&#8220;Management       interface&#8221;</em> using checkbox in the interface     object dialog. Installer will use address of this     interface to connect to. The <em>&#8220;management       interface&#8221;</em> checkbox looks like shown on the     next screenshot:</p><p><img
class="alignnone size-full wp-image-1624" title="Management interface" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/management_interface.png?9d7bd4" alt="Management interface" width="472" height="220" /></p><p>If your firewall has multiple addresses and you want     to use the one that is not assigned to its interface     in the fwbuilder object, then you can overwrite the     address using entry field in     the <em>&#8220;installer&#8221;</em> tab of the &#8220;advanced&#8221;     firewall object settings dialog, like this:</p><p><img
class="alignnone size-full wp-image-1625" title="Alternative firewall address" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/alternative_fw_address.png?9d7bd4" alt="Alternative firewall address" width="472" height="242" /></p><p>More about other input fields in this dialog below.</p><p>Finally you can overwrite the address on one-time     basis just for the install session using entry field     in the installer options dialog. This is the same     dialog where you enter password:</p><p><img
class="alignnone size-full wp-image-1626" title="Alternative FW address" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/alternative_fw_address_2.png?9d7bd4" alt="Alternative FW address" width="472" height="236" /></p><p>This works for all supported firewall     platforms, i.e. iptables on Linux, pf on OpenBSD and     FreeBSD, ipfw on FreeBSD and Mac OS X, ipfilter on     FreeBSD, Cisco IOS access lists and Cisco ASA     (PIX). Regardless of the platform, installer follows     the rules described here to determine what address     it should use to connect to the firewall.</p><h2>Configuring installer on Windows</h2><p>You can skip this section if you run Firewall     Builder GUI on Linux, *BSD or Mac OS X.</p><p>Here is the link to <a
href="http://www.fwbuilder.org/slideshows/using_putty/slide_1.html" title="How to configure built-in installer to use PuTTY ssh client on Windows."  target="_blank"> slide show </a> that demonstrates the process.</p><p>Download and install putty.exe, plink.exe and pscp.exe     somewhere on your machine (say, in     C:putty). Download URL is <a
href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/" title="PuTTY: A Free Telnet/SSH Client"  target="_blank">http://www.chiark.greenend.org.uk/~sgtatham/putty/</a></p><p>Installer does not use <strong>putty.exe</strong> but it will be     very useful for troubleshooting and for setting up     sessions and ssh keys.</p><p>In the Edit/Preferences dialog, in the &#8220;SSH&#8221; tab,     use &#8220;Browse&#8221; buttons to locate <strong>plink.exe</strong>.     Hit &#8220;OK&#8221; to save preferences. If you installed it     in <strong>C:putty</strong>, then you should end up     with <strong>C:puttyplink.exe</strong> in this entry     field. Do the same to configure path to <strong>pscp.exe</strong>.</p><p>You may log in to the firewall using regular user account or as root. See instructions below for an explanation how to configure sudo if you use regular user accounts. This part of the configuration does not depend on the OS you run Firewall Builder.</p><p>Before you try to use fwbuilder installer with plink.exe and pscp.exe, test it from the command line to make sure you can log in to your firewall. If this is the first time you try to log in to the firewall machine using putty.exe, plink.exe or pscp.exe, then it will discover new host key and ask you if it is correct and if you want to save it in cache. There are lots of resources on the Internet that explain what does this mean and how you should verify key accuracy before you accept it. If the key is already known to the program it will not ask you about it and will just proceed to the part where it asks you to enter password. Enter the password and hit &#8220;Return&#8221; to see if you can log in and see command line prompt from the firewall.</p><p>Here is the command (assuming you use account &#8220;fwadmin&#8221; to manage     firewall &#8220;guardian&#8221;):</p><p><strong><span
style="color: #ff6600;">C:Usersvadim&gt;c:PuTTYplink.exe -l fwadmin guardian</span></strong></p><p><img
class="alignnone size-full wp-image-1627" title="plink login" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/plink_login.png?9d7bd4" alt="plink login" width="472" height="201" /></p><p><strong>NOTE:</strong> Built-in installer does not use GUI ssh     client <strong>putty.exe</strong>, it uses command line     utilities that come from the same     author <strong>plink.exe</strong> and <strong>pscp.exe</strong>. You can     test with <strong>putty.exe</strong> but do not enter path to it     in the SSH tab of the Preferences dialog in fwbuilder,     it won&#8217;t work.</p><p>Configuring installer to use regular user account to manage the firewall:</p><p>Before v3.0.4 built-in installer could only use     regular account to activate policy if this account was     configured on the firewall to use sudo without     password. Starting with v3.0.4 this is not necessary     anymore because installer can recognize sudo password     prompts and enter password when needed.</p><ul><li> Create an account on the firewall (say,       &#8220;fwadmin&#8221;), create a group &#8220;fwadmin&#8221; and make       this user a member of this group. Most modern       Linux systems automatically create group with       the name the same as the name of the user       account.<p
class="command"><strong><span
style="color: #ff6600;">useradd fwadmin </span></strong></p></li><li> Create directory /etc/fw/ on the firewall, make       it belong to group fwadmin, make it group       writable<p
class="command"><strong><span
style="color: #ff6600;">mkdir /etc/fw<br
/> chgrp fwadmin /etc/fw<br
/> chmod g+w fwadmin /etc/fw</span></strong></li><li>Configure sudo to permit user fwadmin execute         firewall script and a couple of other commands         used by fwbuilder policy installer.  Run <strong>visudo</strong> on the firewall to edit file <strong>/etc/sudoers</strong> as follows:<p
class="command"><strong><span
style="color: #ff6600;">Defaults:%fwbadmin   !lecture , passwd_timeout=1 , timestamp_timeout=1<br
/> # User alias specification<br
/> %fwbadmin  ALL = PASSWD: /etc/fw/&lt;FWNAME&gt;.fw , /usr/bin/pkill , /sbin/shutdown</span></strong></p><p>here &lt;FWNAME&gt; is the name of the firewall.         Installer will log in to the firewall as user         fwadmin, copy firewall script to file         /etc/fw/&lt;FWNAME&gt;.fw and then use the         following command to execute it:</p><p
class="command"><strong><span
style="color: #ff6600;">ssh fwadmin@firewall sudo -S /etc/fw/&lt;FWNAME&gt;.fw </span></strong></p><p>Installer needs to be able to run <strong>pkill           shutdown</strong> to kill <strong>shutdown</strong> command         that may be running if you tried to install         policy in <strong>testing mode</strong> before. In         testing mode installer copies firewall         script to temporary directory <strong>/tmp</strong> then runs command <strong>shutdown -r           timeout</strong> to schedule reboot in a few         minutes and finally runs firewall script. To         cancel scheduled reboot you need to install         policy again, with test mode checkbox turned         off. In this case installer will copy         firewall script to its permanent place and         use <strong>pkill</strong> to kill running shutdown         command to cancel reboot.</li><li> set up ssh access to the firewall. Make sure you       can log in as user fwadmin using ssh from your       management workstation:<p
class="command"><strong><span
style="color: #ff6600;">ssh -l fwadmin &lt;FWNAME&gt; </span></strong></p><p>You may use either password or public key authentication; the       installer will work either way. Use <strong>putty.exe</strong> or <strong>plink.exe</strong> to test ssh access if you are on Windows       (see above for the explanation how to do this on Windows).</li><li> in the &#8220;installer&#8221; tab of the &#8220;firewall settings&#8221;       dialog of the firewall object put user name you use       to log in to the firewall (here it       is <em>&#8220;fwadmin&#8221;</em>): <img
class="alignnone size-full wp-image-1631" title="Installer tab" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/installer_tab_1.png?9d7bd4" alt="Installer tab" width="472" height="140" /><img
src="file:///home/roger/Sites/ubuntulinuxhelp.com/docs/vadim-kurland/using_built_in_installer_fwbuilder/installer_tab_1.png" alt="" /></li><li> if you need to use alternative name or IP       address to communicate with the firewall, put it       in the corresponding field in the same dialog       page</li><li> Make sure entry field &#8220;directory on the firewall       where script should be installed&#8221; is set       to <strong>/etc/fw</strong>. Firewall Builder is not going to       create this directory, so you need to create it       manually before you install firewall policy (see       above).</li><li> Leave &#8220;Policy install script&#8221; and &#8220;Command line options&#8221; fields blank.</li></ul><h2>Configuring installer if you use root account to manage the firewall:</h2><ul><li> Create directory /etc/fw/ on the firewall, make it       belong to root, make it writable</li><li> set up ssh access to the firewall. Make sure you       can log in as root using ssh from your       management workstation:<p
class="command"><strong><span
style="color: #ff6600;">ssh -l root &lt;firewall_name&gt; </span></strong></p><p>You may use either password or public key       authentication; the installer will work either       way.</li><li> in the &#8220;installer&#8221; tab of the &#8220;firewall       settings&#8221; dialog of the firewall object put       &#8220;root&#8221; as the user name you use to log in to the       firewall</li><li> Make sure entry field &#8220;directory on the firewall       where script should be installed&#8221; is set       to <strong>/etc/fw</strong></li><li> Leave &#8220;Policy install script&#8221; and &#8220;Command line options&#8221; fields are blank</li></ul><h2>Configuring installer if you regularly switch between Unix and Windows workstations using the same .fwb file and want to manage the firewall from both</h2><p>First of all, the .fwb file is portable and can be     copied back and forth between Linux/BSD and windows     machines. Even comments and object names entered in     local language should be preserved since the GUI     uses UTF-8 internally.</p><p>Built-in installer relies on path settings for ssh     and scp in Edit/Preferences/SSH.  Since preferences     are stored outside of the .fwb file, the installer     should work just fine when .fwb file is copied from     Unix to Windows and back. Just configure path to ssh     program in preferences on each system using default     settings &#8220;ssh&#8221; on Linux and path to plink.exe on windows     and give it a try.</p><p></p><h2>Always permit SSH access from the management workstation to the firewall</h2><p>One of the typical errors that even experienced     administrators make sometimes is block ssh access to     the firewall from the management workstation. You need     your workstation to be able to communicate with the     firewall in order to be able to make changes to the     policy, so you always need to add a rule to permit     this.  Firewall Builder can simplify this and generate     this rule automatically if you put an IP address of     your workstation in the entry field on the first page     of firewall settings dialog. Here is the screenshot     that illustrates this setting for an iptables     firewall; management station has an IP address     192.168.1.100</p><p><img
class="alignnone size-full wp-image-1632" title="Backup access" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/backup_access.png?9d7bd4" alt="Backup access" width="472" height="521" /></p><h2>Using putty sessions on Windows</h2><p>putty allows one to store destination host name or     address, user name and bunch of other parameters in     a session so that they all can be called up at     once. If you wish to use sessions, do the following:</p><ul><li> Configure putty as usual, create and test session         for the firewall, test it using putty outside of         the Firewall Builder. When you use session,         firewall host name and user name are stored in the         session file. Firewall Builder allows you to enter         session name in the entry field in the firewall         settings dialog where you would normally enter         alternative address of the firewall. Comment next         to the entry field reminds you about this.  Just         type session name in that field, leave user name         field blank and save the settings.</li><li> Once you start the installer, do not enter user         name in the &#8220;User name&#8221; field on the first page of         installer wizard, however you need to enter the         login and enable passwords. Configure the rest of         installer options as usual, they do not change         when you use putty sessions.</li></ul><h2>How to configure installer to use alternative ssh     port number</h2><p>If ssh daemon on your firewall is listening on an     alternative port, then you need to configure     built-installer so that it will run <strong>scp</strong> and <strong>ssh</strong> clients with command line parameters     that would make them connect to this port. This is     done in the &#8220;installer&#8221; tab of the firewall object     &#8220;advanced&#8221; settings dialog as shown on the following     screenshot (here we set the port to &#8220;2222&#8243;):</p><p><img
class="alignnone size-full wp-image-1633" title="Different SSH paot" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/different_ssh_port.png?9d7bd4" alt="Different SSH paot" width="472" height="309" /></p><p>On Unix command line option that specifies port number     is different for <strong>ssh</strong> and <strong>scp</strong>. It is     lowercase <strong>-p</strong> for <strong>ssh</strong> and     uppercase <strong>-P</strong> for <strong>scp</strong>.  If you     use <strong>putty</strong> tools <strong>plink.exe</strong> and <strong>pscp.exe</strong> on Windows, the option to specify     alternative port number is <strong>-P</strong> (capital &#8220;P&#8221;) for     both.</p><p>You can use the same input fields in this dialog to     add any other command line parameters for <strong>ssh</strong> and <strong>scp</strong>, for example this is where you can     confiugre parameters to make it use alternative     identity file (private keys). This information is     saved with a firewall object rather than globally     because you may need to use different parameters for     different firewall machines, such as different key     files or ports.</p><h2>How to configure installer to use ssh private keys     from a special file</h2><p>You can use the same entry fields in this dialog to     provide other additional command line parameters for <strong>ssh</strong> and <strong>scp</strong>, for example to use keys     from a different identity file. Here is how it looks     like:</p><p><img
class="alignnone size-full wp-image-1634" title="Different SSH keys" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/different_ssh_keys.png?9d7bd4" alt="Different SSH keys" width="472" height="63" /></p><p>Here I configure <strong>ssh</strong> and <strong>scp</strong> to use     alternative port and alternative identity     file <strong>~/.ssh/fwadmin_identity</strong>. The command line     parameter for the port is different for <strong>ssh</strong> and <strong>scp</strong>, but parameter for the identity file is     the same <strong>-i</strong> for both utilities.</p><p>On Windows, the simplest way (or may be the only way)     to use alternative keys is to use putty sessions.</p><h2>Troubleshooting ssh access to the firewall</h2><p>Built-in policy installer will not work if ssh access     to the firewall is not working. Test it using this     command on Linux if use you user &#8220;fwadmin&#8221; to manage     firewall:</p><p
class="command"><strong><span
style="color: #ff6600;">ssh -l fwadmin firewall </span></strong></p><p>If you use root account to manage the firewall, the     command becomes</p><p
class="command"><strong><span
style="color: #ff6600;">ssh -l root firewall </span></strong></p><p>On Windows use <strong>putty.exe</strong> or <strong>plink.exe</strong> to     do this:</p><p
class="command"><strong><span
style="color: #ff6600;">C:Usersvadim&gt;c:PuTTYplink.exe -l fwadmin firewall </span></strong></p><p
class="command"><strong><span
style="color: #ff6600;">C:Usersvadim&gt;c:PuTTYplink.exe -l root firewall </span></strong></p><p>If you can not log in using ssh at this point, verify     that ssh daemon is working on the firewall, that     existing firewall policy does not block ssh access and     ssh daemon configuration in /etc/ssh/sshd_config     permits login for root (if you plan to use root     account to manage the policy).</p><p></p><h2>Running built-in installer to copy generated     firewall policy to the firewall machine and activate     it there.</h2><p>Now that all preparations are complete, we can move on and     actually try to install newly generated firewall policy. Select     firewall object in the object tree in Firewall Builder GUI, click     right mouse button and use menu item &#8220;Install&#8221;. The program will     recompile the policy and open installer dialog.</p><p><img
class="alignnone size-full wp-image-1635" title="Installer IPtables" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/installer_iptables.png?9d7bd4" alt="Installer IPtables" width="472" height="499" /></p><p>(This how installer options dialog looks like for     iptables, pf, ipfilter and ipfw firewalls).</p><p>Here the program already entered user     name <strong>fwadmin</strong> in the &#8220;User Name&#8221; field, but     you can change it for one installation session if     you wish. Next you need to enter the password for     this user. <strong><em>This is the password of user         fwadmin on the firewall machine</em></strong>. Address     that will be used to comunicate with the firewall is     also entered by the program automatically, it is     taken from the firewall settings. You can change it     for one installation session as well.</p><p>Other installer parameters do the following:</p><ul><li><strong>Quiet install</strong>: as the name implies,         this checkbox suppresses all progress output of         the installer</li><li><strong>Verbose</strong>: this checkbox has the opposite         action, it makes the installer print a lot of         debugging information, including ssh client debug         output.</li><li><strong>Store a copy of fwb file on the           firewall</strong>: if this checkbox is on, the         installer will copy not only generated firewall         configuration files to the directory on the         firewall machine which is configured in the         &#8220;installer&#8221; tab of the firewall object dialog,         but also original .fwb data file as well. <strong>Use           of this option is discouraged if you manage many           firewalls from the same .fwb file because           distributing file that contains security policy           of multiple firewalls to all of them is a bad           idea</strong>.</li><li><strong>Test run</strong>: if this checkbox is on,         policy installer will copy firewall         configuration files to a temporary directory on         the firewall and will run them from there. The         intent is to test generated configuration         without making it permanent. If firewall machine         reboots, it will activate previous firewall         policy. Installer uses subdirectory <strong>&#8220;tmp&#8221;</strong> inside installation directory on the firewall         machine which is configured in the &#8220;installer&#8221;         tab of the firewall object dialog. If         installation directory configured there         is <strong>/etc/fw</strong> (as in the screenshot earlier         in this HOWTO), then installer will put files in         the directory <strong>/etc/fw/tmp</strong> when test         install option is in effect. <strong><em>You need to             create this directory on the firewall before             using this installation mode</em></strong>.</li><li> <strong>Schedule reboot in&#8230; </strong>: If this option is         on, installer schedules firewall reboot after         given time in minutes. This can be used as a         measure of last resort to protect against lost         of communication with the firewall which may         happen if there is an error in the new firewall         policy which makes it block ssh access from the         management machine. Installer uses         command <strong>shutdown -r +10min</strong> to schedule         reboot in 10 min. If installation has been         successfull and everything works right, you need         to repeat installation with options &#8220;test         install&#8221; and &#8220;Schedule reboot&#8221; turned off to         cancel reboot and install new policy         permanently.</li></ul><p>After all parameters are set and the password     entered, hit &#8220;OK&#8221; to start installation.</p><p>If this is the first time your management machine is     logging in to the firewall via ssh, it will find out     that ssh host key of the firewall is unknown to it     and will present you with a dialog:</p><p><img
class="alignnone size-full wp-image-1636" title="New SSH host key" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/new_ssh_host_key_dlg.png?9d7bd4" alt="New SSH host key" width="472" height="189" /></p><p>Here is says that it does not know host key of the     firewall &#8220;crash&#8221;. This is nothing more than a copy     of the warning message presented by the ssh     client. You should verify the host key manually and     if it matches, click &#8220;Yes&#8221;. If you click &#8220;No&#8221; in the     dialog, installation process will be interrupted.</p><blockquote><p>Installer only recognizes ssh client warning message     about unknown public host keys. If you rebuld your     firewall machine, which means its host key changes,     ssh will print different warning message which     fwbuilder installer does not recognise. In this case     you will see this message in the installer progress     window, but installation process will get stuck. You     need to use ssh client (<strong>ssh</strong> on Unix     or <strong>putty.exe</strong> on Windows) to update host key     before you can use fwbuilder policy installer with     this firewall again.</p></blockquote><p>After this, installer copies files to the firewall     and runs policy script there. You can monitor its     progress in the dialog as shown on the screenshot:</p><p><img
class="alignnone size-full wp-image-1637" title="Install dialogue overview" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/install_dialog_overview.png?9d7bd4" alt="Install dialogue overview" width="472" height="515" /></p><p>This is an example of successfull installation     session. Installer records the status in the left     hand side panel of the dialog. If you use installer     to update several firewall machines in one session,     their names and corresponding status of the     installation session for each will be shown in the     panel on the left. You can save installer log to a     file using &#8220;Sabe log to file&#8221; button, this can be     useful for documentation or troubleshooting.</p><p></p><h2>Running built-in installer to copy generated     firewall policy to Cisco router or ASA (PIX)</h2><p>From the user&#8217;s point of view the installer works the     same when you manage Cisco router or ASA firewall,     with only few minor differences. First of all, the     first screen of the installer, where you enter the     password, offers another input field for     the <strong>enable</strong> password as well.</p><p>You should be able to use IPv6 address to communicate     with the router.</p><p><img
class="alignnone size-full wp-image-1638" title="Cisco install dialogue" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/install_dialog_cisco.png?9d7bd4" alt="Cisco install dialogue" width="472" height="507" /></p><p>Most of the options and parameters in this dialog are     the same as those for Linux firewalls (see above). The     following parameters work differently for Cisco     devices:</p><ul><li><strong>Test run</strong>: if this checkbox is on, policy         installer will copy new access lists configuration         to the router or ASA appliance but will not         issue <strong>write mem</strong> command in the end.</li><li> <strong>Schedule reboot in&#8230; </strong>: If this option is         on, installer issues command <strong>reload in NNN</strong> after new configuration has been loaded. This         schedules reboot in NNN minutes. In combination         with &#8220;test run&#8221; option this can serve as a         roll-back mechanism in case of complete loss of         contact with the router or firewall because of an         error in the policy. Since &#8220;test run&#8221; does not         perform <strong>&#8220;write mem&#8221;</strong> in the end, the         original access list stays in startup         configuration of the router and will be loaded         after reboot.</li><li> <strong>Cancel reboot if policy activation was           successful</strong>: If this option is on, installer         issues command <strong>reload cancel</strong> in the end of         the policy activation process to cancel previously         scheduled reboot.</li></ul><p>Here is a screenshot of installation session to a     Cisco router. Note the output at the very top of the     log that shows how installer detected previously     unknown RSA host key and accepted it after the user     clicked &#8220;Yes&#8221; in the pop-up dialog (not shown on the     screenshot). It then logged into the router; you can     see the <strong>banner motd</strong> output from the     router. After this, installer switched     to <strong>enable</strong> mode, set terminal width and turned     off terminal pagination using <strong>terminal length 0</strong> command and finally switched to the <strong>configuration       mode</strong>. It then started enterig generated     configuration line by line.</p><p><img
class="alignnone size-full wp-image-1639" title="Cisco install progress" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/install_cisco_progress.png?9d7bd4" alt="Cisco install progress" width="472" height="735" /></p><p>The final part of the installation session looks like     this:</p><p><img
class="alignnone size-full wp-image-1640" title="Cisco install ends" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/install_cisco_progress_end.png?9d7bd4" alt="Cisco install ends" width="472" height="449" /></p><p>This was a successful installation session, with no     errors. Installer finished entering configuration     lines and issued <strong>exit</strong> command to exit     configuration mode, then <strong>wr mem</strong> command to save     configuration to memory and finally <strong>exit</strong> again     to log out.</p><p></p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/using-built-in-policy-installer-in-firewall-builder/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing ATI R128 &#8211; Reader Questions</title><link>http://ubuntulinuxhelp.com/installing-ati-r128-reader-questions/</link> <comments>http://ubuntulinuxhelp.com/installing-ati-r128-reader-questions/#comments</comments> <pubDate>Tue, 16 Jun 2009 14:05:25 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[Q & A]]></category> <category><![CDATA[8.04]]></category> <category><![CDATA[ati]]></category> <category><![CDATA[configure]]></category> <category><![CDATA[driver]]></category> <category><![CDATA[hardware]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[r128]]></category> <category><![CDATA[rage]]></category> <category><![CDATA[Videos]]></category> <category><![CDATA[x11]]></category> <category><![CDATA[xorg.conf]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/?p=1603</guid> <description><![CDATA[&#8220;Danny&#8221;, one of our readers asks: &#8220;I have a ati r128 graphics driver. I dont see the driver in hardware drivers at all. The driver is a inf file. I dont know how to install it. Please help me!&#8221; I don&#8217;t have much information provided in the question (more information is always helpful and allows [...]]]></description> <content:encoded><![CDATA[<p>&#8220;Danny&#8221;, one of our readers asks:</p><p><em><span
style="color: #3366ff;">&#8220;I have a ati r128 graphics driver. I dont see the driver in hardware drivers at all. The driver is a inf file. I dont know how to install it. Please help me!&#8221;</span></em></p><p>I don&#8217;t have much information provided in the question (more information is always helpful and allows for better answers).  However, I hope the following will help.</p><p>First, the inf file is a Windows based file, you don&#8217;t need that in Linux. I had an ATI Rage 128 card a while back, and a do remember having issues. If I recall correctly (this was a few years ago for me), the issue was that the <strong>card was not detected properly</strong>. In your case, I&#8217;d suggest that the card driver is not ATI, instead you&#8217;ll want R128 because (again, if I remember correctly) <strong>X11 detects the card incorrectly</strong>.</p><p>If you&#8217;re not sure what &#8220;X11&#8243; means, please see the article: <a
rel="nofollow" href="http://en.wikipedia.org/wiki/X11" title="X Window System"  target="_blank">X Window System</a></p><p>From their site:</p><p><span
style="color: #3366ff;"><em>&#8220;&#8230;The X Window System (commonly X or X11) is a computer software system and network protocol that provides a graphical user interface (GUI) for networked computers, and was initially developed as part of Project Athena. It implements the X display protocol and provides windowing on raster graphics (bitmap) computer displays and manages keyboard and pointing device control functions&#8230;&#8221;</em></span></p><p>Here&#8217;s one approach you can take to try and fix this&#8230;<span
id="more-1603"></span></p><p>As mentioned, you need to ensure that R128 is the used driver. To accomplish this, please edit your xorg.conf file, but <strong><span
style="color: #ff0000;">make a BACKUP FIRST</span></strong>! In fact, it&#8217;s good practise to keep a backup of any data you find valuable, that way if you feel a need to reinstall your OS, you will not lose all your valuable files. So, ALWAYS keep a current backup of files you never want to lose &#8211; I learned this the hard way (more than once).</p><p>Here&#8217;s the terminal command to do this:</p><p><strong><span
style="color: #ff6600;">sudo gedit /etc/X11/xorg.conf</span></strong></p><p>Look for two lines that starts with:</p><p><strong><span
style="color: #3366ff;">Section &#8220;Device&#8221;<br
/> Identifier    &#8220;Configured Video Device&#8221;</span></strong></p><p>Now ensure the following line (just under those) that says:</p><p><strong><span
style="color: #3366ff;">Boardname &#8220;ATI Rage 128&#8243;</span></strong></p><p>is changed to reflect the real name of your video card.</p><p>Next look for the line that says:</p><p><strong><span
style="color: #3366ff;">Driver &#8220;ati&#8221;</span></strong></p><p>and change it to say:</p><p><strong><span
style="color: #3366ff;">Driver &#8220;r128&#8243;</span></strong></p><p>The other directives should be okay. Save the file and reboot your system: <strong><span
style="color: #ff6600;">sudo shutdown -r now</span></strong></p><p>I hope this information helps you overcome the driver issue.</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/installing-ati-r128-reader-questions/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Faster Internet With an Old Laptop &#8211; Ubuntu and Squid</title><link>http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/</link> <comments>http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/#comments</comments> <pubDate>Tue, 02 Jun 2009 16:47:56 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[Hands On]]></category> <category><![CDATA[8.04]]></category> <category><![CDATA[access]]></category> <category><![CDATA[acl]]></category> <category><![CDATA[caching]]></category> <category><![CDATA[configure]]></category> <category><![CDATA[fwebmin]]></category> <category><![CDATA[hosts]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[internet]]></category> <category><![CDATA[proxy]]></category> <category><![CDATA[server]]></category> <category><![CDATA[speed]]></category> <category><![CDATA[squid]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[ssl]]></category> <category><![CDATA[web]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/?p=1517</guid> <description><![CDATA[I&#8217;ve posted more than once about tips we can complete to improve our web surfing. This morning I was cleaning out some old hardware (to take to the recycling centre) when I happened upon one of the last old laptops I had. It&#8217;s an older IBM Thinkpad T22, Type 2647 with 256MB of RAM and [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;ve posted more than once about tips we can complete to improve our web surfing. This morning I was cleaning out some old hardware (to take to the recycling centre) when I happened upon one of the last <strong>old laptops</strong> I had.</p><p>It&#8217;s an older IBM Thinkpad T22, Type 2647 with 256MB of RAM and a 20GB hard drive. A couple years ago, I had 2o of these units, bought from a recycling depot. I sold them all on eBay, and only have a couple left now.</p><p><img
class="alignnone size-full wp-image-1518" title="IBM Thinkpad T22" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/thinkpad.jpg?9d7bd4" alt="IBM Thinkpad T22" width="472" height="354" /></p><p>Whilst packing up the stuff to cart off, it occurred to me that I could put this old laptop to work by <strong>installing a proxy / caching server</strong> on it, and have my we browsers, pull much of the regularly requested web content off a locally cached network server. This means <strong>installing Squid</strong>. Not sure what Squid is: <a
rel="nofollow" href="http://en.wikipedia.org/wiki/Squid_cache" title="Squid (Software)"  target="_blank">Squid (software)</a>, from their site:</p><p><span
style="color: #3366ff;"><em>&#8220;&#8230;Squid is a proxy server and web cache daemon. It has a wide variety of uses, from speeding up a web server by caching repeated requests, to caching web, DNS and other computer network lookups for a group of people sharing network resources, to aiding security by filtering traffic. Although primarily used for HTTP and FTP, Squid includes limited support for several other protocols including TLS, SSL, Internet Gopher and HTTPS. The development version of Squid (3.1) includes IPv6 and ICAP support&#8230;&#8221;</em></span></p><p>Needless, as I currently enjoy using Ubuntu, that&#8217;s what I used as the OS for this project. Installing a Squid server on the network, provided me with a few important benefits:</p><ul><li>Less bandwidth usage.</li><li>Faster web surfing.</li><li>Network cached copies of pages I regularly visit (if the original server is down).</li></ul><p>Firstly, make sure you&#8217;ve<span
id="more-1517"></span><strong> installed a copy of Ubuntu 8.04 Server (Hardy) on the old laptop</strong>. Not sure how to do that? Here&#8217;s a guide:<a
href="http://howtoforge.com/perfect-server-ubuntu8.04-lts" title="The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server)"  target="_blank"> The Perfect Server &#8211; Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server)</a>. In my case I skipped (did not install) Apache, MySQL, Postfix, BIND9, Proftpd, POP3/IMAP and Webalizer. I don&#8217;t need those, I only need the Squid proxy / caching server. I also installed Webmin (see below), so that I can easily manage this server remotely. A word to the wise however, I found out (about 2 years ago) to <strong>install Squid first</strong>! &#8211; That way the Webmin installation goes much smoother (I was using Debian for the server  at that time, and Ubuntu in another instance). Also, for those of you who have been following my blog (and for my welcomed new readers), I also played with Squid and Ubuntu about a year ago, in this post: <a
href="http://ubuntulinuxhelp.com/speed-up-and-improve-web-surfing-with-an-ubuntu-squid-server/" title="Speed Up and Improve Web Surfing With an Ubuntu Squid Server."  target="_self">Speed Up and Improve Web Surfing With an Ubuntu Squid Server</a>. My earlier Ubuntu, Squid post was based on Ubuntu 6.06LTS and Squid 2.6 &#8211; Things have changed and applications, etc. have improved, so I though a revisit and reinstallation of the Squid server was in order.</p><p>I downloaded and burned a copy of the <strong>Ubuntu 8.04 LTS Server</strong> from Ubuntu&#8217;s official site at: <a
href="http://www.ubuntu.com/getubuntu/download-server" title="Download Ubuntu 8.04 LTS Server"  target="_blank">http://www.ubuntu.com/getubuntu/download-server</a>. The bare minimum requirements are:</p><p>300 MHz x86 processor<br
/> 64 MB of system memory (RAM)<br
/> At least 4 GB of disk space (for full installation and swap space)<br
/> VGA graphics card capable of 640&#215;480 resolution<br
/> CD-ROM drive or network card</p><p>256MB of RAM, made the install slower than I&#8217;m used to. You can find more requirements info for Ubuntu Server (Hardy) at <a
href="https://help.ubuntu.com/community/Installation/SystemRequirements" title="Ubuntu System Requirements"  target="_blank">Ubuntu System Requirements</a>.</p><p>After downloading, and burning a copy of the ubuntu-8.04.2-server-i386 CD, complete a base install of Ubuntu server (using the howtoforge.com guide above as a reference). I also installed an SSH server so that I could tuck the old laptop away and complete everything else in  comfort,  using my desktop.</p><p><strong><span
style="color: #ff6600;">sudo aptitude install ssh openssh-server</span></strong></p><p>will get the ssh server up and running for you.</p><p>Throughout this post, you&#8217;ll need to substitute your IP addresses and names to match those in your own network. After the installation of the base server is complete, open a terminal from your (comfortable) desktop and enter:</p><p><span
style="color: #ff6600;"><strong>ssh root@192.168.1.200</strong></span></p><p>192.168.1.200 is the address of  there server I just installed.</p><p>Use the command:</p><p><span
style="color: #ff6600;"><strong>su</strong></span></p><p>to enter root. That way I don&#8217;t have to keep typing &#8220;sudo&#8221;.</p><p>Install Squid usingthe command:</p><p><span
style="color: #ff6600;"><strong>aptitude install squid3</strong></span></p><p>After Squid has finished installing and you&#8217;ve rebooted the system, you may want to install Webmin, a GUI interface to manage that server, still in terminal, you can download a copy of the webmin package into and directory you like. The command to download is:</p><p><span
style="color: #ff6600;"><strong>wget http://prdownloads.sourceforge.net/webadmin/webmin-1.470.tar.gz</strong></span></p><p>Untar it like this:</p><p><span
style="color: #ff6600;"><strong>tar xzvf webmin-1.470.tar.gz</strong></span></p><p>Webmin needs perl to run, so I installed some packages:</p><p><span
style="color: #ff6600;"><strong>aptitude install install libauthen-pam-perl libnet-ssleay-perl libpam-runtime openssl perl perl-modules</strong></span></p><p>Enter my extracted contents of the webmin-1.470.tar.gz package  by:</p><p><span
style="color: #ff6600;"><strong>cd webmin-1.470</strong></span></p><p>And run the installation for webmin:</p><p><span
style="color: #ff6600;"><strong>./setup.sh </strong></span></p><p>I changed the port number away from 10000 to <strong>26395</strong>. I changed the admin account to &#8220;root&#8221;, and entered a new password.</p><p>At the end of the webmin installation, I got the success message that include the URL: <strong>http://squid.localdomain:26395/</strong></p><p>On my local PC, I had to edit my hosts file like this:</p><p><span
style="color: #ff6600;"><strong>sudo gedit /etc/hosts<br
/> </strong></span><br
/> Then added the following line:</p><p><span
style="color: #ff6600;"><strong>192.168.1.200 squid.localdoman    squid</strong></span></p><p>Now we want to reboot the squid server using:</p><p><span
style="color: #ff6600;"><strong>shutdown -r now</strong></span></p><p>After rebooting the server and logging back in (via ssh), you can see if the webmin service is running by using the command:</p><p><span
style="color: #ff6600;"><strong>sudo /etc/init.d/webmin status</strong></span></p><p>You should see something like:</p><p><span
style="color: #3366ff;">webmin (pid 4573) is running</span></p><p>To see if it is listening on the correct port number, the command to check that is:</p><p><span
style="color: #ff6600;"><strong>sudo netstat -tap</strong></span></p><p>You should find a line in the output of the above command that says something like:</p><p><span
style="color: #3366ff;">tcp    0    0 *:26395    *:*    LISTEN    4573/perl</span></p><p>(Remember, port 26395 was the one we chose to tun webmin on &#8211; And webmin uses perl).</p><p>Now open a web browser and visit webmin. The URL I would use is:</p><p><strong>http://squid.localdomain:26395/</strong></p><p>(Again, remember that I <strong>added the appropriate information to my hosts file</strong> so that the browser can find the URL).</p><p>I chose not to enable SSL for logging into webmin (as I don&#8217;t need it in this LAN). After logging in, we want to configure squid. Look for something (on the left) that says &#8220;<strong>Unused Modules</strong>&#8221; and look for &#8220;<strong>Squid Proxy Server</strong>&#8220;, click that link. You will see an option to install the squid (webmin) module. <strong>Select that link to install it</strong>.</p><p>After installing, look on the left side menu and under &#8220;<strong>Servers</strong>&#8221; you will see &#8220;<strong>Squid Proxy Server</strong>&#8220;. Select &#8220;Squid Proxy Server&#8221; and then select the &#8220;<strong>Ports and Networking</strong>&#8221; option.</p><p>Note that squid is running on the <strong>default port 3128</strong>. Now return back to the squid module page by clicking &#8220;Module Index&#8221; (at the top of the page). Select the &#8220;<strong>Access Control</strong>&#8221; icon and see a button at the bottom of the page that says &#8220;Browser Regexp&#8221; &#8211; That contains a drop down list. Use the drop down list to select &#8220;<strong>Client Address</strong>&#8221; then click the button that says &#8220;<strong>Create new ACL</strong>&#8220;.</p><p>Enter your values in the form. I used the following:</p><p>ACL Name: localdomain<br
/> From IP: 192.168.1.0<br
/> To IP: 192.168.1.255<br
/> Netmask: 255.255.255.0</p><p>I didn&#8217;t change anything else and clicked on &#8220;Save&#8221;.</p><p>Now click the tab (at the top) that says &#8220;<strong>Proxy restrictions</strong>&#8220;. Click (at the bottom) &#8220;<strong>Add proxy restrictions</strong>&#8221; and look for the new ACL name you just created (mine was called &#8220;localdomain&#8221;) <span
style="color: #ff0000;">*** Make sure you are looking under the column that says &#8220;Match ACLS&#8221; ***</span> and click on that name. Now click the radio button that says &#8220;<strong>Allow</strong>&#8220;. Then select &#8220;save&#8221; at the bottom.</p><p>In the new screen that display, use the up arrow to <span
style="color: #ff0000;">move &#8220;localdomain&#8221; (or whatever you called your new ACL rule) so that it is just above the line that says &#8220;Deny all&#8221;</span>. If you don&#8217;t, your browsers will not be able to get access.</p><p>Now in your ssh window, use the command:</p><p><span
style="color: #ff6600;"><strong>shutdown -r now</strong></span></p><p>This will restart the server and squid3 (along with then new configuration). I noticed that webmin (for some strange reason) thought squid 2.6 was installed. Therefore, webmin was unable to start the server. But after rebooting the system, the &#8220;Stop Squid&#8221; button appeared &#8211; so I assume the webmin module has started working properly (no need for me to play with webmin again, as I&#8217;ll use SSH to access and reboot, etc., so I did not try).</p><p>As a final step, <strong>make sure that you set the proxy server address in your web browser</strong>. In my case the information to enter as a proxy server for each web browser is:</p><p><strong>192.168.1.200:3128</strong></p><p><strong>Update, July 03, 2009: </strong>I found a problem when trying to access statistics. Here&#8217;s the issue and fix&#8230;</p><p>Issue:  When trying to access the &#8220;Cache Manager Statistics&#8221; under &#8220;Squid Proxy Server&#8221;, the following error displays:</p><p><em><span
style="color: #3366ff;">&#8220;The Squid cache manager program /usr/lib/cgi-bin/cachemgr.cgi was not found on your system. Maybe your module configuration is incorrect.&#8221;</span></em></p><p>Fix:  <span
style="color: #ff6600;"><strong>aptitude install squid-cgi</strong></span></p><p>Cache manager statistics will now work.</p><p>Other sites with related information:</p><ul><li><a
rel="nofollow" href="http://shibuvarkala.blogspot.com/2008/11/howto-block-websites-using-squid-proxy.html" title="Howto Block websites using Squid Proxy in Ubuntu Linux"  target="_blank">Howto Block websites using Squid Proxy in Ubuntu Linux</a></li><li><a
rel="nofollow" href="http://shibuvarkala.blogspot.com/2008/11/howto-block-port-in-squid-proxy-ubuntu.html" title="Howto Block a Port in Squid Proxy , Ubuntu Linux"  target="_blank">Howto Block a Port in Squid Proxy , Ubuntu Linux</a></li><li><a
href="http://en.kioskea.net/faq/sujet-804-ubuntu-installing-an-http-proxy-server-squid" title="[Ubuntu]Installing an HTTP proxy server (Squid)"  target="_blank">[Ubuntu]Installing an HTTP proxy server (Squid)</a></li><li><a
href="http://chrisjohnston.org/2008/installing-squid-proxy-using-webmin-on-ubuntu-server-8041" title="Installing Squid Proxy using Webmin on Ubuntu Server 8.04.1"  target="_blank">Installing Squid Proxy using Webmin on Ubuntu Server 8.04.1</a></li><li><a
href="http://www.linuxjournal.com/article/10407" title="Paranoid Penguin - Building a Secure Squid Web Proxy, Part I"  target="_blank">Paranoid Penguin &#8211; Building a Secure Squid Web Proxy, Part I</a></li></ul><p>Enjoy faster web surfing as less external files are requested for pages you commonly visit and local cached copies are delivered to your browser. I hope you ladies and gents have fun playing with this, as I hope this post helps you out. Questions, suggestions, corrections, even additions?&#8230;. Please feel free to add them to you comments!</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Getting Started with Firewall Builder</title><link>http://ubuntulinuxhelp.com/getting-started-with-firewall-builder/</link> <comments>http://ubuntulinuxhelp.com/getting-started-with-firewall-builder/#comments</comments> <pubDate>Mon, 09 Mar 2009 16:36:20 +0000</pubDate> <dc:creator>Vadim Kurland</dc:creator> <category><![CDATA[Hands On]]></category> <category><![CDATA[How To]]></category> <category><![CDATA[configure]]></category> <category><![CDATA[filters]]></category> <category><![CDATA[firewall]]></category> <category><![CDATA[fwbuilder]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[ipv4]]></category> <category><![CDATA[ipv6]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[network]]></category> <category><![CDATA[opensource]]></category> <category><![CDATA[rules]]></category> <category><![CDATA[security]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/?p=1331</guid> <description><![CDATA[This guide presents an introduction to Firewall Builder. Firewall Builder (also known as fwbuilder), is a GUI firewall configuration and management tool that supports iptables (netfilter), ipfilter, pf, ipfw, Cisco PIX (FWSM, ASA) and Cisco routers extended access lists. Both professional network administrators and hobbyists managing firewalls with policies more complex that is allowed by [...]]]></description> <content:encoded><![CDATA[<p>This guide presents an introduction to Firewall Builder. <strong>Firewall Builder</strong> (also known as <strong>fwbuilder</strong>), is a GUI firewall configuration and management tool that supports <strong>iptables (netfilter), ipfilter, pf, ipfw, Cisco PIX (FWSM, ASA) and Cisco routers extended access lists</strong>. Both professional network administrators and hobbyists managing firewalls with policies more complex that is allowed by simple web based UI can simplify management tasks with the application. The program runs on Linux, FreeBSD, OpenBSD, Windows and Mac OS X and can manage both local and remote firewalls.</p><p>Firewall Builder is packaged with most Linux distributions and is available under &#8220;<strong><em>System/Administration</em></strong>&#8221; menu.</p><div
id="attachment_1333" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1333" title="Access admin" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_011.png?9d7bd4" alt="Accessing Firewall Builder" width="465" height="124" /><p
class="wp-caption-text">Accessing Firewall Builder</p></div><p>If it is not there, then it probably needs to be installed on your system. You need to install the package that has supporting the API library libfwbuilder and the package for  fwbuilder that contains the Firewall Builder GUI and policy compilers. Use apt-get or aptitude to find and <span
id="more-1331"></span>install them:</p><p><span
style="color: #ff6600;"><code># aptitude install libfwbuilder fwbuilder</code></span></p><p>On FreeBSD and OpenBSD Firewall Builder is part of ports, you can find it in <strong>/usr/ports/security/fwbuilder</strong>.</p><p>Packages shipping with Ubuntu are always one or two minor revisions behind. If you want to try the latest version, you can use the pre-built binary .deb packages offered on the project&#8217;s web site or build from source using our online <a
href="http://www.fwbuilder.org/guides/firewall_builder_installation.html" title="Firewall Builder installation instructions"  target="_blank">installation instructions</a>. Pre-built binary packages and source code tar.gz archives can be <a
href="http://www.fwbuilder.org/docs/firewall_builder_packages.html" title="Download Firewall Builder"  target="_blank">downloaded from this page</a>.</p><p>If the system menu item is not there or you have built the program from source, you can always launch it from the command line by just typing &#8220;fwbuilder&#8221; on the shell prompt:</p><p><span
style="color: #ff6600;"><code>$ fwbuilder</code></span></p><p>The program starts and opens the main window and greeting dialog. The dialog provides links to the project web site where you can find more tutorials, FAQ, Firewall Builder CookBoook and other documentation, as well as a bug tracking system and links to user forums and the mailing list. Clicking on the link in the dialog opens corresponding web page in your web browser. This works the same on all supported OS: Linux, Windows and Mac OS X. You can always open this dialog later using an item in the main menu &#8220;Help&#8221;.</p><div
id="attachment_1334" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1334" title="Starting FWbuilder" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_010.png?9d7bd4" alt="Starting FWbuilder" width="465" height="407" /><p
class="wp-caption-text">Firewall Builder startup greeting</p></div><p>Lets create our first firewall object. To do this, we&#8217;ll use the object creation menu that appears when you click on the icon in the small toolbar right above the object tree. Choose menu item &#8220;New Firewall&#8221; from the menu that appears.</p><div
id="attachment_1336" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1336" title="New firewall" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_020.png?9d7bd4" alt="Setup new firewall" width="465" height="326" /><p
class="wp-caption-text">Setup new firewall</p></div><p>The program presents a wizard-like dialog that will guide you through the process for creation of the new firewall object. In the first page of the wizard you can enter the name for the new firewall object (here it is &#8220;guardian&#8221;), its platform (&#8220;iptables&#8221;) and host OS (&#8220;Linux&#8221;).</p><p>There are two ways a new firewall can be created: you can use one of the preconfigured template firewall objects or create it from scratch. This tutorial demonstrates the first method (using template object). To do this, check checkbox &#8220;Use preconfigured template firewall objects&#8221;. The template can be taken from the library of template objects that comes with the Firewall Builder package or from a file provided by the user. The latter is useful when the administrator wants to distribute a library of predefined templates to other users in the enterprise. We are using one of the standard templates in this guide and therefore leave the standard template library path and name in the &#8220;Template file:&#8221; input field. Click &#8220;Next&#8221; to move on to the next page of the wizard.</p><p>Note that the template firewall object comes completely configured, including addresses and netmasks of its interfaces and some basic policy and NAT rules. This configuration is intended as a starting point only. You should reconfigure the addresses of interfaces to match those used on your network; and most likely will have to adjust rules to match your security policy.</p><div
id="attachment_1338" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1338" title="Firewall template" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_030.png?9d7bd4" alt="Configure firewall template" width="465" height="284" /><p
class="wp-caption-text">Configure firewall template</p></div><p>This page of the wizard shows template objects and their configuration. Standard template objects represent firewalls with two or three interfaces, a host with one interface, web server or Cisco router. Choose firewall with three interfaces for this guide. Note that template comes with completely configured firewall objects, including a set of interfaces and their IP addresses &#8211; And some basic firewall policy. You will see how addresses can be changed later on in this guide. Click &#8220;Finish&#8221; to create a new firewall object using the chosen template.</p><div
id="attachment_1339" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1339" title="Firewall objects" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_040.png?9d7bd4" alt="Firewall objects" width="465" height="642" /><p
class="wp-caption-text">Firewall objects</p></div><p>Here is our new firewall object. Its name is <strong>guardian</strong>, it appears in the object tree in the left hand side of the main window in the folder <strong>Firewalls</strong>. When an object is selected in the tree, a brief summary of its properties appears in the panel under the tree. Double-clicking on the object in the tree opens it in the editor panel at the bottom of the right hand side panel of the main window. The editor for the firewall object allows the user to change its name, platform and host OS and also provides buttons that open dialogs for &#8220;advanced&#8221; settings for the firewall platform and host OS. We will inspect these a little later in this tutorial.</p><p>You can always resize the main window to make all columns of the policy view more visible.</p><div
id="attachment_1341" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1341" title="Guardian/Policy" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_050.png?9d7bd4" alt="Guardian/Policy view" width="465" height="394" /><p
class="wp-caption-text">Guardian/Policy view</p></div><p>Now would be a good time to save the data to a disk file. This is done in a usual way using main menu<strong> File/Save As</strong>.</p><p>Lets take a little tour of the network and service objects that come standard with the program. You can use these preconfigured objects to build policy and NAT rules for your firewall.</p><p>Objects in the tree are orginized in libraries, you can switch between libraries using the interfaces&#8217; drop-down menu above the tree. Firewall Builder comes with a collection of address, network, service and time interval objects in the library called &#8220;Standard&#8221;. Lets take a look at them. Notice that the background color of the panel that shows objects tree depends on the chosen object library. This makes it easier to keep track of the library currently opened in the program.</p><div
id="attachment_1342" class="wp-caption alignnone" style="width: 284px"><img
class="size-full wp-image-1342" title="Libraries" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_060.png?9d7bd4" alt="The libraries" width="274" height="203" /><p
class="wp-caption-text">The libraries</p></div><p>Folder <strong>Objects/Hosts</strong> contains few host objects used in standard firewall templates. Folder <strong>Objects/Network</strong> contains network objects that represent various standard address ranges and blocks, such as multicast, net 127/8, networks defined in RFC1918 and so on.</p><div
id="attachment_1344" class="wp-caption alignnone" style="width: 267px"><img
class="size-full wp-image-1344" title="Newtork objects" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_070.png?9d7bd4" alt="Newtork objects" width="257" height="348" /><p
class="wp-caption-text">Network objects</p></div><p>Firewall Builder also comes with extensive collection of TCP, UDP and ICMP service objects that describe commonly used protocols. This image shows some TCP objects (all of them do not fit in the screenshot).</p><div
id="attachment_1345" class="wp-caption alignnone" style="width: 270px"><img
class="size-full wp-image-1345" title="TCP objects" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_080.png?9d7bd4" alt="TCP (protocol) objects" width="260" height="347" /><p
class="wp-caption-text">TCP (protocol) objects</p></div><p>Here is an example of a simple TCP service. It defines source and     destination port ranges (in this case source port range is not     defined and there is only one destination port 80). TCP service     object can also define any combination of TCP flags the firewall     should inspect and also which ones of them should be set in order     for a packet to match this object. In the case of the service     &#8220;http&#8221; we do not need to define any flags.</p><div
id="attachment_1347" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1347" title="TCP service" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_090.png?9d7bd4" alt="TCP service" width="465" height="214" /><p
class="wp-caption-text">TCP service</p></div><p>Now lets take a look at the objects created as part of the new firewall object <strong>guardian</strong>. In order to do this, switch to the library <strong>User</strong> where this object was created. To open an object in the editor panel to inspect or change it, double click on it in the tree. Also, if you click on an object in the policy rule to select it, it will automatically open in the tree on the left.</p><div
id="attachment_1348" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1348" title="Object Guardian" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_100.png?9d7bd4" alt="Object Guardian in user library" width="465" height="393" /><p
class="wp-caption-text">Object Guardian in user library</p></div><p>First, the firewall object itself.</p><p>Every object in fwbuilder has basic attributes such as its name and comment. Other attributes depend on the object type.</p><p>Attributes of the firewall object include platform (can be iptables, pf, ipfilter, etc.), version (platform-depended) and host OS. Buttons <strong>Host OS Settings</strong> and <strong>Firewall Settings</strong> open dialogs with many additional attributes that depend on the firewall platform and host OS. More on these later.</p><div
id="attachment_1350" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1350" title="Object attributes" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_110.png?9d7bd4" alt="Object attributes" width="465" height="219" /><p
class="wp-caption-text">Object attributes</p></div><p>Here are the choices for the firewall platform, version (for iptables) and host OS.</p><div
id="attachment_1352" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1352" title="Firewall choices" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_103.png?9d7bd4" alt="Platform choices for the firewall" width="465" height="389" /><p
class="wp-caption-text">Platform choices for the firewall</p></div><p>Interfaces of the firewall are represented by objects located below the Firewall object in the tree. We refer to them as &#8220;children&#8221; of the firewall object. This image demonstrates properties of the interface eth0. To open it in the editor double click on it in the tree. If editor panel is already open and shows some object, it is sufficient to select new object in the tree to reveal it in the editor panel (no need to double click).</p><p>IP and MAC addresses of interfaces are represented by child objects in the tree located below corresponding interface.</p><div
id="attachment_1353" class="wp-caption alignnone" style="width: 271px"><img
class="size-full wp-image-1353" title="Firewall interfaces" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_120.png?9d7bd4" alt="Firewall interfaces" width="261" height="243" /><p
class="wp-caption-text">Firewall interfaces</p></div><p>Interface object has several attributes that define its function, such as &#8220;Management interface&#8221;, &#8220;external&#8221; etc.</p><ul><li>Name: the name of the interface object in Firewall Builder must match exactly the name of the interface of the firewall machine it represents. This will be something like &#8220;eth0&#8243;, &#8220;eth1&#8243;, &#8220;en0&#8243;, &#8220;br0&#8243; and so on.</li><li>Label: On most OS this ﬁeld is not used and serves the purpose of a descriptive label. Firewall Builder GUI uses a label, if it is not blank, to show interfaces in the tree. One of the suggested uses for this ﬁeld is to mark interfaces to reﬂect the network topology (’outside’, ’inside’) or the purpose (’web frontend’ or ’backup subnet’). The label is mandatory for Cisco PIX though, where it must reﬂect the network topology.</li><li>&#8220;Management interface&#8221;: Sometimes the host has several network interfaces in which case one of them can be marked as the ’manaagement interface’. The management interface is used for all communication between Firewall Builder and the host.</li><li>&#8220;External interface (insecure)&#8221;: marks an interface that connects to the Internet.</li><li>&#8220;Unprotected interface&#8221;: marks interface to which fwbuilder should not assign any access lists (used only with Cisco IOS platform)</li><li>&#8220;Regular Interface&#8221;: Use this option if the interface has an IP address assigned to it manually.</li><li>&#8220;Address is assigned dynamically&#8221;: Use this option if the interface has a dynamic address (obtained by means of DHCP or PPP or another protocol); in this case an address is unknown at the moment when Firewall Builder generates the ﬁrewall policy.</li><li>&#8220;Unnumbered interface&#8221;: Use this option if the interface can never have an IP address, such as the ethernet interface used to run PPPoE communication on some ADSL connections, tunnel endpoint interface, or an interface on a bridging ﬁrewall. See below Section 5.3.1 for more detailed discussion of these different types of interfaces.</li><li>&#8220;Bridge port&#8221;: this option is used for port of bridged firewall.</li><li>&#8220;Security level&#8221;: security level of this interface, used only with Cisco PIX (ASA)</li><li>&#8220;Network zone&#8221;: network zone of this interface, used only with Cisco PIX (ASA). Network zone drop-down list shows all network obejcts and groups of addresses and networks present in the tree. Choose one of them to tell the compiler which networks and blocks of addresses can be reached through this interface. Compiler uses this information to decide which interface each ACL rule should be associated with based on the addresses used in the destination of the rule.</li></ul><div
id="attachment_1354" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1354" title="View interface" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_130.png?9d7bd4" alt="View interface" width="465" height="219" /><p
class="wp-caption-text">View interface</p></div><p>Here is IP address of interface eth0, external interface of the firewall. The address and netmask are attributes of the child object of the type &#8220;IPv4 address&#8221;. Here the address is &#8220;192.0.2.1&#8243; and netmask &#8220;255.255.255.0&#8243;. Button &#8220;DNS Lookup&#8221; can be used to determine IP address using DNS. The program runs DNS query for the &#8220;A&#8221; record for the name of the parent firewall object.</p><div
id="attachment_1355" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1355" title="IP address eth0" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_140.png?9d7bd4" alt="IP address of interface eth0" width="465" height="220" /><p
class="wp-caption-text">IP address of interface eth0</p></div><p>Lets look at the IP address of the internal interface of the firewall. The address used in the template is &#8220;192.168.1.1&#8243; with netmask &#8220;255.255.255.0&#8243;. This is rather typical address used for small and home networks. Some commercial firewall appliances come preconfigured with this address.</p><div
id="attachment_1357" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1357" title="Internal interfaces" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_150.png?9d7bd4" alt="IP addresses of internal interfaces" width="465" height="583" /><p
class="wp-caption-text">IP addresses of internal interfaces</p></div><p>If address <strong>192.168.1.0/24</strong> matches address of your local network, you can skip this part of the guide and move to the page 4. Otherwise, you need to reconfigure the address of the internal interface of the firewall object that you just created in fwbuilder and also change address object used in the policy rules. Start with changing address attribute (and possibly netmask, if necessary) of the object <strong>guardian:eth1:ip</strong> as shown in the screenshot:</p><div
id="attachment_1359" class="wp-caption alignnone" style="width: 310px"><img
class="size-full wp-image-1359" title="Change IP address" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_160.png?9d7bd4" alt="Change IP address" width="300" height="267" /><p
class="wp-caption-text">Change IP address</p></div><p>Now we need to change IP address used in the rules. To do this, we create new Network object with correct address and replace object <strong>net-192.168.1.0</strong> in all rules with this new network object.</p><p>Use new object menu to create Network object.</p><div
id="attachment_1360" class="wp-caption alignnone" style="width: 278px"><img
class="size-full wp-image-1360" title="New network" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_170.png?9d7bd4" alt="Create new network object" width="268" height="212" /><p
class="wp-caption-text">Create new network object</p></div><p>New Network object is created with default name &#8216;New Network&#8217; and IP address 0.0.0.0.</p><div
id="attachment_1361" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1361" title="Default network" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_180.png?9d7bd4" alt="Default network created" width="465" height="243" /><p
class="wp-caption-text">Default network created</p></div><p>Edit object name and address, then hit &#8220;Apply&#8221;.</p><div
id="attachment_1362" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1362" title="Editing object" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_190.png?9d7bd4" alt="Editing network object" width="465" height="260" /><p
class="wp-caption-text">Editing network object</p></div><p>Use menu Object / Find to activate search and replace dialog. The     Find and Replace dialog opens at the bottom of the right hand side     panel in the main window, below the policy rules view.</p><div
id="attachment_1363" class="wp-caption alignnone" style="width: 337px"><img
class="size-full wp-image-1363" title="Object search" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_200.png?9d7bd4" alt="Searching for objects" width="327" height="176" /><p
class="wp-caption-text">Searching for objects</p></div><p>Locate object object <strong>net-192.168.1.0</strong> in any policy rule where it is used or in its location in the tree in library <strong>Standard</strong> and drag and drop it to the left object well in the search and replace dialog as shown on the screenshot:</p><div
id="attachment_1364" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1364" title="Drag and drop" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_210.png?9d7bd4" alt="Drag and drop object" width="465" height="151" /><p
class="wp-caption-text">Drag and drop object</p></div><p>Change the scope setting to &#8220;Policy of all firewalls&#8221;. If you have many firewalls in the tree, use scope &#8220;policy of the opened firewall&#8221; instead. Locate new Network object you just created in the tree and drag and drop it to the right object well in the search and replace dialog as shown on the screenshot:</p><div
id="attachment_1368" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1368" title="Change policy scope" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_220.png?9d7bd4" alt="Changing scope of all policies" width="465" height="89" /><p
class="wp-caption-text">Changing scope of all policies</p></div><p>Now hit &#8220;Replace all&#8221; button. Pop-up dialog should appear and report how many replacements the program had to make in all rules of the firewall. Note that the replacement is done not only in the policy rules, but in NAT rules as well.</p><div
id="attachment_1369" class="wp-caption alignnone" style="width: 264px"><img
class="size-full wp-image-1369" title="Replace all" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_230.png?9d7bd4" alt="Replace all button results" width="254" height="203" /><p
class="wp-caption-text">Replace all button results</p></div><p>Now that you have created a new object and replaced old network object with new one in all rules, do not forget to save data to a file using menu <strong>File/Save</strong></p><p>Lets inspect properties of the firewall object. Double click on the firewall &#8220;guardian&#8221; in the tree to open it in the editor panel, then click &#8220;Firewall Settings&#8221; button in the editor. This opens new dialog that looks like this. Notice button &#8220;Help&#8221; in this dialog, clicking this button opens help as shown on the image below.</p><div
id="attachment_1371" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1371" title="IP tables" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_240.png?9d7bd4" alt="IP tables advanced settings" width="465" height="513" /><p
class="wp-caption-text">IP tables advanced settings</p></div><p>Online help explains all attributes and paramaters located in each tab of the firewall settings dialog. I enourage you to explore it as many parameters are important and affect generated iptables script in different ways.</p><p>Next few screenshots show other tabs of the firewall settings dialog. You can find detailed explanations of all parameters in the online help.</p><div
id="attachment_1372" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1372" title="Explanations" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_250.png?9d7bd4" alt="Detailed explanation screen" width="465" height="420" /><p
class="wp-caption-text">Detailed explanation screen</p></div><p>This page defines various parameters for the built-in policy installer. Installer uses ssh client (pscp.exe and plink.exe on Windows) to transfer generated script to the firewall machine and activate it there.</p><div
id="attachment_1373" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1373" title="Policy installer" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_260.png?9d7bd4" alt="Policy installer, script generator" width="465" height="513" /><p
class="wp-caption-text">Policy installer, script generator</p></div><p>User can define shell commands that will be included in the generated script at the beginning and in the end of it. These commands can do anything you want, such as configure some subsystems, set up routing etc.</p><div
id="attachment_1374" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1374" title="Shell commands" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_270.png?9d7bd4" alt="Include shell command in script generator" width="465" height="514" /><p
class="wp-caption-text">Include shell command in script generator</p></div><p>Parameters for logging.</p><div
id="attachment_1375" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1375" title="Logging parameters" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_280.png?9d7bd4" alt="Logging parameter settings" width="465" height="240" /><p
class="wp-caption-text">Logging parameter settings</p></div><p>More options for the script generation. Notice that fwbuilder can produce iptables script in two formats: 1) as a shell script that calls iptables utility to add each rule one by one, or 2) it can use iptables-restore script to activate the whole policy at once. Other parameters are explained in the online help.</p><div
id="attachment_1376" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1376" title="Script options" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_290.png?9d7bd4" alt="Further script generation options" width="465" height="222" /><p
class="wp-caption-text">Further script generation options</p></div><p>Starting with v3.0 Firewall Builder can generate both IPv4 and IPv6 policy. This tab controls the order in which they are added to the script if user defined rules for both address families in the Policy objects of the firewall.</p><div
id="attachment_1377" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1377" title="IPv4-IPv6" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_300.png?9d7bd4" alt="IPv4 and IPv6 support" width="465" height="126" /><p
class="wp-caption-text">IPv4 and IPv6 support</p></div><p>Lets take a look at the policy of the template firewall. These rules are intended to be an example, a starting point to help you create your own policy quicker. Most likely you will want to modify them to suite your requirements. Explanation of the rules given here is rather brief because the goal of this guide was only to demonstrate how to use Firewall Builder.</p><ul><li>Rule 0: this is an anti-spoofing rule. It block incoming packets with source address that matches addresses of the firewall or internal or DMZ networks. The rule is associated with outside interface and has direction set to &#8220;Inbound&#8221;.</li><li>Rule 1: this rule permits any packets on loopback interface. This is necessary because many services on the firewall machine communicate back to the same machine via loopback.</li><li>Rule 2: permit ssh access from internal network to the firewall machine. Notice service object &#8220;ssh&#8221; in the column &#8220;Service&#8221;. This object can be found in the Standard objects library, folder Services/TCP.</li></ul><div
id="attachment_1379" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1379" title="Policy rules" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_310.png?9d7bd4" alt="Policy rules template" width="465" height="243" /><p
class="wp-caption-text">Policy rules template</p></div><p>Policy rules belong to the object &#8220;Policy&#8221;, which is a child object of the firewall and can be found in the tree right below it. As any other object in Firewall Builder, Policy object has some attributes that you can edit if you double click on it in the tree.</p><ul><li>Policy can be either IPv4, or IPv4 or combined IPv4 and IPv6. In the latter case you can use a mix of IPv4 and IPv6 addess objects in the same policy (in different rules) and Firewall Builder will automatically figure out which one is which and will sort them out.</li><li>Policy can translate to only mangle table, or a combination of filter and mangle tables. Again, in the latter case policy compiler decides which table to use based on the rule action and service object. Some actions, such as &#8220;Tag&#8221; (translates into iptables target MARK) go into mangle table.</li><li>&#8220;Top ruleset&#8221; means that compiler will place generated iptables rules into built-in chains INPUT/OUTPUT/FORWARD. If policy is not marked as &#8220;top ruleset&#8221;, generated rules will go into user-defined chain with the name the same as the name of the policy object.</li></ul><div
id="attachment_1380" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1380" title="Policy rules" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_320.png?9d7bd4" alt="Policy rules set" width="465" height="236" /><p
class="wp-caption-text">Policy rules set</p></div><p>Here are preconfigured NAT rules.</p><ul><li>Rule 0: tells the firewall that no address translation should be done for packets coming from network 192.168.2.0 going to 192.168.1.0 (because Translated Source, Translated Destination and Translated Service are left empty)</li><li>Rule 1: packets coming to the firewall from internal and DMZ networks should be translated so that source address will change and become that of the outside interface of the firewall.</li><li>Rule 2: packets coming from the Internet to the interface &#8220;outside&#8221; will be translated and forwarded to the internal server on DMZ represented by the host object &#8220;server on dmz&#8221;.</li></ul><div
id="attachment_1381" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1381" title="NAT rules" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_330.png?9d7bd4" alt="Preconfigured NAT rules" width="465" height="93" /><p
class="wp-caption-text">Preconfigured NAT rules</p></div><p>Now we should be ready to compile policy of the firewall guardian and generate iptables script. To do this, select firewall in the tree and click right mouse button. Choose item &#8220;Compile&#8221; in the pop-up menu. The dialog that appears lists all firewall objects defined in the objects tree and lets you select which ones should be compiled. The firewall guardian has just been created and has never been compiled and dialog shows that. Make sure checkbox next to the firewall object guardian is checked and click button &#8220;Next&#8221;.</p><div
id="attachment_1382" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1382" title="Firewall compilation" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_340.png?9d7bd4" alt="Select firewalls for compilation" width="465" height="462" /><p
class="wp-caption-text">Select firewalls for compilation</p></div><p>Firewall Builder calls policy compiler (which is by the way an external program which can be used on the command line). The next page of the dialog shows compiler progress and result.</p><div
id="attachment_1383" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1383" title="Compiler progress" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_350.png?9d7bd4" alt="Compiler progress" width="465" height="350" /><p
class="wp-caption-text">Compiler progress</p></div><p>Compiler generates iptables script in the file with the name the same as the name of the firewall object, with extension &#8220;.fw&#8221;. The file is placed in the same directory where the data file .fwb is located.</p><p><span
style="color: #ff6600;"><code>$ ls -la test2.fwb guardian.fw<br
/> -rwxr-xr-x 1 vadim vadim 11253 2009-02-16 16:41 guardian.fw<br
/> -rw-r--r-- 1 vadim vadim 24696 2009-02-16 16:41 test2.fwb</code></span></p><p>Here is how generated script looks like. This is just a fragment from the middle to show some generated iptables commands.</p><p><span
style="color: #ff6600;"><code># ================ IPv4</code></span></p><p><span
style="color: #ff6600;"># ================ Table &#8216;filter&#8217;, automatic rules<br
/> $IPTABLES -P OUTPUT  DROP<br
/> $IPTABLES -P INPUT   DROP<br
/> $IPTABLES -P FORWARD DROP</span></p><p><span
style="color: #ff6600;">cat /proc/net/ip_tables_names | while read table; do<br
/> $IPTABLES -t $table -L -n | while read c chain rest; do<br
/> if test &#8220;X$c&#8221; = &#8220;XChain&#8221; ; then<br
/> $IPTABLES -t $table -F $chain<br
/> fi<br
/> done<br
/> $IPTABLES -t $table -X<br
/> done</span></p><p><span
style="color: #ff6600;">$IPTABLES -A INPUT   -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT<br
/> $IPTABLES -A OUTPUT  -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT<br
/> $IPTABLES -A FORWARD -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT</span></p><p><span
style="color: #ff6600;"># ================ Table &#8216;nat&#8217;,  rule set NAT<br
/> # NAT compiler errors and warnings:<br
/> #<br
/> #<br
/> # Rule 0 (NAT)<br
/> #<br
/> echo &#8220;Rule 0 (NAT)&#8221;<br
/> #<br
/> # no need to translate<br
/> # between DMZ and<br
/> # internal net<br
/> $IPTABLES -t nat -A POSTROUTING   -s 192.168.2.0/24 -d 172.16.22.0/24 -j ACCEPT<br
/> $IPTABLES -t nat -A PREROUTING   -s 192.168.2.0/24 -d 172.16.22.0/24 -j ACCEPT<br
/> #</span></p><p>Now you can transfer it to the firewall and execute it there to install iptables rules. However it is much more convenient to use built-in policy installer to do this. To use installer, click right mouse button on the firewall object in the tree and use menu item Install. Firewall Builder will compile the policy if necessary and then open dialog where you can configure parameters of the installer. Here you need to enter password to authenticate to the firewall. Once you click OK, installer will connect to the firewall using ssh client. First, it will copy generated script to the directory /etc on the firewall (or different one, if configured in the Installer tab of firewall settings dialog), then it will run this script and check for errors. Its progress will be visible in the panel of the installer wizard, just like the progress of policy compiler.</p><div
id="attachment_1385" class="wp-caption alignnone" style="width: 475px"><img
class="size-full wp-image-1385" title="Install options" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_370.png?9d7bd4" alt="Install options for firewall guardian" width="465" height="491" /><p
class="wp-caption-text">Install options for firewall &#39;guardian&#39;</p></div><p>This guide walked you step by step through the process of creating of a firewall object, making some minor changes in its parameters and policy rules, compiling the policy and activating it on the firewall machine. This guide did not touch advanced topics such as built-in revision control system, working with multiple data files, working with multiple firewall objects, IPv6. You can find documentation and guides on these topics and more on our project web site at <a
href="http://www.fwbuilder.org" title="Firewall Builder"  target="_blank">http://www.fwbuilder.org</a>.</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/getting-started-with-firewall-builder/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI &#8211; Installation of OpenSSH.</title><link>http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-installation-of-openssh/</link> <comments>http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-installation-of-openssh/#comments</comments> <pubDate>Thu, 17 Jul 2008 14:50:26 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[Hands On]]></category> <category><![CDATA[How To]]></category> <category><![CDATA[8.04]]></category> <category><![CDATA[cgi]]></category> <category><![CDATA[codecs]]></category> <category><![CDATA[configure]]></category> <category><![CDATA[dvd]]></category> <category><![CDATA[ffmpeg]]></category> <category><![CDATA[fonts]]></category> <category><![CDATA[ftp]]></category> <category><![CDATA[gui]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[ioncube]]></category> <category><![CDATA[lamp]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[opensource]]></category> <category><![CDATA[openssh]]></category> <category><![CDATA[phpmyadmin]]></category> <category><![CDATA[putty]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[ssh server]]></category> <category><![CDATA[ssi]]></category> <category><![CDATA[usermin]]></category> <category><![CDATA[webmin]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-installation-of-openssh/</guid> <description><![CDATA[In the last installment, I covered what was done to install LAMP on the server. But remember that we did not install SSH. Why is SSH important? It allows us to remotely connect to the server using tools such as PuTTY, so that we can execute commands, install software, etc. The command is simple: sudo [...]]]></description> <content:encoded><![CDATA[<p>In the last installment, I covered what was done to <a
href="http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin/"  title="http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin/">install LAMP</a> on the server. But remember that we did not install SSH.  Why is SSH important? It allows us to remotely connect to the server using tools such as PuTTY,  so that we can execute commands, install software, etc.</p><p>The command is simple:</p><p><code>sudo aptitude install openssh-server</code></p><p>Installing an SSH client? PuTTY:<span
id="more-1301"></span></p><p><code>sudo aptitude install putty</code></p><p>I decided to install the SSH Server via aptitude after LAMP, because I found out (the first time I did this)  that  updating the SSH Server would cause me to have to update the certificates as well. Doing it this way, saves me extra steps.</p><p>Needless to say, this step was very simple, but very powerful in that it allows me to manage the server remotely, in comfort. :)</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-installation-of-openssh/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI &#8211; LAMP installation with cgi-bin</title><link>http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin/</link> <comments>http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin/#comments</comments> <pubDate>Wed, 25 Jun 2008 19:03:58 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[Hands On]]></category> <category><![CDATA[How To]]></category> <category><![CDATA[8.04]]></category> <category><![CDATA[cgi]]></category> <category><![CDATA[codecs]]></category> <category><![CDATA[configure]]></category> <category><![CDATA[dvd]]></category> <category><![CDATA[ffmpeg]]></category> <category><![CDATA[fonts]]></category> <category><![CDATA[ftp]]></category> <category><![CDATA[gui]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[ioncube]]></category> <category><![CDATA[lamp]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[opensource]]></category> <category><![CDATA[openssh]]></category> <category><![CDATA[phpmyadmin]]></category> <category><![CDATA[ssi]]></category> <category><![CDATA[usermin]]></category> <category><![CDATA[webmin]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin/</guid> <description><![CDATA[The last post I covered the hardware installation for this project. For this section, we&#8217;re going to use Ubuntu Linux (8.04 LTS Server Edition 64-bit) to install the LAMP (Linux, Apache, MySQL, PHP) server. If you don&#8217;t have that software available, you can get it using the following venues: 1. Download the iso image from: [...]]]></description> <content:encoded><![CDATA[<p><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/ubuntu-server-64-cd.jpg?9d7bd4" alt="Ubuntu 8.04 LTS Server Edition (64-bit)" align="left" hspace="10" vspace="5" /> The last post I covered the <a
href="http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-hardware-installation/"  title="http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-hardware-installation/">hardware installation</a> for this project.  For this section, we&#8217;re going to use Ubuntu Linux (8.04 LTS Server Edition 64-bit) to install the LAMP (Linux, Apache, MySQL, PHP) server. If you don&#8217;t have that software available, you can get it using the following venues:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>1. Download the iso image from: <a
href="http://www.ubuntu.com/getubuntu/download"  title="http://www.ubuntu.com/getubuntu/download" target="_blank">http://www.ubuntu.com/getubuntu/download</a> and burn it to a CD.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>2. Order the CD from <a
href="https://shipit.ubuntu.com/login-server"  title="https://shipit.ubuntu.com/login-server" target="_blank">https://shipit.ubuntu.com/login-server</a>.</p><p>Once you have a copy, make sure the BIOS on the PC is set to boot off the CD drive. Put the CD in the drive and simply restart the unit. It should now boot off the CD and display the &#8220;select language&#8221; screen as seen below.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><span
id="more-1294"></span></p><p><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/ubuntu-install-001.jpg?9d7bd4" alt="Select Language - Ubuntu Server 8.04 install" /><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>After you&#8217;ve selected the language, you&#8217;ll be presented with the installation menu. Simply select &#8220;Install Ubuntu Server&#8221;, as seen below.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/ubuntu-install-002.jpg?9d7bd4" alt="Installation menu" /><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>Remember that this is a server, ideally we&#8217;d like to have a static IP address for this server. There is a selectable boot option called &#8220;F6 &#8211; Other Options&#8221; where you could enter the following command to disable DHCP:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>netcfg/disable_dhcp=true</code><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>At which point you will be required to manually configure the network settings. I am going to include that information below. However, for some reason I was not able to set up the network card after the installation (I could not see it) , so I used this work around instead&#8230;<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>I logged into the router and checked the logs so that I could get the MAC address of the network card. I then configured a DHCP reservation in the LAN/DHCP setting of the router so that the MAC address of the network card would always get the same IP address. Because I did not want to install a DNS server (my ISP made me take the DNS server down last time I set it up), I then, simply added the IP to hostname record, into the host file of each unit I wanted to connect to the web server.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>During the installation (just follow the prompts it gives you), you will need to provide the following (among other obvious questions/answers):<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><ol><li>A hostname for your web server (the hostname is independent of whatever domain name you&#8217;re going to use. For example, the hostname of this server is &#8220;webbox&#8221; and the domain I&#8217;ll use to access the web server on it is &#8220;local.ubuntulinuxhelp.com&#8221;).</li><li>I selected to use the &#8220;Guided &#8211; use entire disk&#8221; when prompted for the partitioning.</li><li>A username and password that you are going to remember.</li></ol><p>You&#8217;ll eventually come to a prompt for the type of server (Software Selection), select LAMP, like the image below.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/ubuntu-install-003.jpg?9d7bd4" alt="Ubuntu server install software selection" /><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>I chose to install the other components later, because I found out it will reduce some of the tweaking and updating later. During the software installation, you will be asked for a MySQL password. Write it down or don&#8217;t forget it! (You&#8217;ll need it later to use phpMyAdmin). The remainder is very straight forward, but as I mentioned earlier, here&#8217;s the static network configuration information. Remember, your network configuration addresses will probably be different from mine.<br
/> <img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><br
/> Because there is no GUI yet, we&#8217;ll be using the command line to configure the network.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>Login after rebooting.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>You can use a simple text editor like nano, vi, etc.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>sudo nano /etc/network/interfaces</code><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>For those who left DHCP enabled, look for this:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><blockquote><p>auto eth0<br
/> iface eth0 inet dhcp</p></blockquote><p><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>and change it to this:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><blockquote><p>auto eth0<br
/> iface eth0 inet static</p></blockquote><p><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>Under the line that says &#8220;iface eth0 inet static&#8221;, you&#8217;ll enter your network information. An example of mine is:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><blockquote><p>address 72.138.51.130<br
/> netmask 255.255.255.0<br
/> network 72.138.51.0<br
/> broadcast 72.138.51.255<br
/> gateway 72.138.50.1</p></blockquote><p><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>So the file would look something like this:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><blockquote><p>auto eth0<br
/> iface eth0 inet static<br
/> address 72.138.51.130<br
/> netmask 255.255.255.0<br
/> network 72.138.51.0<br
/> broadcast 72.138.51.255<br
/> gateway 72.138.50.1</p></blockquote><p><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>Additionally, I made sure the host file contained the following information:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><blockquote><p>127.0.0.1 localhost webbox<br
/> 172.138.51.130 local.ubuntulinuxhelp.com webbox</p></blockquote><p><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>After configuring the network interface, restart the network using the following command:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>sudo /etc/init.d/networking restart</code><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>The basic LAMP installation should be complete. :)</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> </channel> </rss>
<!-- Served from: ubuntulinuxhelp.com @ 2012-02-10 17:03:48 by W3 Total Cache -->
