<?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>Burm.net &#187; server</title>
	<atom:link href="http://burm.net/category/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://burm.net</link>
	<description>John Burmeister's Blog</description>
	<lastBuildDate>Tue, 31 Jan 2012 03:31:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>XenServer basic security Tips &#8211; How do you secure your XenServer?</title>
		<link>http://burm.net/2012/01/29/xenserver-basic-security-tips-how-do-you-secure-your-xenserver/</link>
		<comments>http://burm.net/2012/01/29/xenserver-basic-security-tips-how-do-you-secure-your-xenserver/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 07:49:05 +0000</pubDate>
		<dc:creator>John Burmeister</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Xen]]></category>
		<category><![CDATA[XenServer]]></category>
		<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://burm.net/?p=278</guid>
		<description><![CDATA[Using this post to keep some notes on a few things I did to my XenServer instance,  most of this is just common sense. Disable root login via SSH First things first, make sure you add a user on the Xenserver box.  This is the user you will allow to login via SSH (if you [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fburm.net%2F2012%2F01%2F29%2Fxenserver-basic-security-tips-how-do-you-secure-your-xenserver%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fburm.net%2F2012%2F01%2F29%2Fxenserver-basic-security-tips-how-do-you-secure-your-xenserver%2F&amp;source=burmjohn&amp;style=compact&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Using this post to keep some notes on a few things I did to my XenServer instance,  most of this is just common sense.</p>
<p><strong>Disable root login via SSH</strong></p>
<p>First things first, make sure you add a user on the Xenserver box.  This is the user you will allow to login via SSH (if you have SSH running at all).</p>
<p>Edit the sshd_config, and find the text #PermitRootLogin yes and change it to:</p>
<p>PermitRootLogin no</p>
<p>Right below that add a new line, and replace USERNAME with the username you created.</p>
<p>AllowUsers USERNAME</p>
<p>If you have more then one user that you want to add just put a space between them and add them in succession.  Example:</p>
<p>AllowUsers john harry bob</p>
<p>Then go ahead and restart sshd:</p>
<p>/etc/init.d/sshd restart</p>
<p>Open up a new terminal session and make sure you can login to the server under your new user, and you should be good to go!</p>
<p><strong>Edit the web page that XenServer shows or limit access completely</strong></p>
<p>Xenserver by default serves up a web page that gives your links to download the Xen Center admin console&#8230; The web server also servers up the XAPI that is needed for the admin console to access the server remotely. So you have a few options, edit the index.html page to remove the data on there and serve up a blank page.  Or the better option is to restrict access completely to the XAPI via the hosts file.  And the best option is to toss the Xenserver behind a firewall (hardware or software).  Perhaps I&#8217;ll go into detail on how to do that in a future post, but in short, firewall the entire server and tunnel in via SSH, which would be the most secure avenue. The only downside to restricting access via a firewall or restricting access via the hosts file is that if you are not at home / work / at a PC where you have access to the restrictions in place your, out of luck on getting access to your server.   Now keep in mind, there are alternatives for access (port knocking, ssh via another server or VM, etc)  I could go on forever, but everyones situation is different. With that said, lets go over the first two options.</p>
<p>To prevent XenServer from showing the default index.html page, you can either edit the actual file and change it to your liking. The file is located here:</p>
<p>/opt/xensource/www/index.html</p>
<p>For the second option, you can reference the Citrix support document here for detailed information on modifying the hosts file http://support.citrix.com/article/CTX118504, however below is essentially what you need to do.</p>
<p>First edit the hosts.deny file located here: /etc/hosts.deny and enter in: xapi:ALL &#8211; What this does is restrict every IP from accessing the XAPI.  Second, you&#8217;ll need to edit the hosts.allow file, which takes precedence over the hosts.deny and specify the ip adresses or range of ip addresses that you would like to allow access to the XAPI.  The hosts.allow file is located /etc/hosts.allow</p>
<p>Allow access to a specific ip in the hosts.allow you would put in the following replacing IPADDRESS with the ip you would like to grant access:</p>
<p>xapi:IPADDRESS</p>
<p>Example:</p>
<p>xapi:24.22.12.222</p>
<p>To allow access to a group of ip addresses, for our example, lets use 24.22. &#8211; this would allow any ip address that begins with 24.22. to access the XAPI.</p>
<p>Example:</p>
<p>xapi: 24.22.</p>
<p>If you happen to come across this page, what do you do to lock down your XenServer installs?  I&#8217;ll be writing a few more articles as I dive deeper into Xen and XenServer, so be sure to check back often.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://burm.net/2012/01/29/xenserver-basic-security-tips-how-do-you-secure-your-xenserver/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Home Server Build &#8211; Somewhat Energy Efficient</title>
		<link>http://burm.net/2007/12/21/home-server-build-somewhat-energy-efficient/</link>
		<comments>http://burm.net/2007/12/21/home-server-build-somewhat-energy-efficient/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 16:50:56 +0000</pubDate>
		<dc:creator>John Burmeister</dc:creator>
				<category><![CDATA[house]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://burm.net/2007/12/21/home-server-build-somewhat-energy-efficient/</guid>
		<description><![CDATA[This is the new server I am putting together, it will control do the following: Security Server (Video Camera&#8217;s with motion detection / recording) &#8211; Going to run ZoneMinder Media / File Server &#8211; 1TB of storage w/rsync of important files to backup offsite. Home Automation Server &#8211; Lighting / Temp control Web Server &#8211; [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fburm.net%2F2007%2F12%2F21%2Fhome-server-build-somewhat-energy-efficient%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fburm.net%2F2007%2F12%2F21%2Fhome-server-build-somewhat-energy-efficient%2F&amp;source=burmjohn&amp;style=compact&amp;service=bit.ly&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This is the new server I am putting together, it will control do the following:</p>
<p>Security Server (Video Camera&#8217;s with motion detection / recording) &#8211; Going to run <a href="http://burm.net/wp-admin/OS:%20Debian%20GNU/Linux">ZoneMinder</a><br />
Media / File Server &#8211; 1TB of storage w/rsync of important files to backup offsite.<br />
Home Automation Server &#8211; Lighting / Temp control<br />
Web Server &#8211;  light duty / intranet<br />
DB Server &#8211; very light / dev work<br />
Backup Server &#8211; backup for some production sites<br />
Vmware Server &#8211; Running 2 VM&#8217;s &#8211; Light duty (Win XP and a Linux Distro)<br />
Dev Server &#8211; For testing some apps</p>
<p>Sounds like a lot, but its all light duty and this server should be plenty for it. And with the HD choice and the energy efficent options with the Core 2 I should be able keep the energy consumption down.</p>
<p>The server will be running Debian GNU/Linux of course.</p>
<p>PSU: <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16817139002">CORSAIR CMPSU-620HX</a><br />
Case: <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16811119138">COOLER MASTER COSMOS 1000</a><br />
Motherboard: <a href="http://www.newegg.com/product/product.asp?item=N82E16813131184">ASUS P5K-V LGA 775 Intel G33 ATX Intel Motherboard &#8211; Retail</a><br />
CPU: <a href="http://www.newegg.com/product/product.asp?item=N82E16819115029">Intel Core 2 Duo E6750 Conroe 2.66GHz </a><br />
Memory: <a href="http://www.newegg.com/product/product.asp?item=N82E16820231122">G.SKILL 4GB(2 x 2GB)</a><br />
HD: <a href="http://www.newegg.com/product/product.asp?item=N82E16822136151">Western Digital Caviar GP WD10EACS 1TB 5400 to 7200 RPM 16MB Cache SATA 3.0Gb/s</a></p>
<p>Once the stuff starts rolling in, I&#8217;ll take some shots. I did receive the case last night, this thing weighs a ton, but it looks pretty solid.  It should really keep the noise down and be near silent.</p>
<p><a href="http://www.flickr.com/photos/burmjohn/2126613749/"><img src="http://farm3.static.flickr.com/2374/2126613749_eafe108e19.jpg?v=0" /></a></p>
<p><img src="http://farm3.static.flickr.com/2128/2126613827_7c4dc40506.jpg?v=0" /></p>
]]></content:encoded>
			<wfw:commentRss>http://burm.net/2007/12/21/home-server-build-somewhat-energy-efficient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

