<?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>Simple Help &#187; Security</title>
	<atom:link href="http://www.simplehelp.net/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simplehelp.net</link>
	<description>Common questions, simple answers</description>
	<lastBuildDate>Wed, 18 Nov 2009 15:12:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to surf the web anonymously on your Android device</title>
		<link>http://www.simplehelp.net/2009/09/17/how-to-surf-the-web-anonymously-on-your-android-device/</link>
		<comments>http://www.simplehelp.net/2009/09/17/how-to-surf-the-web-anonymously-on-your-android-device/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 10:15:37 +0000</pubDate>
		<dc:creator>Ross McKillop</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Mobile Phones]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=3144</guid>
		<description><![CDATA[

This tutorial will guide you through the steps required to browse the web anonymously on your Android phone. 

 Start out by opening up the Android Market. Select Search from the options. 

 Enter the word torproxy in the search field, and run a search for it. 

 You should get two results: TorProxy and [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_android.png" align="right" width="50" height="50" alt="Android" />
<!-- no icon for 'Mobile Phones' --><img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>This tutorial will guide you through the steps required to browse the web anonymously on your Android phone. <span id="more-3144"></span></p>
<ol>
<li> Start out by opening up the Android Market. Select <strong>Search</strong> from the options. </li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img00.png" alt="" border="1" /></p>
<li> Enter the word <strong>torproxy</strong> in the search field, and run a search for it. </li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img01.png" alt="" border="1" /></p>
<li> You should get two results: <strong>TorProxy</strong> and <strong>Shadow</strong>. Install both of them. </strong> </li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img02.png" alt="" border="1" /></p>
<li> Once both TorProxy and Shadow are installed, open your applications list and select <strong>TorProxy</strong></li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img03.png" alt="" border="1" /></p>
<li> Here you&#8217;ll have to set your anonymous preference. <strong>Off</strong> will leave it turned off until you change that setting, <strong>on-demand</strong> will turn TorProxy on when an application (Shadow) requires it, and <strong>always on</strong> will leave it always running.  The <strong>on-demand</strong> option is a good one. </li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img04.png" alt="" border="1" /></p>
<li> Now launch <strong>Shadow</strong> from your applications list. One thing you&#8217;ll notice right away is that a &#8220;timer&#8221; will appear in your top menu, counting down. This is the TorProxy connection status, and it lets you know how long it&#8217;s going to take to make a connection. Once the timer hits 0, you should be connected. </li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img05.png" alt="" border="1" /></p>
<li> Once you&#8217;re connected, the &#8220;timer&#8221; icon will change to an onion &#8211; and Shadow will notify you that you&#8217;re now browsing anonymously. </li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img06.png" alt="" border="1" /></p>
<li> Shadow is similar to the built in Android browser. Click the <strong>menu</strong> button on your device, and the Shadow options will appear. Select <strong>Go</strong> to enter an address. </li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img07.png" alt="" border="1" /></p>
<li> I visited http://whatsmyip.net to find out what IP address web sites believed I was &#8216;coming from&#8217; (the Tor Proxy).  </li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img08.png" alt="" border="1" /></p>
<li> It also confirmed that I was browsing anonymously &#8211; the IP address displayed was not the one assigned to my Android device.</li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img09.png" alt="" border="1" /></p>
<li> One thing you&#8217;ll notice while surfing with Shadow is that a little <strong>Cookies Blocked</strong> button will appear fairly often. This lets you know that the page you&#8217;re visiting wanted to issue a cookie to you, but Shadow blocked it. Tap that icon..  </li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img10.png" alt="" border="1" /></p>
<li> &#8230; and you can change the setting to allow cookies for that domain (whitelist).  </li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img11.png" alt="" border="1" /></p>
<li> If you bring up the Notification window while TorProxy is running, it will be displayed. Tap its entry. </li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img12.png" alt="" border="1" /></p>
<li> From here you can change the settings, turning TorProxy off etc.</li>
<p><img src="http://www.simplehelp.net/images/anonymous_android_surfing/img13.png" alt="" border="1" />
</ol>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2007/09/06/how-to-surf-the-web-anonymously-using-os-x/" rel="bookmark" title="Permanent Link: How to surf the web anonymously using OS X">How to surf the web anonymously using OS X</a><br /><a href="http://www.simplehelp.net/2009/07/23/how-to-take-screenshots-of-your-android-based-phone-from-os-x/" rel="bookmark" title="Permanent Link: How to take screenshots of your Android based phone from OS X">How to take screenshots of your Android based phone from OS X</a><br /><a href="http://www.simplehelp.net/2009/07/27/how-to-quickly-enable-or-disable-wi-fi-on-your-android-device/" rel="bookmark" title="Permanent Link: How to quickly enable or disable Wi-Fi on your Android device">How to quickly enable or disable Wi-Fi on your Android device</a><br /><a href="http://www.simplehelp.net/2009/07/21/how-to-take-screenshots-of-your-android-based-phone-from-windows/" rel="bookmark" title="Permanent Link: How to take screenshots of your Android based phone from Windows">How to take screenshots of your Android based phone from Windows</a><br /><a href="http://www.simplehelp.net/2009/07/29/how-to-copy-music-to-your-android-phone-from-windows/" rel="bookmark" title="Permanent Link: How to copy music to your Android phone from Windows">How to copy music to your Android phone from Windows</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/09/17/how-to-surf-the-web-anonymously-on-your-android-device/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to password protect files in Linux</title>
		<link>http://www.simplehelp.net/2009/06/29/how-to-password-protect-files-in-linux/</link>
		<comments>http://www.simplehelp.net/2009/06/29/how-to-password-protect-files-in-linux/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 11:40:57 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2929</guid>
		<description><![CDATA[

If you store important information on your Linux server and want to make sure it is for your eyes only you need to password protect these files. Let&#8217;s see how you can do this with Linux. 
First, pick a good password. There are a few websites on the Internet that help you generate strong passwords. [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>If you store important information on your Linux server and want to make sure it is for your eyes only you need to password protect these files. Let&#8217;s see how you can do this with Linux. <span id="more-2929"></span></p>
<p>First, pick a good password. There are a few websites on the Internet that help you generate strong passwords. Try and pick an alphanumeric password. Something such as <strong>Rv7fkcxASW8h</strong> would be a good choice.</p>
<p>Now check to see if you have the package <strong>gpg</strong> installed on your computer. Run the following command to check:</p>
<p><strong># whereis gpg</strong><br />
gpg: /usr/bin/gpg /usr/share/man/man1/gpg.1.gz</p>
<p>If you get an output like the one shown above it means you have the required package installed. If not, check your Linux distribution&#8217;s documentation to see how you can install the GPG package.</p>
<p>Say you want to password protect a file called <strong>dbbackup.zip</strong> with the password <strong>Rv7fkcxASW8h</strong> here&#8217;s how you would go about it:</p>
<p><strong># gpg -c dbbackup.zip</strong></p>
<p>When you enter this you will be requested to enter a passphrase, which is the password you want to protect the file with. Enter the password twice. Now you should see a file called <strong>dbbackup.zip.gpg</strong> in the same directory as the original file. This is the encrypted and password protected copy of the original file. You can store this file on your hard drive or ship it to someone on a DVD knowing that it will be very hard and nearly impossible for most people to crack it.</p>
<p>When you want to read the file you will need to remove the password protected encryption. For that execute the following command:</p>
<p><strong>gpg dbbackup.zip.gpg</strong></p>
<p>You will be asked to enter the password using which the file was protected. Enter that and you should be in business. Note that this only works for files and not for folders. You should create a zip or tar archive of  the files you want to secure and then add the password protected encryption to it.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/02/19/adding-encryption-to-protect-your-backups-on-linux/" rel="bookmark" title="Permanent Link: How to encrypt your Linux backups">How to encrypt your Linux backups</a><br /><a href="http://www.simplehelp.net/2009/07/20/how-to-recursively-copy-files-from-an-ftp-server-with-linux/" rel="bookmark" title="Permanent Link: How to recursively copy files from an FTP server with Linux">How to recursively copy files from an FTP server with Linux</a><br /><a href="http://www.simplehelp.net/2007/09/10/9-ways-to-secure-your-wordpress-blog/" rel="bookmark" title="Permanent Link: 9 easy ways to secure your WordPress blog">9 easy ways to secure your WordPress blog</a><br /><a href="http://www.simplehelp.net/2009/04/06/how-to-post-to-twitter-from-the-linux-command-line/" rel="bookmark" title="Permanent Link: How to post to Twitter from the Linux command line">How to post to Twitter from the Linux command line</a><br /><a href="http://www.simplehelp.net/2008/12/17/how-to-ssh-to-your-remote-server-without-entering-a-password-every-time/" rel="bookmark" title="Permanent Link: How to SSH to your remote server without entering a password every time">How to SSH to your remote server without entering a password every time</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/06/29/how-to-password-protect-files-in-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to enable the root user account in Ubuntu Linux</title>
		<link>http://www.simplehelp.net/2009/05/28/how-to-enable-the-root-user-account-in-ubuntu-linux/</link>
		<comments>http://www.simplehelp.net/2009/05/28/how-to-enable-the-root-user-account-in-ubuntu-linux/#comments</comments>
		<pubDate>Thu, 28 May 2009 14:42:36 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2834</guid>
		<description><![CDATA[

Ubuntu Linux ships with the tool sudo all setup for you to use to perform any administrative tasks instead of giving you root user privileges. If you have used other flavors of Linux and performed any administrative tasks on them you will quite likely feel a bit constrained by sudo, even though you can do [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>Ubuntu Linux ships with the tool <strong>sudo</strong> all setup for you to use to perform any administrative tasks instead of giving you <strong>root</strong> user privileges. If you have used other flavors of Linux and performed any administrative tasks on them you will quite likely feel a bit constrained by <strong>sudo</strong>, even though you can do just about anything you can as root with sudo. In such cases you can enable the root user account which has been disabled by Ubuntu by default. <strong>Note:</strong> this could pose a security risk and is not recommended for beginners.<span id="more-2834"></span></p>
<p>There are two levels at which you can enable root access &#8211; the command line and in the Gnome desktop. To enable the root user login on the command line run the following command:</p>
<p><strong># sudo passwd root</strong></p>
<p>The command line will prompt you to enter your password, and then the new root user password twice. Enter them correctly and your root command line login should be good to go.</p>
<p>To enable the root user to now log into Gnome, open the file <strong>gdm.conf</strong> which will most likely be at <strong>/etc/X11/gdm/gdm.conf</strong> and change the <strong>AllowRoot</strong> condition to:</p>
<p><strong>AllowRoot=true</strong></p>
<p>Save the file. Log out of Gnome and log back in to activate your new settings.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2007/10/04/how-to-automatically-sign-in-to-ubuntu/" rel="bookmark" title="Permanent Link: How to automatically sign in to Ubuntu">How to automatically sign in to Ubuntu</a><br /><a href="http://www.simplehelp.net/2009/05/27/how-to-stop-ubuntu-from-asking-for-your-sudo-password/" rel="bookmark" title="Permanent Link: How to stop Ubuntu from asking for your sudo password">How to stop Ubuntu from asking for your sudo password</a><br /><a href="http://www.simplehelp.net/2008/12/29/using-sudo-in-linux/" rel="bookmark" title="Permanent Link: An introduction to the sudo command and configuration file">An introduction to the sudo command and configuration file</a><br /><a href="http://www.simplehelp.net/2008/11/26/how-to-reset-a-lost-mysql-root-password/" rel="bookmark" title="Permanent Link: How to reset a lost MySQL root password">How to reset a lost MySQL root password</a><br /><a href="http://www.simplehelp.net/2007/06/28/how-to-install-setup-and-use-google-desktop-search-in-ubuntu/" rel="bookmark" title="Permanent Link: How to install, setup and use Google Desktop Search in Ubuntu">How to install, setup and use Google Desktop Search in Ubuntu</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/05/28/how-to-enable-the-root-user-account-in-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to stop Ubuntu from asking for your sudo password</title>
		<link>http://www.simplehelp.net/2009/05/27/how-to-stop-ubuntu-from-asking-for-your-sudo-password/</link>
		<comments>http://www.simplehelp.net/2009/05/27/how-to-stop-ubuntu-from-asking-for-your-sudo-password/#comments</comments>
		<pubDate>Wed, 27 May 2009 10:48:44 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2830</guid>
		<description><![CDATA[

If you use Ubuntu Linux it is quite likely that at some point or another you may have been frustrated at its asking for your password when trying to perform an administrative tasks, such as installing programs or changing system settings. Ubuntu uses the sudo tool to manage administrative rights rather than letting users easily [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>If you use Ubuntu Linux it is quite likely that at some point or another you may have been frustrated at its asking for your password when trying to perform an administrative tasks, such as installing programs or changing system settings. Ubuntu uses the <strong>sudo</strong> tool to manage administrative rights rather than letting users easily log in as the <strong>root</strong> user. This is actually a good security measure. However, if you need to perform administrative tasks frequently it can get rather annoying. Here&#8217;s how you can set Ubuntu to not prompt for your password when using <strong>sudo</strong>. <span id="more-2830"></span></p>
<p><strong>Note:</strong> this is something that is not recommended if you are using your computer in a public place or at your work, as this will compromise the security of your data. You&#8217;re better off setting this at your home desktop where you are likely to trust more people.</p>
<p>Launch a terminal window and enter the following command:</p>
<p><strong># sudo visudo</strong></p>
<p><strong>Visudo</strong> is a tool used to edit the configuration file of <strong>sudo </strong>. The command will prompt your for your password. Enter it one last time. The configuration file will open in a text editor, most likely <strong>Nano</strong>. Scroll down to the end of the document and add the following line:</p>
<p><strong>username ALL=NOPASSWD: ALL</strong></p>
<p>Replace <strong>username</strong> with the username of the user you want to allow a passwordless sudo. So if the user is <strong>calvin</strong>, you would enter:</p>
<p><strong>calvin ALL=NOPASSWD: ALL</strong></p>
<p>Save and exit the file. Log out, log in as the user <strong>calvin</strong> and test out your new passwordless sudo.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2008/12/29/using-sudo-in-linux/" rel="bookmark" title="Permanent Link: An introduction to the sudo command and configuration file">An introduction to the sudo command and configuration file</a><br /><a href="http://www.simplehelp.net/2009/05/28/how-to-enable-the-root-user-account-in-ubuntu-linux/" rel="bookmark" title="Permanent Link: How to enable the root user account in Ubuntu Linux">How to enable the root user account in Ubuntu Linux</a><br /><a href="http://www.simplehelp.net/2009/05/07/how-to-change-the-default-web-browser-in-ubuntu/" rel="bookmark" title="Permanent Link: How to change the default web browser in Ubuntu">How to change the default web browser in Ubuntu</a><br /><a href="http://www.simplehelp.net/2007/04/30/how-to-increase-the-screen-resolutions-available-to-ubuntu-while-running-in-parallels-for-os-x/" rel="bookmark" title="Permanent Link: How to increase the screen resolutions available to Ubuntu while running in Parallels for OS X">How to increase the screen resolutions available to Ubuntu while running in Parallels for OS X</a><br /><a href="http://www.simplehelp.net/2007/05/31/how-to-install-setup-and-use-avant-window-navigator-awn-in-ubuntu-feisty/" rel="bookmark" title="Permanent Link: How to install, setup and use Avant Window Navigator (Awn) in Ubuntu Feisty">How to install, setup and use Avant Window Navigator (Awn) in Ubuntu Feisty</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/05/27/how-to-stop-ubuntu-from-asking-for-your-sudo-password/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to securely clean up data on a hard disk on Linux</title>
		<link>http://www.simplehelp.net/2009/05/02/how-to-securely-clean-up-data-on-a-hard-disk-on-linux/</link>
		<comments>http://www.simplehelp.net/2009/05/02/how-to-securely-clean-up-data-on-a-hard-disk-on-linux/#comments</comments>
		<pubDate>Sat, 02 May 2009 18:55:29 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2679</guid>
		<description><![CDATA[

When people throw away important documents they usually use a shredder to make sure that these documents can&#8217;t be read by unauthorized people. Similarly companies run a shredding process on computers before either discarding or donating them. This is a good practice even for individuals. You don&#8217;t want someone getting hold of your personal data [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>When people throw away important documents they usually use a shredder to make sure that these documents can&#8217;t be read by unauthorized people. Similarly companies run a <strong>shredding</strong> process on computers before either discarding or donating them. This is a good practice even for individuals. You don&#8217;t want someone getting hold of your personal data such as photographs, emails, bank documents, etc. Let&#8217;s look at how you too can clean up a hard drive before junking it or giving it away. <span id="more-2679"></span></p>
<p>We&#8217;ll use the Linux program <strong>shred</strong> for this. <strong>Shred</strong> is a tool that usually ships out of the box with most Linux distributions. If you don&#8217;t have it installed just use your Linux distribution&#8217;s package manager to to get it. Shred is a pretty useful tool. It can be used to securely delete individual files or even complete drives. Note that if you are trying to shred the hard drive on which your operating system is running you will need to use a Live CD distribution such as Knoppix or the Ubuntu Live CD for this.</p>
<p>Say you have a hard drive located at <strong>/dev/hda</strong> on your Linux computer and you want to shred it&#8217;s contents completely run the following command:</p>
<p><strong># shred -fzv -n 100 /dev/hda</strong></p>
<p>Here&#8217;s the breakup of the command shown above. We&#8217;re asking the <strong>shred</strong> command to forcefully (-f) overwrite the disk with zeros (-z) and display the output in a verbose (-v) manner. We&#8217;re asking <strong>shred</strong> to overwrite the disk with the these zeros a hundred times (-n 100) over.</p>
<p>Checkout the shred command&#8217;s <strong>man page</strong> for more information on how to use it. There are a few other options shown there that you might find useful.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2008/12/30/linux-disk-detective/" rel="bookmark" title="Permanent Link: How to determine your free disk space in Linux">How to determine your free disk space in Linux</a><br /><a href="http://www.simplehelp.net/2007/09/11/how-to-completely-wipe-all-of-the-data-from-your-hard-drive/" rel="bookmark" title="Permanent Link: How to completely wipe all of the data from your hard drive">How to completely wipe all of the data from your hard drive</a><br /><a href="http://www.simplehelp.net/2009/04/24/how-to-format-and-mount-a-usb-hard-drive-in-linux/" rel="bookmark" title="Permanent Link: How to format and mount a USB hard drive in Linux">How to format and mount a USB hard drive in Linux</a><br /><a href="http://www.simplehelp.net/2007/08/13/how-to-really-erase-files-and-folders-in-windows/" rel="bookmark" title="Permanent Link: How to REALLY erase files and folders in Windows">How to REALLY erase files and folders in Windows</a><br /><a href="http://www.simplehelp.net/2009/04/30/how-to-wipe-the-data-from-your-blackberry-pearl/" rel="bookmark" title="Permanent Link: How to wipe the data from your BlackBerry Pearl">How to wipe the data from your BlackBerry Pearl</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/05/02/how-to-securely-clean-up-data-on-a-hard-disk-on-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to remotely access your MySQL in a secure manner</title>
		<link>http://www.simplehelp.net/2009/04/22/how-to-remotely-access-your-mysql-in-a-secure-manner/</link>
		<comments>http://www.simplehelp.net/2009/04/22/how-to-remotely-access-your-mysql-in-a-secure-manner/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 11:20:54 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2432</guid>
		<description><![CDATA[

These days there are a number of really cool MySQL front-end tools available for all platforms. Some are web based and can be installed on the MySQL server, while there are others which need to be installed on your local laptop or desktop computer. If you have a MySQL server running somewhere outside your local [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>These days there are a number of really cool MySQL front-end tools available for all platforms. Some are web based and can be installed on the MySQL server, while there are others which need to be installed on your local laptop or desktop computer. If you have a MySQL server running somewhere outside your local network you will most likely need to access it over the Internet to allow your super cool MySQL desktop client talk to it. You might be tempted to allow the MySQL server to run openly over the Internet to allow you access. That would be an extremely bad idea. Here&#8217;s a much better solution to allow you access without compromising much on security. <span id="more-2432"></span></p>
<p>Let&#8217;s see how we can do this using an SSH tunnel based connection to your MySQL server. There are two steps to do this. The first is to create an SSH tunnel connection from your computer to your MySQL server while piping the data to and from the MySQL server though the SSH tunnel. The next step is to make a MySQL connection to a local port and gain access to your remote MySQL server. The following command will create an ssh tunnel from <strong>remoteserver.net</strong> to your local computer. It will forward the incoming and outgoing traffic to that computer&#8217;s <strong>port 3306</strong> to your local computer&#8217;s <strong>port 6666</strong>.</p>
<p><strong>ssh user@remoteserver.net -L 6666:localhost:3306</strong></p>
<p>Modify the command shown above, replacing the <strong>user@remoteserver.net</strong> part with the credentials of your remote server, and <strong>-L 6666</strong> with the port on which you want to access MySQL on your local machine. Once you have run this command you will be asked to enter the password for the user you used to log in as on the remote server. After you successfully enter the password your ssh tunnel should be up and running.</p>
<p>Now launch your favorite MySQL client and make a connection with you remote MySQL server using the ssh tunnel you just created. Assuming you setup the tunnel on port <strong>6666</strong> you will need to use the following credentials to connect.</p>
<p><strong>host: 127.0.0.1</strong><br />
<strong>port: 6666</strong></p>
<p>You will need to use the database authentication that you use with your remote server. If you did everything right you should now be able to see your remote databases in your MySQL client. You are now on a secure remote connection. Remember to close the ssh tunnel when you are done with using MySQL by quitting the ssh session you setup initially.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/09/22/how-to-setup-slow-query-logging-in-mysql/" rel="bookmark" title="Permanent Link: How to setup slow query logging in MySQL">How to setup slow query logging in MySQL</a><br /><a href="http://www.simplehelp.net/2008/11/26/how-to-reset-a-lost-mysql-root-password/" rel="bookmark" title="Permanent Link: How to reset a lost MySQL root password">How to reset a lost MySQL root password</a><br /><a href="http://www.simplehelp.net/2009/05/08/bash-one-liner-how-to-compress-move-and-extract-a-directory/" rel="bookmark" title="Permanent Link: Bash one liner &#8211; how to compress, move, and extract a directory">Bash one liner &#8211; how to compress, move, and extract a directory</a><br /><a href="http://www.simplehelp.net/2008/12/17/how-to-ssh-to-your-remote-server-without-entering-a-password-every-time/" rel="bookmark" title="Permanent Link: How to SSH to your remote server without entering a password every time">How to SSH to your remote server without entering a password every time</a><br /><a href="http://www.simplehelp.net/2009/04/28/how-to-monitor-mysql-in-real-time-with-mytop/" rel="bookmark" title="Permanent Link: How to monitor MySQL in real-time with mytop">How to monitor MySQL in real-time with mytop</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/04/22/how-to-remotely-access-your-mysql-in-a-secure-manner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to block DDOS attacks in Linux</title>
		<link>http://www.simplehelp.net/2009/04/13/how-to-block-ddos-attacks-in-linux/</link>
		<comments>http://www.simplehelp.net/2009/04/13/how-to-block-ddos-attacks-in-linux/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 11:31:08 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2401</guid>
		<description><![CDATA[

We ran an article on How to block an IP address in iptables in Linux a few days ago. Here&#8217;s a complimentary article that shows you how to detect the IP addresses of attackers in case of a a denial of service (or DOS) attack.
 To do this we will use free software called psad. [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>We ran an article on <a href="http://www.simplehelp.net/2009/04/06/how-to-block-an-ip-address-in-iptables-in-linux/">How to block an IP address in iptables in Linux</a> a few days ago. Here&#8217;s a complimentary article that shows you how to detect the IP addresses of attackers in case of a a denial of service (or DOS) attack.<span id="more-2401"></span></p>
<p> To do this we will use free software called <a href="http://cipherdyne.org/psad/" title="psad home page" target="_blank">psad</a>. <strong>psad</strong> works in sync with iptables and monitors the iptables logs and checks for port scans and other suspicious traffic which are usually signs of someone trying to break into your Linux server.</p>
<p>To begin, install psad. If you are running a flavor of Linux that has a fancy package management system like Ubuntu or Fedora you should be able to use either of the following commands to get psad on your system:</p>
<p><strong># sudo apt-get install psad</strong><br />
or<br />
<strong># yum install psad</strong></p>
<p>If this doesn&#8217;t work for you head to the psad <a href="http://cipherdyne.org/psad/download/" target="_blank" title="download psad" rel="nofollow">download page</a> and download the format that works for you.</p>
<p>As I use an Ubuntu Linux server the rest of this tutorial will be Ubuntu specific. However, with some minor tweaking you should be able to make it work on other flavors of Linux. Open the <strong>syslog.conf</strong> file with your favorite text editor:</p>
<p><strong># vim /etc/syslog.conf</strong></p>
<p>Add the following line at the end of the of the file:</p>
<p><strong>kern.info       |/var/lib/psad/psadfifo</strong></p>
<p>You can use the following command to accomplish the same thing:</p>
<p><strong># echo -e &#39;kern.info\t|/var/lib/psad/psadfifo&#39; &gt;&gt; /etc/syslog.conf</strong></p>
<p>Now restart the <strong>sysklogd</strong> and <strong>klog</strong> daemons:</p>
<p><strong>/etc/init.d/sysklogd restart<br />
/etc/init.d/klogd restart</strong></p>
<p>The way psad works is that it will detect and instruct iptables to block any suspicious IPs. Sometimes this might result in the blocking of an IP which you use. To overcome this issue you should create a file containing a list of safe IP addresses. Create a file like this one:</p>
<p><strong># vim /home/calvin/safeiplist.cfg</strong></p>
<p>Enter the IP addresses that you need psad to whitelist:</p>
<p><strong>127.0.0.0/24<br />
192.168.0.0/24<br />
122.164.34.240</strong></p>
<p>No use a script like following one to configure iptables with the necessary rules. <strong>Note</strong> that this script will remove all previous settings from your iptables setup. Copy and paste the following script on your Linux server, and replace the variables <strong>WORKDIR</strong> and <strong>SAFEIPLIST</strong> with the correct settings from your setup.</p>
<p><strong>WORKDIR=&#34;/home/calvin/&#34;<br />
INTERVAL=&#34;5&#34;<br />
HITCOUNT=&#34;5&#34;<br />
SAFEIPLIST=&#34;safeiplist.cfg&#34;</p>
<p>cd $WORKDIR</p>
<p>iptables -F<br />
if [ -f $SAFEIPLIST ]; then<br />
  IPS=$(grep -Ev &#8220;^#&#8221; $SAFEIPLIST)<br />
  for i in $IPS<br />
  do<br />
        iptables -A INPUT -s $i -j ACCEPT<br />
  done<br />
fi</p>
<p>iptables -A INPUT -m state &#8211;state NEW -m recent &#8211;set<br />
iptables -A INPUT -m state &#8211;state NEW -m recent &#8211;update &#8211;seconds $INTERVAL &#8211;hitcount $HITCOUNT -j LOG</strong></p>
<p>What the script does is that it logs an IP address if it makes five or more attempts at making a connection in the span of five seconds. I would suggest you use the script as is unless you know what you are doing while modifying it. One you are done, give it executable permissions and run it.</p>
<p><strong># chmod +x /home/calvin/ipblock.sh</strong></p>
<p><strong># /home/calvin/ipblock.sh</strong></p>
<p>Now back to psad. Open the psad configuration file and edit it. These are the changes I suggest you make. Feel free to go through the psad documentation and make other changes:</p>
<p><strong>EMAIL_ADDRESSES             you@yourdomain.com;</strong></p>
<p>Set machine&#8217;s hostname:</p>
<p><strong>HOSTNAME                    yourdomain.com;</strong></p>
<p>If you have only one network interface on this server, set <strong>HOME_NET</strong> to:</p>
<p><strong>HOME_NET                NOT_USED;</strong></p>
<p>You can also need to adjust danger levels for psad, and define a set of ports to ignore, for example to ask psad ignore udp ports 80 and 8080, make the following change:</p>
<p><strong>IGNORE_PORTS                udp/80, udp/8080;</strong></p>
<p>Save and close the file. Then restart psad:</p>
<p><strong># /etc/init.d/psad restart</strong></p>
<p>You are now good to go. To monitor psad&#8217;s reports run the following command:</p>
<p><strong># psad -S</strong></p>
<p>To remove automatically clocked IPs run the following command:</p>
<p><strong># psad -F</strong></p>
<p>psad is a very versatile and powerful tool. If you know how to use it it can do wonders for you, but if you don&#8217;t you can really mess up your computer. So please use psad with caution.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/04/06/how-to-block-an-ip-address-in-iptables-in-linux/" rel="bookmark" title="Permanent Link: How to block an IP address in IPTables in Linux">How to block an IP address in IPTables in Linux</a><br /><a href="http://www.simplehelp.net/2009/11/05/how-to-block-someone-on-facebook/" rel="bookmark" title="Permanent Link: How to block someone on Facebook">How to block someone on Facebook</a><br /><a href="http://www.simplehelp.net/2007/10/24/comcast-another-chapter-of-lies-misdirection-and-ps-good-luck-using-bittorrent/" rel="bookmark" title="Permanent Link: Comcast: Another chapter of lies, misdirection and ps. good luck using bittorrent">Comcast: Another chapter of lies, misdirection and ps. good luck using bittorrent</a><br /><a href="http://www.simplehelp.net/2009/09/28/how-to-use-the-or-operator-in-grep/" rel="bookmark" title="Permanent Link: How to use the OR operator in grep">How to use the OR operator in grep</a><br /><a href="http://www.simplehelp.net/2008/11/20/how-to-determine-where-all-your-hard-drive-space-has-gone-in-windows/" rel="bookmark" title="Permanent Link: How to determine where all your hard drive space has gone in Windows">How to determine where all your hard drive space has gone in Windows</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/04/13/how-to-block-ddos-attacks-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to block an IP address in IPTables in Linux</title>
		<link>http://www.simplehelp.net/2009/04/06/how-to-block-an-ip-address-in-iptables-in-linux/</link>
		<comments>http://www.simplehelp.net/2009/04/06/how-to-block-an-ip-address-in-iptables-in-linux/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 09:29:24 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2372</guid>
		<description><![CDATA[

If you are responsible for a Linux server, security becomes a big concern. Some of the biggest threats to a server&#8217;s security are DDOS attacks and repeated attempts to enter the server using automates bots. There are a number of ways by which you can detect the IP address of a potential intruder. But what [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>If you are responsible for a Linux server, security becomes a big concern. Some of the biggest threats to a server&#8217;s security are DDOS attacks and repeated attempts to enter the server using automates bots. There are a number of ways by which you can detect the IP address of a potential intruder. But what do you do after you have located his/her IP address? Well, you block it. Here&#8217;s how you do it using IPTables which is the firewall that ships with most flavors of Linux. <span id="more-2372"></span></p>
<p>If you have just one IP address that you want to block you can use the following method:</p>
<p><strong># iptables -I INPUT -s 122.174.12.228 -j DROP</strong></p>
<p>This command will add an entry into your iptables configuration file, instructing it to drop any packets that come from the IP <strong>122.172.9.222</strong>. If you face numerous attacks you are better of using a slightly more automated method to add the IPs from your ban list. To do that create the following script:</p>
<p><strong>#!&#47;bin&#47;sh<br />
for i in $(&lt; banned_IPs.cfg) ; do<br />
iptables -I INPUT -i eth1 -s &#34;$i&#34; -j DROP<br />
done</strong></p>
<p>Save the script into a file named something like <strong>banned_IPs.sh</strong> and grant it executable privileges:</p>
<p><strong># chmod +x banned_IPs.sh</strong></p>
<p>Now create a file called <strong>banned_IPs.cfg</strong> and enter the list of IP addressed you want to block, each in a new line:</p>
<p><strong><br />
122.174.12.228<br />
129.122.10.23<br />
111.154.84.130<br />
</strong></p>
<p>Now run the script <strong>banned_IPs.sh</strong> to have the IP addresses you want blocked added to the list of banned IPs in iptables:</p>
<p><strong># ./banned_IPs.sh</strong></p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/04/15/how-to-redirect-traffic-to-another-machine-in-linux/" rel="bookmark" title="Permanent Link: How to redirect traffic to another machine in Linux">How to redirect traffic to another machine in Linux</a><br /><a href="http://www.simplehelp.net/2009/04/13/how-to-block-ddos-attacks-in-linux/" rel="bookmark" title="Permanent Link: How to block DDOS attacks in Linux">How to block DDOS attacks in Linux</a><br /><a href="http://www.simplehelp.net/2008/12/08/getting-started-with-iptables-in-linux/" rel="bookmark" title="Permanent Link: Getting started with iptables in Linux">Getting started with iptables in Linux</a><br /><a href="http://www.simplehelp.net/2009/11/05/how-to-block-someone-on-facebook/" rel="bookmark" title="Permanent Link: How to block someone on Facebook">How to block someone on Facebook</a><br /><a href="http://www.simplehelp.net/2007/06/29/how-to-delete-an-individual-site-from-the-address-bars-list-of-previously-viewed-sites-in-firefox/" rel="bookmark" title="Permanent Link: How to delete an individual site from the address bar&#039;s list of previously viewed sites in Firefox">How to delete an individual site from the address bar&#039;s list of previously viewed sites in Firefox</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/04/06/how-to-block-an-ip-address-in-iptables-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to disable Windows Defender in Windows 7</title>
		<link>http://www.simplehelp.net/2009/03/11/how-to-disable-windows-defender-in-windows-7/</link>
		<comments>http://www.simplehelp.net/2009/03/11/how-to-disable-windows-defender-in-windows-7/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 10:06:36 +0000</pubDate>
		<dc:creator>Ross McKillop</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2344</guid>
		<description><![CDATA[

This brief tutorial will take you through the steps required to disable Windows Defender in Windows 7. 
If you&#8217;d rather use your own spyware and trojan remover, having Windows Defender also running can be a bit of a moot point. This tutorial will show you how to disable it.

 If you open the Windows Task [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<img src="/wp-images/icons/topic_windows.jpg" align="right" width="50" height="50" alt="Windows" />
<p>This brief tutorial will take you through the steps required to disable Windows Defender in Windows 7. <span id="more-2344"></span></p>
<p>If you&#8217;d rather use your own spyware and trojan remover, having Windows Defender also running can be a bit of a moot point. This tutorial will show you how to disable it.</p>
<ol>
<li> If you open the <strong>Windows Task Manager</strong> and select the <strong>Services</strong> tab, you&#8217;ll notice <strong>WinDefend</strong> is running. This is Windows Defender. There are a couple ways to disable it, but the one I outline will show you how to re-enable it should you need/want to.  </li>
<p><a href="http://www.simplehelp.net/images/windefender7/defender00.png"><img src="http://www.simplehelp.net/images/windefender7/defender00a.png" alt="" /><br />
click to enlarge</a></p>
<li> Click the &#8220;Start Orb&#8221; and type in <strong>defender</strong> into the text box. Select <strong>Windows Defender</strong> from the items that appear in the window above. </li>
<p><img src="http://www.simplehelp.net/images/windefender7/defender01.png" alt="" /></p>
<li> Select <strong>Tools</strong> from the main Windows Defender screen. </li>
<p><a href="http://www.simplehelp.net/images/windefender7/defender02.png"><img src="http://www.simplehelp.net/images/windefender7/defender02a.png" alt="" /><br />
click to enlarge</a></p>
<li> Select <strong>Options</strong> from the <strong>Settings</strong> section. </li>
<p><a href="http://www.simplehelp.net/images/windefender7/defender03.png"><img src="http://www.simplehelp.net/images/windefender7/defender03a.png" alt="" /><br />
click to enlarge</a></p>
<li> From the left navigation pane, select <strong>Administrator</strong>. </li>
<p><a href="http://www.simplehelp.net/images/windefender7/defender04.png"><img src="http://www.simplehelp.net/images/windefender7/defender04a.png" alt="" /><br />
click to enlarge</a></p>
<li> Now <em>remove</em> the check mark from the box labeled <strong>Use this program</strong>. Click the <strong>Save</strong> button in the bottom right corner.</li>
<p><a href="http://www.simplehelp.net/images/windefender7/defender05.png"><img src="http://www.simplehelp.net/images/windefender7/defender05a.png" alt="" /><br />
click to enlarge</a></p>
<li> Click <strong>Yes</strong> when prompted to make the change.  </li>
<p><a href="http://www.simplehelp.net/images/windefender7/defender06.png"><img src="http://www.simplehelp.net/images/windefender7/defender06a.png" alt="" /><br />
click to enlarge</a></p>
<li> And now Windows Defender is turned off. You can use the &#8220;click here to turn it on&#8221; link if you want to re-enable it (just launch Windows Defender the same way you did in step #2 above). </li>
<p><img src="http://www.simplehelp.net/images/windefender7/defender07.png" alt="" /></p>
<li> Now if you check the <strong>Services</strong> section of the <strong>Task Manager</strong> you&#8217;ll see that Windows Defender has been stopped. </li>
<p><a href="http://www.simplehelp.net/images/windefender7/defender08.png"><img src="http://www.simplehelp.net/images/windefender7/defender08a.png" alt="" /><br />
click to enlarge</a></p>
<li> That&#8217;s it &#8211; you&#8217;re done!</li>
</ol>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2007/02/15/how-to-disable-windows-defender-from-starting-when-vista-boots/" rel="bookmark" title="Permanent Link: How to disable Windows Defender from starting when Vista boots">How to disable Windows Defender from starting when Vista boots</a><br /><a href="http://www.simplehelp.net/2007/05/16/improving-windows-vista-with-tweakvi/" rel="bookmark" title="Permanent Link: Improving Windows Vista with TweakVI">Improving Windows Vista with TweakVI</a><br /><a href="http://www.simplehelp.net/2006/09/24/how-to-disable-the-system-sounds-in-windows-xp/" rel="bookmark" title="Permanent Link: How to disable the system sounds in Windows XP">How to disable the system sounds in Windows XP</a><br /><a href="http://www.simplehelp.net/2006/07/16/how-to-disable-remote-assistance-and-remote-desktop-in-windows-xp/" rel="bookmark" title="Permanent Link: How to disable Remote Assistance and Remote Desktop in Windows XP">How to disable Remote Assistance and Remote Desktop in Windows XP</a><br /><a href="http://www.simplehelp.net/2008/04/15/how-to-disable-the-balloon-tips-in-windows-xp/" rel="bookmark" title="Permanent Link: How to disable the balloon tips in Windows XP">How to disable the balloon tips in Windows XP</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/03/11/how-to-disable-windows-defender-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>How to encrypt your Linux backups</title>
		<link>http://www.simplehelp.net/2009/02/19/adding-encryption-to-protect-your-backups-on-linux/</link>
		<comments>http://www.simplehelp.net/2009/02/19/adding-encryption-to-protect-your-backups-on-linux/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 11:30:10 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2273</guid>
		<description><![CDATA[

We covered the creation and extraction of compressed archives such as tar on a Linux machine. A lot of Linux users use these compression formats for backups purposes. Although this compresses pretty well it does not secure the backup. To do that you need to add a password, or to encrypt it. Let&#8217;s look at [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>We <a href="http://www.simplehelp.net/2008/12/15/how-to-create-and-extract-zip-tar-targz-and-tarbz2-files-in-linux/" title="how to create and extract zip and tar.gz files in linux">covered</a> the creation and extraction of compressed archives such as <strong>tar</strong> on a Linux machine. A lot of Linux users use these compression formats for backups purposes. Although this compresses pretty well it does not secure the backup. To do that you need to add a password, or to encrypt it. Let&#8217;s look at a simple form of securing your backup when you create an archive. <span id="more-2273"></span></p>
<p><em>Note:</em> these steps apply to files and folders of any kind &#8211; not just &#8216;backups&#8217;.</p>
<p>A quick recap of the compression and extraction of the <strong>tar.gz</strong>format. To compress a directory called <strong>todays_backup</strong> do the following:</p>
<p>#<strong> tar -zcf todays_backup.tar.gz todays_backup</strong></p>
<p>This command will compress the directory <strong>todays_backup</strong> into the compressed file <strong>todays_backup.tar.gz</strong>. To decompress it use the following command:</p>
<p>#<strong> tar -zxf todays_backup.tar.gz</strong></p>
<p>Now to the fun part. Let&#8217;s look at how we can add a basic level of encryption to the process we used above. To compress the directory <strong>todays_backup</strong> with protection do the following:</p>
<p># <strong>tar -zcf &#8211; todays_backup|openssl des3 -salt -k yourpassword | dd of=todays_backup.des3</strong></p>
<p>Replace <strong>yourpassword</strong> with a password of your own. Keep the password to yourself, and keep it carefully. The above command will generate a file called <strong>todays_backup.des3</strong>. This file can only be decompressed using this password.</p>
<p>To extract your protected archive file <strong>todays_backup.des3</strong> use the following command:</p>
<p># <strong>dd if= todays_backup.des3 |openssl des3 -d -k yourpassword |tar zxf -</strong></p>
<p>Make note of the trailing <strong>-</strong> at the end. It is not a typo, but a requirement for this command to work. Replace <strong>yourpassword</strong> with the password you used while encrypting the file. Executing the above command will extract the compressed file <strong>todays_backup.des3</strong> into a directory <strong>todays_backup</strong>. Use this encryption with care. As I said earlier, the only way you can retrieve your data once secured is by using the password, so do not lose this password under any circumstances.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/06/29/how-to-password-protect-files-in-linux/" rel="bookmark" title="Permanent Link: How to password protect files in Linux">How to password protect files in Linux</a><br /><a href="http://www.simplehelp.net/2006/08/26/how-to-encrypt-your-email-using-freenigma/" rel="bookmark" title="Permanent Link: How to encrypt your email using freenigma">How to encrypt your email using freenigma</a><br /><a href="http://www.simplehelp.net/2009/04/24/how-to-format-and-mount-a-usb-hard-drive-in-linux/" rel="bookmark" title="Permanent Link: How to format and mount a USB hard drive in Linux">How to format and mount a USB hard drive in Linux</a><br /><a href="http://www.simplehelp.net/2008/10/21/how-to-turn-your-n95-into-a-wireless-access-point/" rel="bookmark" title="Permanent Link: How to turn your N95 into a wireless access point">How to turn your N95 into a wireless access point</a><br /><a href="http://www.simplehelp.net/2007/10/09/how-to-add-your-alarm-information-to-your-windows-mobile-home-screen/" rel="bookmark" title="Permanent Link: How to add your Alarm information to your Windows Mobile home screen">How to add your Alarm information to your Windows Mobile home screen</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/02/19/adding-encryption-to-protect-your-backups-on-linux/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to monitor your Linux machine with netstat</title>
		<link>http://www.simplehelp.net/2009/01/19/monitor-your-linux-machine-with-netstat/</link>
		<comments>http://www.simplehelp.net/2009/01/19/monitor-your-linux-machine-with-netstat/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 12:15:06 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2151</guid>
		<description><![CDATA[

Netstat is an extremely useful Linux command line tool that allows you to check which service is connecting to a port on your machine. It is very useful to analyze what&#8217;s going on on your machine when you are facing or trying to to prevent an attack on it. You can find information such as [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>Netstat is an extremely useful Linux command line tool that allows you to check which service is connecting to a port on your machine. It is very useful to analyze what&#8217;s going on on your machine when you are facing or trying to to prevent an attack on it. You can find information such as how many connection are being made on a port, which IP addresses these connections originate from, and much more. Netstat ships with most distributions of Linux so it should already be installed on yours. <span id="more-2151"></span></p>
<p>Launch a shell terminal on your machine and run the following command:</p>
<p><strong># netstat -ant</strong><br />
Active Internet connections (servers and established)<br />
Proto Recv-Q Send-Q Local Address               Foreign Address             State<br />
tcp        0      0 ::ffff:192.168.1.19:80       ::ffff:192.168.1.240:63049  TIME_WAIT<br />
tcp        0      0 ::ffff:192.168.0.19:80       ::ffff:192.168.1.240:62793  TIME_WAIT<br />
tcp        0      0 ::ffff:192.168.1.19:80       ::ffff:192.168.1.240:62795  TIME_WAIT</p>
<p>The output will most likely be very long. I&#8217;ve just given a snapshot of the output above. As you can see in the data above there is a connection made from 192.168.1.240 to my server&#8217;s port 80 using the TCP protocol and the connection in the a state of TIME_WAIT. The out put that you get for your server will have information about all the ports on your machine, not just port 80.</p>
<p>The first thing you realize is that an output this big is not of too much use. So let&#8217;s organize it a bit. Here are a few tricks I use to analyze the nature of the connections being made to of from my server. the first thing I do is figure out which services I want to analyze. Usually it is port 80 as that&#8217;s the default port for the web server to run on, and port 3306 which is the default port for MySQL to run on. So i use the following query to see what&#8217;s going on on port 80:</p>
<p><strong># netstat -ant | grep 80</strong></p>
<p>Again I get big list of connections, smaller than the first, but still too big to grasp. So I use the &#8220;wc -l&#8221; command to count the number of lines in the output to see approximately how many connections I have on my port 80:</p>
<p><strong># netstat -ant | grep 80 | wc -l</strong><br />
625</p>
<p>And then I do the same for MySQL:</p>
<p><strong># netstat -ant | grep 3306 | wc -l</strong><br />
61</p>
<p>Now, if I want to get a complete picture of what&#8217;s going on on my server in terms of the nature of connections here&#8217;s what I do:</p>
<p><strong># netstat -ant | awk &#8216;{print $6}&#8217; | sort | uniq -c | sort -n</strong></p>
<p>      1 established)<br />
      1 Foreign<br />
      4 FIN_WAIT2<br />
      8 LISTEN<br />
     16 CLOSE_WAIT<br />
    134 ESTABLISHED<br />
    409 TIME_WAIT</p>
<p>This tells me how many connections of different types of state I have on my machine. I can run a similar command to see a complete picture of the state of all the connections made to my web server:</p>
<p><strong>netstat -ant | grep 80 | awk &#8216;{print $6}&#8217; | sort | uniq -c | sort -n</strong></p>
<p>      1 FIN_WAIT1<br />
      4 LISTEN<br />
      6 FIN_WAIT2<br />
     17 CLOSE_WAIT<br />
     94 ESTABLISHED<br />
    534 TIME_WAIT</p>
<p>You can perform a lot more complex things using Netstat along with other Linux command line tools. It can be helpful to be familiar with some tricks to get this kind of information using Netstat, particularly when you are facing an attack on your server.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2007/09/09/how-to-monitor-your-internet-bandwidth-usage-in-windows/" rel="bookmark" title="Permanent Link: How to monitor your Internet bandwidth usage in Windows">How to monitor your Internet bandwidth usage in Windows</a><br /><a href="http://www.simplehelp.net/2008/12/23/setting-the-date-on-your-linux-machine/" rel="bookmark" title="Permanent Link: How to set the date on your Linux machine">How to set the date on your Linux machine</a><br /><a href="http://www.simplehelp.net/2008/11/13/how-to-use-dstat-to-monitor-your-linuxunix-server/" rel="bookmark" title="Permanent Link: How to use dstat to monitor your Linux/UNIX server">How to use dstat to monitor your Linux/UNIX server</a><br /><a href="http://www.simplehelp.net/2007/10/16/how-to-monitor-your-mac-laptops-battery-health/" rel="bookmark" title="Permanent Link: How to monitor your Mac laptop&#039;s battery health">How to monitor your Mac laptop&#039;s battery health</a><br /><a href="http://www.simplehelp.net/2009/04/15/how-to-redirect-traffic-to-another-machine-in-linux/" rel="bookmark" title="Permanent Link: How to redirect traffic to another machine in Linux">How to redirect traffic to another machine in Linux</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/01/19/monitor-your-linux-machine-with-netstat/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to scan your Mac for viruses</title>
		<link>http://www.simplehelp.net/2009/01/12/how-to-scan-your-mac-for-viruses/</link>
		<comments>http://www.simplehelp.net/2009/01/12/how-to-scan-your-mac-for-viruses/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 08:35:38 +0000</pubDate>
		<dc:creator>Ross McKillop</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=2106</guid>
		<description><![CDATA[

According to the ClamXav home page -

Today, the number of viruses actively attacking OS X users is&#8230;NONE! However, this doesn&#8217;t mean we should get complacent about checking incoming email attachments or web downloads, for two reasons. Firstly, there&#8217;s no guarantee that we Mac users will continue to enjoy the status quo, but more importantly, the [...]]]></description>
			<content:encoded><![CDATA[<img src="/wp-images/icons/topic_mac.png" align="right" width="46" height="46" alt="Mac" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>According to the ClamXav home page -</p>
<blockquote><p>
Today, the number of viruses actively attacking OS X users is&#8230;NONE! However, this doesn&#8217;t mean we should get complacent about checking incoming email attachments or web downloads, for two reasons. Firstly, there&#8217;s no guarantee that we Mac users will continue to enjoy the status quo, but more importantly, the majority of the computing world use machines running MS Windows, for which an enormous quantity of viruses exist, so we must be vigilant in checking the files we pass on to our friends and colleagues.</p></blockquote>
<p>So &#8211; do you even <em>need</em> anti-virus software on your Mac? That&#8217;s up to you to decide. If you do decide you want anti-virus software on your Mac, this tutorial will guide you through installing and using ClamXav &#8211; a free (and frequently updated) virus scanner for OS X.</p>
<p><span id="more-2106"></span></p>
<ol>
<li> Start out by <a href="http://www.clamxav.com/index.php?page=dl">downloading ClamXav</a>. Once the download has completed, open the DMG file, and drag ClamXav to your <strong>Applications</strong> folder.</li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_00.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_00a.png" alt="" /><br />
click to enlarge</a></p>
<li> ClamXav isn&#8217;t very large, so it won&#8217;t take long to copy/install. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_01.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_01a.png" alt="" /><br />
click to enlarge</a></p>
<li> Open up an instance of Finder. Select your user name from the left navigation window, and go to <strong>Library</strong> -> <strong>Contextual Menu Items</strong>. Back in the opened DMG window, drag <strong>ScanWithClamXav.plugin</strong> to the <strong>Contextual Menu Items</strong> folder. Sign out of your Mac (or restart, but signing out and back in will do the trick). Signing out and back in again will activate the &#8220;Scan with ClamXav&#8221; plugin. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_02.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_02a.png" alt="" /><br />
click to enlarge</a></p>
<li> Now launch ClamXav from your Applications folder. You&#8217;ll be prompted to install the <strong>Clam Anti-Virus</strong> engine. Click the <strong>Install</strong> button. </li>
<p><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_03.png" alt="" /></p>
<li> On the <strong>Introduction</strong> screen, click <strong>Continue</strong>. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_04.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_04a.png" alt="" /><br />
click to enlarge</a></p>
<li> Review the <strong>Software License Agreement</strong> and once again, click <strong>Continue</strong>. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_05.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_05a.png" alt="" /><br />
click to enlarge</a></p>
<li> Click <strong>Agree</strong> to accept it, again. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_06.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_06a.png" alt="" /><br />
click to enlarge</a></p>
<li> Now click <strong>Install</strong>. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_07.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_07a.png" alt="" /><br />
click to enlarge</a></p>
<li> Enter your password when prompted, and click <strong>OK</strong>. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_08.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_08a.png" alt="" /><br />
click to enlarge</a></p>
<li> And now the scanning engine will install. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_09.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_09a.png" alt="" /><br />
click to enlarge</a></p>
<li> Click <strong>Close</strong> once the process has completed. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_10.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_10a.png" alt="" /><br />
click to enlarge</a></p>
<li> Now launch ClamXav from your Applications, again. Before you start the scan, click the <strong>Update virus definitions</strong> button. </li>
<p><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_11.png" alt="" /></p>
<li> Once completed, you should see a <strong>Virus definitions updated successfully</strong> status message. </li>
<p><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_13.png" alt="" /></p>
<li> Now click the <strong>Preferences</strong> button. </li>
<p><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_14.png" alt="" /></p>
<li> On the <strong>General</strong> tab, make the selections that are appropriate for you. I opted to quarantine infected files rather than outright delete them, in case of any false positives (ClamXav flagging a file as being infected with a virus, when it in fact isn&#8217;t). </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_16.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_16a.png" alt="" /><br />
click to enlarge</a></p>
<li> Depending on which settings you opt for, you may receive a message  telling you not to turn on certain features if you plan on having your email scanned or watched. This wasn&#8217;t an issue for me as I use Gmail (via the web) but it is something to consider if you use Mail or Entourage for email. </li>
<p><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_15.png" alt="" /></p>
<li> Select the <strong>Internet</strong> tab, and again, make any changes you see fit. I opted to have ClamXav check for all possible updates each time it starts. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_17.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_17a.png" alt="" /><br />
click to enlarge</a></p>
<li> Select the <strong>Schedule</strong> tab, and if you&#8217;d like to schedule virus scans, this is the place to create them. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_18.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_18a.png" alt="" /><br />
click to enlarge</a></p>
<li> Select the <strong>Folder Sentry</strong> tab. From here you can add folders to be constantly monitored for viruses (eg. your Downloads folder). Review the other options and make any changes you see fit. Click <strong>OK</strong> when you&#8217;re done. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_19.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_19a.png" alt="" /><br />
click to enlarge</a></p>
<li> Back in the main ClamXav window, click the <strong>Choose what to scan&#8230;</strong> button. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_20.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_20a.png" alt="" /><br />
click to enlarge</a></p>
<li> If you attempt to select your entire startup disk (as indicated in the screenshot below)&#8230;</li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_21.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_21a.png" alt="" /><br />
click to enlarge</a></p>
<li> you&#8217;ll get an error. </li>
<p><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_22.png" alt="" /></p>
<li> So instead, just select all of the folders (hold down the Apple Key to select multiple items) on the drive you want to scan. Then click <strong>Open</strong>. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_23.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_23a.png" alt="" /><br />
click to enlarge</a></p>
<li> Finally, click the <strong>Start Scan</strong> button. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_24.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_24a.png" alt="" /><br />
click to enlarge</a></p>
<li> ClamXav will do a &#8220;quick&#8221; (it&#8217;s not that fast) scan of your drive to determine how many files it&#8217;s going to check. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_25.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_25a.png" alt="" /><br />
click to enlarge</a></p>
<li> And then they actual scan will begin. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_26.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_26a.png" alt="" /><br />
click to enlarge</a></p>
<li> At this point, you might as well settle in for the long haul. Depending on the size of your hard drive, the number of files on it, and the speed of your Mac, the process can take quite a long time. As indicated in the screenshot below, it took ClamXav 172 min and 31 seconds to complete on my MacBook Pro (an older one). With all of that said, I was able to work on my Mac the entire time without much of a noticeable slowdown. However, I kept my tasks to the relatively &#8217;safe&#8217; &#8211; the last thing I wanted was a crash in the middle of the scan, forcing me to start over again. Running the scan overnight while you&#8217;re sleeping is probably a good idea. </li>
<p><a href="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_27.png" style="text-decoration:none"><img src="http://www.simplehelp.net/images/osxantivirus/mac_antivirus_27a.png" alt="" /><br />
click to enlarge</a></p>
<li> And that&#8217;s it. Now you may want to <a href="http://www.simplehelp.net/2008/06/15/how-to-scan-your-mac-for-spyware-malware-and-tracking-cookies/" title="scan your mac for spyware malware and tracking cookies" rel="nofollow">scan your Mac for spyware, malware and tracking cookies</a>. </li>
</ol>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2006/08/06/how-to-use-avg-anti-virus-free-to-check-your-pc-for-viruses/" rel="bookmark" title="Permanent Link: How to use AVG Anti-Virus (free) to check your PC for viruses">How to use AVG Anti-Virus (free) to check your PC for viruses</a><br /><a href="http://www.simplehelp.net/2008/06/15/how-to-scan-your-mac-for-spyware-malware-and-tracking-cookies/" rel="bookmark" title="Permanent Link: How to scan your Mac for spyware, malware and tracking cookies">How to scan your Mac for spyware, malware and tracking cookies</a><br /><a href="http://www.simplehelp.net/2007/06/11/how-to-remove-spyware-from-your-pc-part-1/" rel="bookmark" title="Permanent Link: How to remove Spyware from your PC (part 1)">How to remove Spyware from your PC (part 1)</a><br /><a href="http://www.simplehelp.net/2007/09/13/how-to-determine-where-all-of-your-free-disk-space-has-gone-in-windows/" rel="bookmark" title="Permanent Link: How to determine where all of your free disk space has gone in Windows">How to determine where all of your free disk space has gone in Windows</a><br /><a href="http://www.simplehelp.net/2008/10/10/how-to-read-and-create-barcodes-mobile-codes-on-the-nokia-n95/" rel="bookmark" title="Permanent Link: How to read and create &quot;barcodes&quot; (Mobile Codes) on the Nokia N95">How to read and create &quot;barcodes&quot; (Mobile Codes) on the Nokia N95</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2009/01/12/how-to-scan-your-mac-for-viruses/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Getting started with iptables in Linux</title>
		<link>http://www.simplehelp.net/2008/12/08/getting-started-with-iptables-in-linux/</link>
		<comments>http://www.simplehelp.net/2008/12/08/getting-started-with-iptables-in-linux/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 10:04:58 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Guest Blogger]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=1830</guid>
		<description><![CDATA[

Linux machines are known to be pretty secure. Studies have shown that Linux has been designed in a secure manner. Yet, despite all the security features that come bundled with a Linux installation, you need to configure these features correctly to make them work for you. I&#8217;ll guide you through the process of setting up [...]]]></description>
			<content:encoded><![CDATA[<!-- no icon for 'Guest Blogger' --><img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<p>Linux machines are known to be pretty secure. Studies have shown that Linux has been designed in a secure manner. Yet, despite all the security features that come bundled with a Linux installation, you need to configure these features correctly to make them work for you. I&#8217;ll guide you through the process of setting up of one of the tools that help secure your machine &#8211; the firewall. We will use the iptables firewall for this exercise. I am assuming that you are using a server running Red Hat Enterprise Linux 4 or similar. However, most of the steps should work fine on other Linux distributions as well. In this article we will setup a firewall on a Linux server running the Apache Web Server, FTP, and SSH. <span id="more-1830"></span></p>
<p>Let us first see what ports these applications use and which of them need to have a port open on the firewall.</p>
<p>The Apache web server runs on port 80 by default. Apache is going to server all our web content on this port, therefore we need to keep this port open on the firewall. The SSH service runs on port 22. We need to be able to remotely connect to our server to work, so we keep it open. FTP runs on port 21 and it too needs the port to be open to communication.</p>
<p>Next, make sure you have iptables installed. Run this command as the root user:</p>
<p>	# <strong>rpm -qa | grep iptables</strong></p>
<p>If you have iptables installed the system should give you the version of iptables you have installed. In case you don&#8217;t you can try something like the following to get it and start it:</p>
<p>	# <strong>yum install iptables</strong></p>
<p>	# <strong>/etc/init.d/iptables start</strong></p>
<p>To check what kind of configuration iptables is currently running with:</p>
<p>	# <strong>iptables &#8211;list</strong><br />
	Chain INPUT (policy ACCEPT)<br />
	target prot opt source destination</p>
<p>	Chain FORWARD (policy ACCEPT)<br />
	target prot opt source destination</p>
<p>	Chain OUTPUT (policy ACCEPT)<br />
	target prot opt source destination</p>
<p>This command will list out all the firewall rules that have been set currently. I will proceed with the assumption that you do not have any firewall rules in your iptables configuration. Let&#8217;s now configure the firewall to allow open communication on the ports 80 for your web server, 22 for SSH, and port 21 for FTP. We&#8217;ll also make sure that we block communication to any port other than specified.</p>
<p>Here&#8217;s a firewall script configuration script. Create a new file and call it <strong>iptable-firewall.sh</strong>. Copy the following text into it:</p>
<blockquote><p>
	#!/bin/sh</p>
<p>	ANY=&#8221;0/0&#8243;<br />
	OPEN_PORTS=&#8221;21 22 80&#8243;</p>
<p>	iptables -P INPUT ACCEPT<br />
	iptables -P FORWARD ACCEPT<br />
	iptables -P OUTPUT ACCEPT</p>
<p>	# Flush (-F) all specific rules<br />
	iptables -F INPUT<br />
	iptables -F FORWARD<br />
	iptables -F OUTPUT</p>
<p>	for port in $OPEN_PORTS<br />
 	 do<br />
  	  iptables -A INPUT -i eth0 -p tcp -s $ANY -d $ANY &#8211;destination-port $port &#8211;syn -j ACCEPT<br />
  	  iptables -A INPUT -i eth1 -p tcp -s $ANY -d $ANY &#8211;destination-port $port &#8211;syn -j ACCEPT<br />
 	 done</p>
<p>	iptables -A INPUT -i eth1 -p icmp -s $ANY -d $ANY -j ACCEPT</p>
<p>	#Allow any related/established connections<br />
	iptables -A INPUT -i eth0 -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT<br />
	iptables -A INPUT -i eth1 -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT</p>
<p>	#Kill everything else<br />
	iptables -A INPUT -i eth0 -j DROP<br />
	iptables -A INPUT -i eth1 -j DROP</p>
<p>	#write for boot<br />
	iptables-save > /etc/sysconfig/iptables
</p></blockquote>
<p>Now save the above file, grant it executable permissions and then run it:</p>
<p>	# <strong>chmod +x iptable-firewall.sh</strong></p>
<p>	# <strong>./iptable-firewall.sh</strong></p>
<p>Now check your firewall rules:</p>
<p>	# <strong>iptables &#8211;list</strong></p>
<p>All your firewall rules should now be set. Your server is now secure. To make any modification or additions to this set of rules, edit the line where the <strong>OPEN_PORTS</strong> parameter is defined and add or remove ports form the list. Remember to run the script again after making any changes to it.</p>
<p>If all of this command line stuff has you a bit leery, see the tutorial <a href="http://www.simplehelp.net/2008/07/01/how-to-setup-firestarter-an-easy-to-use-linux-firewall/" target="_blank">How to setup Firestarter &#8211; an easy to use Linux Firewall</a> &#8211; which has an easy to use graphical interface.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/04/15/how-to-redirect-traffic-to-another-machine-in-linux/" rel="bookmark" title="Permanent Link: How to redirect traffic to another machine in Linux">How to redirect traffic to another machine in Linux</a><br /><a href="http://www.simplehelp.net/2009/04/06/how-to-block-an-ip-address-in-iptables-in-linux/" rel="bookmark" title="Permanent Link: How to block an IP address in IPTables in Linux">How to block an IP address in IPTables in Linux</a><br /><a href="http://www.simplehelp.net/2009/04/13/how-to-block-ddos-attacks-in-linux/" rel="bookmark" title="Permanent Link: How to block DDOS attacks in Linux">How to block DDOS attacks in Linux</a><br /><a href="http://www.simplehelp.net/2009/05/04/how-to-schedule-tasks-on-linux-using-the-at-command/" rel="bookmark" title="Permanent Link: How to schedule tasks on Linux using the &#039;at&#039; command">How to schedule tasks on Linux using the &#039;at&#039; command</a><br /><a href="http://www.simplehelp.net/2008/12/11/how-to-download-files-from-the-linux-command-line/" rel="bookmark" title="Permanent Link: How to download files from the Linux command line">How to download files from the Linux command line</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2008/12/08/getting-started-with-iptables-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to hide .rar files within picture files</title>
		<link>http://www.simplehelp.net/2008/12/04/how-to-hide-rar-files-within-picture-files/</link>
		<comments>http://www.simplehelp.net/2008/12/04/how-to-hide-rar-files-within-picture-files/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 11:30:32 +0000</pubDate>
		<dc:creator>Ross McKillop</dc:creator>
				<category><![CDATA[Guest Blogger]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=1807</guid>
		<description><![CDATA[

This is a guest post by Devicepedia &#8211; if you like this article consider subscribing to the Devicepedia RSS feed.
This tutorial will show you how to hide .rar files within .jpg files &#8211; so that anyone who opens the picture would never know there was another file hidden within it. 

 Select the RAR file [...]]]></description>
			<content:encoded><![CDATA[<!-- no icon for 'Guest Blogger' --><img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<img src="/wp-images/icons/topic_windows.jpg" align="right" width="50" height="50" alt="Windows" />
<p>This is a guest post by <a href="http://www.devicepedia.com/" target="_blank">Devicepedia</a> &#8211; if you like this article consider subscribing to <a href="" target="_blank" rel="nofollow">the Devicepedia RSS feed</a>.</p>
<p>This tutorial will show you how to hide .rar files within .jpg files &#8211; so that anyone who opens the picture would never know there was another file hidden within it. <span id="more-1807"></span></p>
<ol>
<li> Select the RAR file that you want to hide. For this example the file I want to hide is called <strong>files.rar</strong> and the picture I&#8217;m going to hide it in is called <strong>warren.jpg</strong>. Copy both the files into the same folder.</li>
<p><img src="http://www.simplehelp.net/images/hiderar/hiderar00a.png" alt="" /></p>
<li> Then open the command prompt by selecting <strong>Start</strong> -> <strong>Run</strong> -> in the space provided enter <strong>cmd</strong> and click <strong>OK</strong>.  </li>
<li> Navigate to the the folder that you stored the files in. I kept them in the Downloads folder found within my My Documents folder, so I issued the commands <strong>cd &#8220;My Documents&#8221;</strong> and then <strong>cd Downloads</strong>. Now type the following command: <strong>copy /b  warren.jpg + files.rar warren2.jpg</strong> Remember &#8211; replace warren.jpg, files.rar and warren2.jpg with the names of your files. </li>
<p><a href="http://www.simplehelp.net/images/hiderar/hiderar01.png"><img src="http://www.simplehelp.net/images/hiderar/hiderar01a.png" alt="" /><br />
click to enlarge</a></p>
<li> This will embed the archive thus hiding it. You can open <strong>warren2.jpg</strong> with a picture viewer and there will be no indication that there&#8217;s a .rar file hidden within it. </li>
<li> To open the hidden archive (.rar file), simply open warren2.jpg (your picture) with WinRAR, or the RAR decompression utility of your choice. </li>
<p><img src="http://www.simplehelp.net/images/hiderar/hiderar02.png" alt="" /></p>
<li> NOTE: you may need to select <strong>All Files</strong> when opening your picture file with WinRAR, otherwise it won&#8217;t be listed in the directory view. </li>
<p><img src="http://www.simplehelp.net/images/hiderar/hiderar03.png" alt="" /></p>
<li> Now you can extract the &#8220;hidden&#8221; files from your &#8220;hidden&#8221; RAR file. </li>
<p><a href="http://www.simplehelp.net/images/hiderar/hiderar05.png"><img src="http://www.simplehelp.net/images/hiderar/hiderar05a.png" alt="" /><br />
click to enlarge</a></p>
</ol>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2008/08/12/how-to-embed-hidden-messages-in-picture-files-os-x/" rel="bookmark" title="Permanent Link: How to embed hidden messages in picture files (OS X)">How to embed hidden messages in picture files (OS X)</a><br /><a href="http://www.simplehelp.net/2009/05/18/how-to-hide-blackberry-apps-from-your-applications-screen/" rel="bookmark" title="Permanent Link: How to hide BlackBerry apps from your Applications screen">How to hide BlackBerry apps from your Applications screen</a><br /><a href="http://www.simplehelp.net/2008/08/25/sequential-a-better-image-viewer-for-os-x/" rel="bookmark" title="Permanent Link: Sequential &#8211; a better image viewer for OS X">Sequential &#8211; a better image viewer for OS X</a><br /><a href="http://www.simplehelp.net/2006/07/02/bittorrent-osx/" rel="bookmark" title="Permanent Link: How to download files using Bittorrent (Mac OS X version)">How to download files using Bittorrent (Mac OS X version)</a><br /><a href="http://www.simplehelp.net/2006/07/02/mac-mail-v2-setup/" rel="bookmark" title="Permanent Link: Setting Up Mail in OS X (Tiger) &#8211; POP version">Setting Up Mail in OS X (Tiger) &#8211; POP version</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2008/12/04/how-to-hide-rar-files-within-picture-files/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to reset a lost MySQL root password</title>
		<link>http://www.simplehelp.net/2008/11/26/how-to-reset-a-lost-mysql-root-password/</link>
		<comments>http://www.simplehelp.net/2008/11/26/how-to-reset-a-lost-mysql-root-password/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 11:15:58 +0000</pubDate>
		<dc:creator>Sukrit Dhandhania</dc:creator>
				<category><![CDATA[Guest Blogger]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.simplehelp.net/?p=1746</guid>
		<description><![CDATA[


Have you ever forgotten your MySQL root password? It&#8217;s one of those things that just happens despite the numerous precautions one might take. As a result, you are locked out of your database server. You can&#8217;t create new databases and are left with little control over the state of your database server. In such situations [...]]]></description>
			<content:encoded><![CDATA[<!-- no icon for 'Guest Blogger' --><img src="/wp-images/icons/topic_linux.jpg" align="right" width="50" height="50" alt="Linux" />
<img src="/wp-images/icons/topic_security.jpg" align="right" width="50" height="50" alt="Security" />
<img src="/wp-images/icons/topic_windows.jpg" align="right" width="50" height="50" alt="Windows" />
<p>Have you ever forgotten your MySQL root password? It&#8217;s one of those things that just happens despite the numerous precautions one might take. As a result, you are locked out of your database server. You can&#8217;t create new databases and are left with little control over the state of your database server. In such situations knowing how to regain root access to your database server comes in handy. So here&#8217;s what you can do to reset the password for the root user in MySQL on both Windows and Linux. <span id="more-1746"></span></p>
<h3>Windows Users:</h3>
<p>Log on to your server as the Administrator. Kill the MySQL server if it&#8217;s running. To do this you need the <strong>Windows Services Manager</strong>, so click on the <strong>Start Menu</strong>, then go to the <strong>Control Panel</strong>, then to the <strong>Administrative Tools</strong>, and select <strong>Services</strong>. Here look for the MySQL server and stop it. If it&#8217;s not listed there and MySQL is till running it means that MySQL is not running as a service. In that case you need to load the Task Manager which you should be able to access using the key combination of <strong>Ctrl+Alt+Del</strong>. Now kill the MySQL process.</p>
<p>With the MySQL process stopped you need to force a change of passwords on MySQL using a combination of the <strong>UPDATE</strong> and <strong>FLUSH</strong> options. So launch your favorite text editor and create a new file. Enter the following text into the file replacing &#8220;NewMySQLPassword&#8221; with your new password:</p>
<blockquote><p>	UPDATE mysql.user SET Password=PASSWORD(&#8221;NewMySQLPassword&#8221;) WHERE User=&#8217;root&#8217;;<br />
	FLUSH PRIVILEGES;</p></blockquote>
<p>What the first line does is that it updates the value of the field &#8220;Password&#8221; in the table mysql.user for the user &#8220;root&#8221; to &#8220;NewMySQLPassword&#8221;. The second line flushes the old set of privileges and makes sure your new password is used everywhere. Save this text as <strong>C:&#92;mysql_reset.txt</strong>.</p>
<p>Next, you need to start your MySQL server passing this file as a configuration parameter. Launch a terminal by going to the <strong>Start Menu</strong>, then to <strong>Run</strong>, and then type <strong>cmd</strong> and hit Enter. Now enter the following command:</p>
<blockquote><p>	C:&#92;mysql&#92;bin&#92;mysqld-nt &#45;&#45;init-file=C:&#92;mysql_reset.txt</p></blockquote>
<p>Once the server is done starting delete the file <strong>C:&#92;mysql_reset.txt</strong>. Your MySQL root password should be reset now. Now restart your MySQL server again. Go back to the Windows Services Manager again to do that. Your new MySQL root password should work for you now.</p>
<h3>Linux Users:</h3>
<p>Log on to your Linux machine as the root user. The steps involved in resetting the MySQL root password are to stop the MySQL server, restart it without the permissions active so you can log into MySQL as root without a password, set a new password, and then restart it normally. Here&#8217;s how you do it. First, stop the MySQL server:</p>
<p>	<strong># /etc/init.d/mysql stop</strong></p>
<p>Now start the MySQL server using the <strong>&#45;&#45;skip-grant-tables</strong> option, which will run the server without loading the permissions settings:</p>
<p>	<strong># mysqld_safe &#45;&#45;skip-grant-tables &#038;</strong></p>
<p>The <strong>&#038;</strong> option at the end makes the command you have executed run as a background process. Now log on to your MySQL server as root:</p>
<p>	<strong># mysql -u root</strong></p>
<p>It should allow you in without prompting for a password. The following steps will set the new password:</p>
<blockquote><p>mysql> use mysql;<br />
	mysql> update user set password=PASSWORD(&#8221;NewMySQLPassword&#8221;) where User=&#8217;root&#8217;;<br />
	mysql> flush privileges;<br />
	mysql> quit </p></blockquote>
<p>Replace &#8220;NewMySQLPassword&#8221; with your own password. Here&#8217;s what happens here. The first line selects the MySQL configuration tables. The second line updates the value of the field &#8220;Password&#8221; for the user &#8220;root&#8221; to &#8220;NewMySQLPassword&#8221;. The third line flushes the old set of privileges and makes sure your new password is used everywhere. Now, the last step is to restart the server normally and use your new root password to log in:</p>
<blockquote><p># /etc/init.d/mysql stop<br />
	# /etc/init.d/mysql start<br />
	# mysql -u root -pNewMySQLPassword</p></blockquote>
<p>Congratulations, your new MySQL root password is set and your MySQL server is ready to be used again. Remember to update all your applications to use this password if you are using it anywhere.</p>
<p>---<br />Related Articles at Simple Help:<ul><a href="http://www.simplehelp.net/2009/04/22/how-to-remotely-access-your-mysql-in-a-secure-manner/" rel="bookmark" title="Permanent Link: How to remotely access your MySQL in a secure manner">How to remotely access your MySQL in a secure manner</a><br /><a href="http://www.simplehelp.net/2009/09/22/how-to-setup-slow-query-logging-in-mysql/" rel="bookmark" title="Permanent Link: How to setup slow query logging in MySQL">How to setup slow query logging in MySQL</a><br /><a href="http://www.simplehelp.net/2009/05/08/bash-one-liner-how-to-compress-move-and-extract-a-directory/" rel="bookmark" title="Permanent Link: Bash one liner &#8211; how to compress, move, and extract a directory">Bash one liner &#8211; how to compress, move, and extract a directory</a><br /><a href="http://www.simplehelp.net/2009/05/28/how-to-enable-the-root-user-account-in-ubuntu-linux/" rel="bookmark" title="Permanent Link: How to enable the root user account in Ubuntu Linux">How to enable the root user account in Ubuntu Linux</a><br /><a href="http://www.simplehelp.net/2008/08/25/how-to-install-and-setup-apache-mysql-and-php-in-windows/" rel="bookmark" title="Permanent Link: How to install and setup Apache, MySQL and PHP in Windows">How to install and setup Apache, MySQL and PHP in Windows</a><br /></ul></p><br />]]></content:encoded>
			<wfw:commentRss>http://www.simplehelp.net/2008/11/26/how-to-reset-a-lost-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
