<?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>Racker Hacker &#187; encryption</title>
	<atom:link href="http://rackerhacker.com/tag/encryption/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Wed, 16 May 2012 12:55:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Private network interfaces: the forgotten security hole</title>
		<link>http://rackerhacker.com/2010/03/01/private-network-interfaces-the-forgotten-security-hole/</link>
		<comments>http://rackerhacker.com/2010/03/01/private-network-interfaces-the-forgotten-security-hole/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 00:55:07 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[tcpwrappers]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=1263</guid>
		<description><![CDATA[Regardless of the type of hosting you're using - dedicated or cloud - it's important to take network interface security seriously. Most often, threats from the internet are the only ones mentioned. However, if you share a private network with other customers, you have just as much risk on that interface. Many cloud providers allow [...]<p><a href="http://rackerhacker.com/2010/03/01/private-network-interfaces-the-forgotten-security-hole/">Private network interfaces: the forgotten security hole</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>Regardless of the type of hosting you're using - dedicated or cloud - it's important to take network interface security seriously.  Most often, threats from the internet are the only ones mentioned.  However, if you share a private network with other customers, you have just as much risk on that interface.</p>
<p>Many cloud providers allow you access to a private network environment where you can exchange data with other instances or other services offered by the provider.  The convenience of this access comes with a price: other instances can access your instance on the private network just as easily as they could on the public interface.</p>
<p>Here are some security tips for your private interfaces:</p>
<p><strong>Disable the private interface</strong><br />
This one is pretty simple.  If you have only one instance or server, and you don't need to communicate privately with any other instances, just disable the interface.  Remember to configure your networking scripts to leave the interface disabled after reboots.</p>
<p><strong>Use packet filtering</strong><br />
The actual mechanism will vary based on your operating system, but filtering packets is the one of the simplest ways to secure your private interface.  You can take some different approaches with them, but I find the easiest method is to allow access from your other instances and reject all other traffic.</p>
<p>For additional security, you can limit access based on ports as well as source IP addresses.  This could prevent an attacker from having easy access to your other instances if they're able to break into one of them.</p>
<p><strong>Configure your daemons to listen on the appropriate interfaces</strong><br />
If there are services that don't need to be listening on the private network, don't allow them to listen on your private interface.  For example, MySQL might need to listen on the private interface so the web server can talk to it, but apache won't need to listen on the private interface.  This reduces the profile of your instance on the private network and makes it a less likely target for attack.</p>
<p><strong>Use hosts.allow and hosts.deny</strong><br />
Many new systems administrators forget about how handy tcpwrappers can be for limiting access.  If your firewall is down in error, host.allow and hosts.deny could be an extra layer of protection.  It's important to ensure that the daemons you are attempting to control are build with tcpwrappers support.  Daemons like sshd support it, but apache and MySQL do not.</p>
<p><strong>Encrypt all traffic on the private network</strong><br />
Just because it's called a "private" network doesn't mean that your traffic can traverse the network privately.  You should always err on the side of caution and encrypt all traffic traversing the private network.  You can use ssh tunnels, stunnel, or the built-in SSL features found in most daemons.</p>
<p>This also brings up an important point: <strong>you should know how your provider's private network works</strong>.  Are there safeguards to prevent sniffing?  Could someone else possibly ARP spoof your instance's private IP addresses?  Is your private network's subnet shared among many customers?</p>
<p>With all of that said, it's also very important to have proper change control policies so that administrators working after you are fully aware of the security measures in place and why they are important.  This will ensure that all of the administrators on your instances will understand the security of the system and they should be able to make sensible adjustments later for future functionality.</p>
<p><a href="http://rackerhacker.com/2010/03/01/private-network-interfaces-the-forgotten-security-hole/">Private network interfaces: the forgotten security hole</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2010/03/01/private-network-interfaces-the-forgotten-security-hole/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Encrypted filesystems and partitions on RHEL 5</title>
		<link>http://rackerhacker.com/2008/09/01/encrypted-filesystems-and-partitions-on-rhel-5/</link>
		<comments>http://rackerhacker.com/2008/09/01/encrypted-filesystems-and-partitions-on-rhel-5/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 01:55:36 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=395</guid>
		<description><![CDATA[I spoke with a customer last week who was curious about enabling encrypted partitions on a DAS connected to their server.  I wasn't entirely sure if it was possible in RHEL 5 since I couldn't remember if it was available in Fedora 6.  According to Red Hat's release notes, it is possible.  Here's an excerpt [...]<p><a href="http://rackerhacker.com/2008/09/01/encrypted-filesystems-and-partitions-on-rhel-5/">Encrypted filesystems and partitions on RHEL 5</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I spoke with a customer last week who was curious about enabling encrypted partitions on a DAS connected to their server.  I wasn't entirely sure if it was possible in RHEL 5 since I couldn't remember if it was available in Fedora 6.  According to <a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/release-notes/RELEASE-NOTES-x86-en.html">Red Hat's release notes</a>, it is possible.  Here's an excerpt from their release notes: </p>
<blockquote><p>Encrypted Swap Partitions and Non-root File Systems<br />
Red Hat Enterprise Linux 5 now provides basic support for encrypted swap partitions and non-root file systems. To use these features, add the appropriate entries to /etc/crypttab and reference the created devices in /etc/fstab.</p>
<p>Below is a sample /etc/crypttab entry:</p>
<p>my_swap /dev/hdb1 /dev/urandom swap,cipher=aes-cbc-essiv:sha256<br />
This creates the encrypted block device /dev/mapper/my_swap, which can be referenced in /etc/fstab.</p>
<p>Below is a sample /etc/crypttab entry for a file system volume:</p>
<p>my_volume /dev/hda5 /etc/volume_key cipher=aes-cbc-essiv:sha256<br />
The /etc/volume_key file contains a plaintext encryption key. You can also specify none as the key file name; this configures the system to ask for the encryption key during boot instead.</p>
<p>It is recommended to use LUKS (Linux Unified Key Setup) for setting up file system volumes. To do this, follow these steps:</p>
<p>Create the encrypted volume using cryptsetup luksFormat.</p>
<p>Add the necessary entry to /etc/crypttab.</p>
<p>Set up the volume manually using cryptsetup luksOpen (or reboot).</p>
<p>Create a file system on the encrypted volume.</p>
<p>Add the necessary entry to /etc/fstab.</p></blockquote>
<p>After scouring the Red Hat Enterprise Linux manuals and knowledge base, I couldn't find specific instructions to set it up.  However, there was an <a href="http://www.redhatmagazine.com/2007/01/18/disk-encryption-in-fedora-past-present-and-future/">article in the Red Hat Magazine</a> that may help.</p>
<p><a href="http://rackerhacker.com/2008/09/01/encrypted-filesystems-and-partitions-on-rhel-5/">Encrypted filesystems and partitions on RHEL 5</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/09/01/encrypted-filesystems-and-partitions-on-rhel-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

