<?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>BOFH Hunter</title>
	<atom:link href="http://www.bofh-hunter.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bofh-hunter.com</link>
	<description>Admin Spotting for Fun and Profit</description>
	<lastBuildDate>Fri, 04 Sep 2009 21:36:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>RHEL 5.4 and XFS</title>
		<link>http://www.bofh-hunter.com/2009/09/04/rhel-5-4-and-xfs/</link>
		<comments>http://www.bofh-hunter.com/2009/09/04/rhel-5-4-and-xfs/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 21:36:21 +0000</pubDate>
		<dc:creator>Jim Perrin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bofh-hunter.com/?p=166</guid>
		<description><![CDATA[
		
		
		
		There&#8217;s been quite a bit of interest in the XFS offerings included in the 5.4 release of RHEL, and unfortunately it hasn&#8217;t really lived up to the hype. There are a few things you&#8217;ll need to know if you want to use the included xfs support

It&#8217;s not really included: The XFS kernel module is only [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.bofh-hunter.com/2009/09/04/rhel-5-4-and-xfs/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "";
		digg_title = "RHEL+5.4+and+XFS";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>There&#8217;s been quite a bit of interest in the XFS offerings included in the 5.4 release of RHEL, and unfortunately it hasn&#8217;t really lived up to the hype. There are a few things you&#8217;ll need to know if you want to use the included xfs support</p>
<ul>
<li><strong>It&#8217;s not <em>really</em> included</strong>: The XFS kernel module is only in the x86_64 version of the kernel. If you&#8217;re using the x86 release, you get no XFS module.</li>
<li><strong>There aren&#8217;t any XFS tools included either</strong>: The xfsprogs package isn&#8217;t included in RHEL 5.4 Server (see RH&#8217;s own BZ #<a href="https://bugzilla.redhat.com/show_bug.cgi?id=521173">521173</a> about this). So basically mkfs.xfs isn&#8217;t included. That&#8217;s not very handy if you were hoping to actually USE xfs.</li>
<li><strong>Anaconda won&#8217;t let you use XFS either: </strong>If you&#8217;re doing a fresh install and you boot anaconda with the XFS option, you get all the nifty little XFS options you&#8217;d expect when you set up your partitioning scheme. The downside is that once anaconda has all the information and tries to actually format things like you told it to, it segfaults. Why? Because it can&#8217;t actually MAKE the XFS file system. The tools aren&#8217;t there, remember?</li>
</ul>
<p>Now, many of you may be saying &#8220;But Red Hat TOLD me to use xfs in their release notes!&#8221; and yes, yes they did. Quoting the Release Notes from RHEL 5.4 we see this -&gt;</p>
<p style="padding-left: 30px;">Users of GFS2 that do not need high availability clustering are encouraged to look at migrating to other file systems like the ext3 or xfs offerings. The xfs file system is specifically targeted at very large file systems (16 TB and above).</p>
<p>I&#8217;d really like to see RH fix support for this, because XFS is an excellent file system, and has some excellent performance when paired with things like MySQL databases.</p>
<p>Red Hat: if you&#8217;re listening, please reverse the decision on <a href="https://bugzilla.redhat.com/show_bug.cgi?id=521173">https://bugzilla.redhat.com/show_bug.cgi?id=521173</a> and include the XFS toolkits. Your users will thank you for it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bofh-hunter.com/2009/09/04/rhel-5-4-and-xfs/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>dm-multipath and the ds4700</title>
		<link>http://www.bofh-hunter.com/2009/09/02/dm-multipath-and-the-ds4700/</link>
		<comments>http://www.bofh-hunter.com/2009/09/02/dm-multipath-and-the-ds4700/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 20:52:40 +0000</pubDate>
		<dc:creator>Jim Perrin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bofh-hunter.com/?p=161</guid>
		<description><![CDATA[
		
		
		
		For around a year now, I&#8217;ve been wanting to move away from IBM&#8217;s (okay, LSI&#8217;s) rdac mpp drivers used for the ds4XXX  series disk chassis on RHEL and CentOS. When RHEL 5.3 came out boasting support dm-multipath support for the DS4XXX series, I was understandably overjoyed. The only problem was I couldn&#8217;t make it work. [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.bofh-hunter.com/2009/09/02/dm-multipath-and-the-ds4700/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "";
		digg_title = "dm-multipath+and+the+ds4700";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>For around a year now, I&#8217;ve been wanting to move away from IBM&#8217;s (okay, LSI&#8217;s) rdac mpp drivers used for the ds4XXX  series disk chassis on RHEL and CentOS. When RHEL 5.3 came out boasting support dm-multipath support for the DS4XXX series, I was understandably overjoyed. The only problem was I couldn&#8217;t make it work. After several rounds of cursing, muttering and poking folks smarter than me to help out, the problem became immediately clear.</p>
<p>The example configs which work fine for the &#8217;supported&#8217; platforms have a text string mismatch when using the &#8216;unsupported&#8217; ds4700. Basically you have to change a bit of text slightly because the hardware identifies itself slightly differently. Who&#8217;d have thunk it, right?</p>
<p>Below is the multipath.conf snippet I&#8217;ve been using now for the past month with some pretty good success.</p>
<p><code><br />
defaults {<br />
user_friendly_names yes<br />
}<br />
blacklist {<br />
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"<br />
devnode "^(hd|xvd|vd)[a-z]*"<br />
wwid "*"<br />
}<br />
blacklist_exceptions {<br />
wwid    "3600XXXX"<br />
}<br />
devices {<br />
device {<br />
vendor                  "IBM"<br />
product                 "1814      FAStT"<br />
getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"<br />
prio_callout            "/sbin/mpath_prio_rdac /dev/%n"<br />
features                "0"<br />
hardware_handler        "1 rdac"<br />
path_grouping_policy    group_by_prio<br />
failback                immediate<br />
rr_weight               uniform<br />
no_path_retry           queue<br />
rr_min_io               1000<br />
path_checker            rdac<br />
}<br />
</code></p>
<p>Now clearly you&#8217;ll have to modify the wwid to suit your own environment, and you&#8217;ll also want to exclude the non-multipath device references (<em>/dev/sdb</em> for example) from lvm.conf if you&#8217;re using lvm.  This got things going for me, so hopefully it&#8217;ll help others out as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bofh-hunter.com/2009/09/02/dm-multipath-and-the-ds4700/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>A thank you to the community</title>
		<link>http://www.bofh-hunter.com/2009/07/31/a-thank-you-to-the-community/</link>
		<comments>http://www.bofh-hunter.com/2009/07/31/a-thank-you-to-the-community/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 14:20:25 +0000</pubDate>
		<dc:creator>Jim Perrin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bofh-hunter.com/?p=159</guid>
		<description><![CDATA[
		
		
		
		I&#8217;m sure by now everyone who reads this has heard the news about the goings on of the CentOS development team. Within a few hours following the release of the open letter, the story had been picked up, chewed on, misunderstood, panicked over, and copied to a few hundred other places and blogs too numerous [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.bofh-hunter.com/2009/07/31/a-thank-you-to-the-community/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "";
		digg_title = "A+thank+you+to+the+community";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>I&#8217;m sure by now everyone who reads this has <a href="http://lestighaniker.de/2009/07/30#open-letter-to-lance-davis">heard</a> <a href="http://linux.slashdot.org/story/09/07/30/130249/CentOS-Project-Administrator-Goes-AWOL">the</a> <a href="http://news.cnet.com/8301-1001_3-10300222-92.html?tag=newsEditorsPicksArea.0">news</a> about the goings on of the CentOS development team. Within a few hours following the release of the open letter, the story had been picked up, chewed on, misunderstood, panicked over, and copied to a few hundred other places and blogs too numerous to count. The mailing list, twitter, and the irc channels associated with the centos project were (and still are) hotbeds of advice, discussion, and controversy.</p>
<p>One thing has stood out from the anticipated frenzy surrounding this, and that&#8217;s been the overwhelming support of the CentOS community. The number of people stepping forward to volunteer hardware, time, advice, and cash (even though we&#8217;re currently asking folks to not do that) has been tremendous, and it&#8217;s incredibly refreshing to know that we have the backing of the community in what we&#8217;re doing.  I&#8217;d like to take a moment to personally say thank you to everyone who has been kind enough to offer their support or has made the effort to thank the developers following the announcement. This kind of support and outreach is what makes the project great, and what keeps people helping out.</p>
<p>Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bofh-hunter.com/2009/07/31/a-thank-you-to-the-community/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Feedback!</title>
		<link>http://www.bofh-hunter.com/2009/07/20/feedback/</link>
		<comments>http://www.bofh-hunter.com/2009/07/20/feedback/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 18:23:50 +0000</pubDate>
		<dc:creator>Jim Perrin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bofh-hunter.com/?p=156</guid>
		<description><![CDATA[
		
		
		
		There were loads of interesting comments and corrections about the security page on the CentOS wiki.  I&#8217;ve made a few updates regarding some missing sections, and some minor corrections. What I&#8217;m interested in now are the other security pages that the community might want. I&#8217;d like to turn this into a full blown wiki section [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.bofh-hunter.com/2009/07/20/feedback/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "";
		digg_title = "Feedback%21";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>There were loads of interesting comments and corrections about the <a title="OS Security" href="http://wiki.centos.org/HowTos/OS_Protection">security page</a> on the CentOS wiki.  I&#8217;ve made a few updates regarding some missing sections, and some minor corrections. What I&#8217;m interested in now are the other security pages that the community might want. I&#8217;d like to turn this into a full blown wiki section for security, detailing basic web server security, mail server security, ssh protection, and more. What would the community (or at least those of you who read this) want to see first from a network application standpoint?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bofh-hunter.com/2009/07/20/feedback/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Hardening CentOS</title>
		<link>http://www.bofh-hunter.com/2009/07/09/hardening-centos/</link>
		<comments>http://www.bofh-hunter.com/2009/07/09/hardening-centos/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 01:11:59 +0000</pubDate>
		<dc:creator>Jim Perrin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bofh-hunter.com/?p=153</guid>
		<description><![CDATA[
		
		
		
		This is something that I&#8217;ve griped about in the past, but without taking action, griping is basically just annoying other people in an arrogant fashion. Now while I&#8217;m very good at doing this, I&#8217;d much rather do something to help people provide proper security for their systems.
To this end, I&#8217;ve started a page on the [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.bofh-hunter.com/2009/07/09/hardening-centos/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "";
		digg_title = "Hardening+CentOS";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>This is something that I&#8217;ve griped about in the past, but without taking action, griping is basically just annoying other people in an arrogant fashion. Now while I&#8217;m very good at doing this, I&#8217;d much rather do something to help people provide proper security for their systems.</p>
<p>To this end, I&#8217;ve started a page on the CentOS wiki (<a title="Hardening CentOS" href="http://wiki.centos.org/HowTos/OS_Protection">Hardening CentOS</a>)  that will very likely turn into its own section in the future. This page uses Steve Grubb&#8217;s RHEL hardening guide, as well as the NSA&#8217;s RHEL 5 security guide as the basis for locking down the operating system in a reasonably secure fashion. I do not claim it to be all-powerful, nor will everything there apply to everyone in all instances. Take from it what you need to. What is covered on the page is the basis for locking down a system with very minimal impact to distribution standards or package changes. I&#8217;ll continue to add to this page, and break out other pages to encompass securing the distribution provided httpd, mysqld, etc as I get time.</p>
<p>If you find this information useful, please let me know. Comments and suggestions are warmly welcomed, so long as it&#8217;s constructive. As usual, the OMG-U-SUCK comments won&#8217;t get approved unless they&#8217;re accompanied by facts and/or evidence to support the opinion.</p>
<p>Once again, you can see this page at <a title="Hardening CentOS" href="http://wiki.centos.org/HowTos/OS_Protection">http://wiki.centos.org/HowTos/OS_Protection</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bofh-hunter.com/2009/07/09/hardening-centos/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>A peak into RHEL 5.4</title>
		<link>http://www.bofh-hunter.com/2009/02/24/a-peak-into-rhel-54/</link>
		<comments>http://www.bofh-hunter.com/2009/02/24/a-peak-into-rhel-54/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 14:32:24 +0000</pubDate>
		<dc:creator>Jim Perrin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bofh-hunter.com/?p=147</guid>
		<description><![CDATA[
		
		
		
		Red Hat appears to be taking virtualization quite seriously, and they appear to be choosing KVM as their virtualization method of choice. There&#8217;s a rather interesting article over at Practical Tech discussing the upcoming virtualization additions to the RHEL 5 line in the next point release. Have a read over the full article at http://practical-tech.com/infrastructure/red-hat-makes-kvm-its-linux-virtualization-of-choice/
]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.bofh-hunter.com/2009/02/24/a-peak-into-rhel-54/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "";
		digg_title = "A+peak+into+RHEL+5.4";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>Red Hat appears to be taking virtualization quite seriously, and they appear to be choosing KVM as their virtualization method of choice. There&#8217;s a rather interesting article over at <a href="http://practical-tech.com">Practical Tech</a> discussing the upcoming virtualization additions to the RHEL 5 line in the next point release. Have a read over the full article at <a href="http://practical-tech.com/infrastructure/red-hat-makes-kvm-its-linux-virtualization-of-choice/">http://practical-tech.com/infrastructure/red-hat-makes-kvm-its-linux-virtualization-of-choice/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bofh-hunter.com/2009/02/24/a-peak-into-rhel-54/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>RHEL 5.3 is out</title>
		<link>http://www.bofh-hunter.com/2009/01/20/rhel-53-is-out/</link>
		<comments>http://www.bofh-hunter.com/2009/01/20/rhel-53-is-out/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 01:49:18 +0000</pubDate>
		<dc:creator>Jim Perrin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bofh-hunter.com/?p=135</guid>
		<description><![CDATA[
		
		
		
		Well, as most of you may already know, Red Hat has released RHEL version 5 update 3 today, and they appear to have been quite hard at work. So what can you all expect in CentOS 5.3? Here&#8217;s a brief rundown of cool stuff to look forward to:
Networking

NetWorkManager and wpa_supplicant updates mean better wireless security [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.bofh-hunter.com/2009/01/20/rhel-53-is-out/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "";
		digg_title = "RHEL+5.3+is+out";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>Well, as most of you may already know, <a title="Red Hat" href="http://www.redhat.com">Red Hat</a> has released RHEL version 5 update 3 today, and they appear to have been quite hard at work. So what can you all expect in CentOS 5.3? Here&#8217;s a brief rundown of cool stuff to look forward to:</p>
<h2>Networking</h2>
<ul>
<li>NetWorkManager and wpa_supplicant updates mean better wireless security support. NetworkManager has a whole host of updates listed, so loads of good things have been happening there.</li>
<li>Updated driver support for a number of broadcom, forcedeth, ralink, and realtek cards made it into the kernel, so those of you in irc complaining that your nic wasn&#8217;t recognized should be happier after this.</li>
<li>There are also a few improvements for intel networking, both wired and wireless, so that should give the intel crowd their feel-good too.</li>
</ul>
<h2>Storage</h2>
<p>This is where things get interesting, so hang on.</p>
<ul>
<li>ext4 support is now included, so you can feel free to play with it. All accounts have it being pretty interesting.</li>
<li>encrypted block devices are now supported in anaconda for direct install. Anyone with a laptop should be interested in this one. (This one is my personal favorite. A die-hard suse fan always rubs on this when we debate)</li>
<li>There&#8217;s added support for IBM&#8217;s DS4xxx series disk systems in the dm_multipath package now. In theory this should rid us of the rdac driver update reboot hell. I&#8217;ll be testing this feature out tomorrow.</li>
<li>3ware and megaraid_sas also made the cut for driver updates. These two should have a fair bit of performance improvements to them.</li>
</ul>
<p><span style="text-decoration: line-through;">One thing I&#8217;m still waiting to see sorted out is the httpd fiasco on x86_64. In previous releases, you could install both, but it would cause conflicts when run. RH says they fixed this by removing the x86_64 version of httpd from the x86_64 distro. I&#8217;m really hoping they mean that they&#8217;ve removed the x86 version from the x86_64 distro, and that the release notes just have a nice little heart-stopping typo. Anyone dealing with multi-arch issues might want to keep an eye on this one between visits to the therapist.</span></p>
<p><strong><span style="color: #0000ff;">Update</span></strong>: Seems the httpd issue was for ppc, though the arch was not clearly spelled out in the release notes. Have a look at <a title="RHEL mailing list" href="http://www.redhat.com/archives/rhelv5-list/2009-January/msg00098.html">http://www.redhat.com/archives/rhelv5-list/2009-January/msg00098.html</a> for information.</p>
<p>You can get the full reading on what&#8217;s coming from this url:  <a href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Release_Notes/index.html">http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Release_Notes/index.html</a></p>
<p>What features are you looking forward to the most with the new release? I&#8217;m curious to see which features people are most interested in using. Let me know in the comments below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bofh-hunter.com/2009/01/20/rhel-53-is-out/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Supportable Linux Security</title>
		<link>http://www.bofh-hunter.com/2009/01/09/supportable-linux-security/</link>
		<comments>http://www.bofh-hunter.com/2009/01/09/supportable-linux-security/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 16:06:19 +0000</pubDate>
		<dc:creator>Jim Perrin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[support]]></category>

		<guid isPermaLink="false">http://www.bofh-hunter.com/?p=103</guid>
		<description><![CDATA[
		
		
		
		Computer security is once again becoming a hot topic for administrators.  There are dozens of new sites springing up around the web, and each is slinging their own &#8216;Perfect&#8217; setup instructions.  They have the usual bell curve of good advice, okay advice, and advice that will effectively leave you with a smoldering pile of rubble [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.bofh-hunter.com/2009/01/09/supportable-linux-security/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "";
		digg_title = "Supportable+Linux+Security";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>Computer security is once again becoming a hot topic for administrators.  There are dozens of new sites springing up around the web, and each is slinging their own &#8216;Perfect&#8217; setup instructions.  They have the usual bell curve of good advice, okay advice, and advice that will effectively leave you with a smoldering pile of rubble where your data used to be. What disturbs me is the growing number of seemingly reputable Linux security websites pitching brittle security advice. I call it &#8216;brittle&#8217; advice, because while your system is hardened over its previous state, it is also no longer supportable by your distribution.  There are several causes for this, but I&#8217;ll outline the top three reasons for this breach in support.</p>
<p><span style="text-decoration: underline;"><strong>Bad Advice:</strong></span></p>
<p>Really, who didn&#8217;t see this coming as the #1 here? Ignoring the occasional typos, misprints and ramblings, there are quite a few security sites which just plain offer bad advice. Much of the advice has to do with offering incorrect permissions changes, which may inadvertently expose data, or cause system breakage.  Let&#8217;s use a CentOS system here for an example:</p>
<p>SecureCentOS.com (no relation to the CentOS project itself) tells you that the security on /tmp should be secured from the default baseline, and they&#8217;re right. They recommend mounting a file in loopback and modifying options there. This is fine. They move on to double check the permissions for your newly created /tmp mount and tell you to chmod it 777.   Damn, they were doing so well until they had you do that. The default CentOS permissions, which set the stickybit such that only the user who creates the file can move or delete it. It&#8217;s been done with the stickybit in every major linux distro for ages now.  Oh well, I&#8217;m leaving hope that it&#8217;s a typo and that they&#8217;ll change their chmod statement to 1777 any day now.</p>
<p><span style="text-decoration: underline;"><strong>Ignoring Distro Tools</strong></span></p>
<p>As we descend into flawed-security-advice hell, the next level we come to involves side-lining the distribution provided security tool-kits. This is commonly done through ignorance of their existence or operation, or just basic willful neglect.  Regardless of how it happens, the end result remains the same. If you bring your own toys to party, you&#8217;re responsible for them. Again looking to CentOS for the example, we find that a large number of websites will completely ignore the security tools default in the distribution. They ignore selinux, aide, audit, and pam restrictions, while touting things like grsec (which may possibly be stagnant, see this <a title="grsec announcement" href="http://lists.virus.org/grsec-0812/msg00001.html" target="_self">announcement</a>), ossec.  I don&#8217;t want to turn this into a grsec vs selinux holy war ala vim-vs-emacs. Grsec is a good security tool, however it&#8217;s not what RHEL and CentOS have chosen to throw their weight behind. Grsec requires a significantly newer kernel than RHEL and centos ship, and this newer kernel can lead to ABI issues with applications or dependency issues for updates. The further you stray from the tools which ship with the distro, the less the distro support mechanisms will be able to help you.</p>
<p><span style="text-decoration: underline;"><strong>Providing Details</strong></span></p>
<p>Perhaps the biggest issue I have with supposed security advice is the lack of detail as to what some of the options mean or do. For a rather glaring example,  we can use securecentos.com&#8217;s page on tuning sysctl.conf. They provide instructions to wget the sysctl.conf file they supply, however they don&#8217;t go into detail as to what they set, or what benefits the options provide. Teaching is (or should be) at the core of security. An admin should understand the changes they&#8217;re making to a system rather than blindly pecking at keys because someone told them to. To make matters worse, the provided sysctl.conf file doesn&#8217;t contain comments explaining the various options there either. A budding admin is going to have no idea what a martian is in terms of linux networking, or why it may be important to have rp_filter enabled. These sorts of things need to be documented to take the voodoo out of security for new admins looking to do the right thing.</p>
<h2><span style="text-decoration: underline;"><strong>Do the Right Thing</strong></span></h2>
<p>With the plethora of poor security advice showing up, and often interspersed with good advice how are admins supposed to know what to listen to?  There are a few guidelines to work with so that you keep your system secure, and still get support from your distribution channels. If you stick with these steps, you should be in good shape for having a supportable, secure system.</p>
<ol>
<li>Identify the areas to secure based on exposure.  (web server, file server, DNS, etc)</li>
<li>Document the changes that you make. For support or duplication later on, it&#8217;s important to keep a record of changes you make to the default configurations.</li>
<li>Ask your distribution what security tools are included.</li>
<li>Use package management tools (see the <a title="Package Management" href="http://www.bofh-hunter.com/2009/01/02/evils-of-source/" target="_self">previous post</a>).</li>
<li>Look to 3rd party repositories <strong>after </strong>examining what the distribution provides and/or recommends.  3rd party vendors may well be an excellent source of security tools, but look at what the distro offers first.</li>
<li>Keep major modifications to core components to a minimum. Many distributions support only the software that they ship. If you replace core components like the kernel(for grsec) or go replacing distribution packages with external software, you may have to get your support from the external source. The more you deviate, the more places you&#8217;ll have to shop for support.</li>
<li>Most importantly, understand the changes you make to the system. If you&#8217;re unsure about a particular security setting (I&#8217;m thinking of sysctl.conf here) or you don&#8217;t fully understand the option means, ask.  The worst thing you as an admin can do is modify a system without understanding the benefit or penalty for a particular change.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.bofh-hunter.com/2009/01/09/supportable-linux-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Evils of Source</title>
		<link>http://www.bofh-hunter.com/2009/01/02/evils-of-source/</link>
		<comments>http://www.bofh-hunter.com/2009/01/02/evils-of-source/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 15:48:25 +0000</pubDate>
		<dc:creator>Jim Perrin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[package management]]></category>
		<category><![CDATA[Source]]></category>

		<guid isPermaLink="false">http://www.bofh-hunter.com/?p=87</guid>
		<description><![CDATA[
		
		
		
		It&#8217;s a near daily occurrence that I see an administrator building something from source because either they fail to understand how backporting works, or they want to install software which isn&#8217;t packaged in the default repositories. Source installs used to be common, but the problems inherent in them drove the creation of package management software.  [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.bofh-hunter.com/2009/01/02/evils-of-source/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "";
		digg_title = "Evils+of+Source";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>It&#8217;s a near daily occurrence that I see an administrator building something from source because either they fail to understand how <a title="Red Hat Speaks, BackPorting" href="http://www.redhat.com/advice/speaks_backport.html" target="_blank">backporting </a>works, or they want to install software which isn&#8217;t packaged in the default repositories. Source installs used to be common, but the problems inherent in them drove the creation of package management software.  Since you have package management software, USE IT!   I cannot stress this enough.</p>
<p>Source installs suck for the following reasons:</p>
<ol>
<li>They conflict with packaged installs of software.</li>
<li>They do not inform the package management system that they exist, which leads back to #1.</li>
<li>They generally leave no easy way to uninstall them later on.</li>
<li>There&#8217;s no record of what an installation does to your system, or what files are placed where. Searching them becomes a pain (what files did that install of  openssl drop on my system?)</li>
<li>They are not easily duplicated across multiple systems over time (think remote support for users)</li>
<li>There is no distribution update mechanism. If you updated via source for security reasons then congratulations, the onus is now on you to maintain that install, and track product security for its lifetime on your server.</li>
</ol>
<p>The benefits of using package management:</p>
<ol>
<li>Reliable reproduction of installs over time, and across multiple systems</li>
<li>Easily search for installs, files, and modifications of packages.</li>
<li>Easily get package meta-data such as who built it, when, build options used, and scripts required to set up the package for use.</li>
<li>Audit trails for allow you to know what files have changed since install, what permissions were modified, etc.</li>
<li>Simplified install, update and removal of packages. No hunting for remnants of previous installs.</li>
<li>Simplified dependency management and version tracking.</li>
<li>Distribution supplied updates. Rather than 1 admin tracking a dozen packages for updates, you have dozens of builders and hundreds of users testing and tracking the software.</li>
</ol>
<p>Just about every distribution out there has some form of support structure, either via irc, email, forums, or carrier pidgeon.  In many cases this community will be able to point you to a location where you can find packages for the software you&#8217;re wanting to install. In the case of CentOS, there are a number of <a title="3rd party Repositories" href="http://wiki.centos.org/AdditionalResources/Repositories">very good 3rd party repositories</a> providing quite literally thousands of packages which are not included in the base distribution. By using your distribution&#8217;s support mechanisms, you can provide a voice for the users and potentially guide the development efforts for future software releases.</p>
<p>In short, if you need a particular piece of software, please use your distribution&#8217;s package management system and if you cannot find a pre-existing package, ASK.  If one doesn&#8217;t exist, and won&#8217;t be created, build a package yourself (there are tutorials aplenty online) and submit it for inclusion. Source installs should only be done when all other options have been exhausted.</p>
<p><span style="color: #0000ff;"><strong>Update</strong></span>: Well, since this one seems to have generated some interesting responses, I thought I&#8217;d post a couple links that I&#8217;d neglected to mention. Thanks to <a title="Toracat needs your hugs" href="http://blog.toracat.org/" target="_blank">toracat </a>for pointing these out to me, since they fit in perfectly with what we&#8217;ve discussed here.</p>
<ul>
<li><a title="The definitive Source Install Guide" href="http://wiki.centos.org/PackageManagement/SourceInstalls" target="_blank">http://wiki.centos.org/PackageManagement/SourceInstalls</a></li>
<li><a title="The CentOS Forums" href="http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&amp;forum=47" target="_blank">http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&amp;forum=47</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.bofh-hunter.com/2009/01/02/evils-of-source/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Merry Christmas</title>
		<link>http://www.bofh-hunter.com/2008/12/24/merry-christmas/</link>
		<comments>http://www.bofh-hunter.com/2008/12/24/merry-christmas/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 13:25:53 +0000</pubDate>
		<dc:creator>Jim Perrin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bofh-hunter.com/?p=72</guid>
		<description><![CDATA[
		
		
		
		           *             ,
                       _/^\_
        [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.bofh-hunter.com/2008/12/24/merry-christmas/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "";
		digg_title = "Merry+Christmas";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><pre>           *             ,
                       _/^\_
                      &lt;&gt;
     *                 /.-.\         *
              *        `/&amp;\`                   *
                      ,@.*;@,
                     /_o.I %_\    *
        *           (`'--:o(_@;
                   /`;--.,__ `')             *
                  ;@`o % O,*`'`&amp;\
            *    (`'--)_@ ;o %'()\      *
                 /`;--._`''--._O'@;
                /&amp;*,()~o`;-.,_ `""`)
     *          /`,@ ;+&amp; () o*`;-';\
               (`""--.,_0 +% @' &amp;()\
               /-.,_    ``''--....-'`)  *
          *    /@%;o`:;'--,.__   __.'\
              ;*,&amp;(); @ % &amp;^;~`"`o;@();         *
              /(); o^~; &amp; ().o@*&amp;`;&amp;%O\
        jgs   `"="==""==,,,.,="=="==="`
           __.----.(\-''#####---...___...-----._
         '`         \)_`"""""`
                 .--' ')
               o(  )_-\
                 `"""` `</pre>
<p>ascii art taken from <a title="ascii" href="http://www.geocities.com/SoHo/7373/xmas.htm#xmastree">http://www.geocities.com/SoHo/7373/xmas.htm#xmastree</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bofh-hunter.com/2008/12/24/merry-christmas/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
