<?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"
	>

<channel>
	<title>Andy Cottrell</title>
	<atom:link href="http://blog.andycottrell.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.andycottrell.com</link>
	<description>Technology, Security, Life.....</description>
	<pubDate>Thu, 10 Sep 2009 07:27:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Using route and iptables to proxy traffic</title>
		<link>http://blog.andycottrell.com/2009/09/using-route-and-iptables-to-proxy-traffic/</link>
		<comments>http://blog.andycottrell.com/2009/09/using-route-and-iptables-to-proxy-traffic/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 07:17:29 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=35</guid>
		<description><![CDATA[As part of an experiment at work, I wanted to intercept all traffic on port 80 that was headed to a certain IP address. To handle the traffic, I built a python script using BaseHTTPServer based around this sample code and ran it on .202 - one of my CentOS 5.2 boxes.
Next step was to [...]]]></description>
			<content:encoded><![CDATA[<p>As part of an experiment at work, I wanted to intercept all traffic on port 80 that was headed to a certain IP address. To handle the traffic, I built a python script using BaseHTTPServer based around <a href="http://wiki.python.org/moin/BaseHttpServer" target="_blank">this sample code</a> and ran it on .202 - one of my CentOS 5.2 boxes.</p>
<p>Next step was to get the traffic to the right machine. As the browser was on a Vista box, I used the windows command <code>route ADD 82.94.164.162  192.168.0.202 </code>Yes that&#8217;s the python.org website. I often use that for testing as is generally well behaved and doesn&#8217;t seem to do &#8217;special&#8217; things.</p>
<p>Now I needed to tell the .202 box to not forward the traffic, but to deliver it locally. <em>iptables </em>to the rescue: <code>sudo /sbin/iptables -t nat -A PREROUTING -p tcp -j REDIRECT</code></p>
<p>Didn&#8217;t even need to poke a hole in the iptables firewall as this seemed to do the job without.</p>
<p>iptables is BUCK!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2009/09/using-route-and-iptables-to-proxy-traffic/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Converting VMWare 1.0.6 preallocated virtual disks to growable</title>
		<link>http://blog.andycottrell.com/2009/02/converting-vmware-106-preallocated-virtual-disks-to-growable/</link>
		<comments>http://blog.andycottrell.com/2009/02/converting-vmware-106-preallocated-virtual-disks-to-growable/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 04:26:22 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=33</guid>
		<description><![CDATA[Running out of space on your VMWare Server? Try this to convert some of your larger preallocated disks to growable. This way they only consume the space on the disk that they currently need, and will not consume disk space on the host drive for disk space on the guest systems whic is in fact [...]]]></description>
			<content:encoded><![CDATA[<p>Running out of space on your VMWare Server? Try this to convert some of your larger preallocated disks to growable. This way they only consume the space on the disk that they currently need, and will not consume disk space on the host drive for disk space on the guest systems whic is in fact empty and unused.</p>
<p>Stop the VM, then:</p>
<pre>vmware-vdiskmanager -r GuestVM.vmdk -t 0 NewGuestVM.vmdk</pre>
<p>This will create a new, growable, <span style="underline;">copy</span> of the original drive. Then you will need to point the VM at the new drive (or delete the original and rename the new one back to the same name as the old).</p>
<p>I assume there is a performance penalty for doing this. But if you are running out of space, this can at least buy you some time.</p>
<p>While you are messing around on the command line, you could use the following to defrag the VMDK file for better perfomance.</p>
<pre>vmware-vdiskmanager -d Guest.vmdk</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2009/02/converting-vmware-106-preallocated-virtual-disks-to-growable/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CentOS 5.2 does not install on VMWare Server 1.0.6</title>
		<link>http://blog.andycottrell.com/2009/02/centos-52-does-not-install-on-vmware-server-106/</link>
		<comments>http://blog.andycottrell.com/2009/02/centos-52-does-not-install-on-vmware-server-106/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 05:38:49 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=32</guid>
		<description><![CDATA[This is a known bug inherited from RedHat.
http://rhn.redhat.com/errata/RHSA-2009-0225.html
Workaround is to add
scsi0.virtualDev = "lsilogic"
to the .vmx file before installation.
]]></description>
			<content:encoded><![CDATA[<p>This is a known bug inherited from RedHat.</p>
<p><a title="http://rhn.redhat.com/errata/RHSA-2009-0225.html" href="http://rhn.redhat.com/errata/RHSA-2009-0225.html" target="_blank">http://rhn.redhat.com/errata/RHSA-2009-0225.html</a></p>
<p>Workaround is to add</p>
<pre>scsi0.virtualDev = "lsilogic"</pre>
<p>to the .vmx file before installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2009/02/centos-52-does-not-install-on-vmware-server-106/feed/</wfw:commentRss>
		</item>
		<item>
		<title>To read a CD into an ISO on CentOS 5.2</title>
		<link>http://blog.andycottrell.com/2009/01/to-read-a-cd-into-an-iso-on-centos-52/</link>
		<comments>http://blog.andycottrell.com/2009/01/to-read-a-cd-into-an-iso-on-centos-52/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 23:59:36 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=31</guid>
		<description><![CDATA[dd if=/dev/cdrom of=your_image.iso
]]></description>
			<content:encoded><![CDATA[<p>dd if=/dev/cdrom of=your_image.iso</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2009/01/to-read-a-cd-into-an-iso-on-centos-52/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mounting the CDRom on Centos 5.2</title>
		<link>http://blog.andycottrell.com/2009/01/mounting-the-cdrom-on-centos-52/</link>
		<comments>http://blog.andycottrell.com/2009/01/mounting-the-cdrom-on-centos-52/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 23:20:56 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=30</guid>
		<description><![CDATA[Ensure the mount point /mnt/cdrom exists.
To perform the mount:
mount -t auto /dev/cdrom /mnt/cdrom
If the symbolic link /dev/cdrom is not there, then try:
mount -t auto /dev/hdb /mnt/cdrom
replacing hdb with whatever your device is called.
]]></description>
			<content:encoded><![CDATA[<p>Ensure the mount point /mnt/cdrom exists.</p>
<p>To perform the mount:</p>
<pre>mount -t auto /dev/cdrom /mnt/cdrom</pre>
<p>If the symbolic link /dev/cdrom is not there, then try:</p>
<pre>mount -t auto /dev/hdb /mnt/cdrom</pre>
<p>replacing hdb with whatever your device is called.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2009/01/mounting-the-cdrom-on-centos-52/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Poking a hole in the CentOS firewall</title>
		<link>http://blog.andycottrell.com/2009/01/poking-a-hole-in-the-centos-firewall/</link>
		<comments>http://blog.andycottrell.com/2009/01/poking-a-hole-in-the-centos-firewall/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 20:05:54 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=29</guid>
		<description><![CDATA[With CentOS 5.2 (as ever), use the following to enable a listening tcp port (in this case 8000) to be accessed through the firewall.
sudo /sbin/iptables -A INPUT -p tcp &#8211;dport 8000 -j ACCEPT
sudo /sbin/service iptables save
sudo /sbin/iptables -F
]]></description>
			<content:encoded><![CDATA[<p>With CentOS 5.2 (as ever), use the following to enable a listening tcp port (in this case 8000) to be accessed through the firewall.</p>
<p>sudo /sbin/iptables -A INPUT -p tcp &#8211;dport 8000 -j ACCEPT<br />
sudo /sbin/service iptables save<br />
sudo /sbin/iptables -F</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2009/01/poking-a-hole-in-the-centos-firewall/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Enabling RDP on Windows Vista Home</title>
		<link>http://blog.andycottrell.com/2008/12/enabling-rdp-on-windows-xp-home-2/</link>
		<comments>http://blog.andycottrell.com/2008/12/enabling-rdp-on-windows-xp-home-2/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 15:44:02 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=27</guid>
		<description><![CDATA[The instructions for retrofitting Terminal server to Windows Vista Home are here. This enables Remote Desktop to that machine.
]]></description>
			<content:encoded><![CDATA[<p>The instructions for retrofitting Terminal server to Windows Vista Home are <a href="http://portal.tonychan.org/Default.aspx?tabid=58&amp;EntryID=123" target="_blank">here</a>. This enables Remote Desktop to that machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2008/12/enabling-rdp-on-windows-xp-home-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Enabling RDP on Windows XP Home</title>
		<link>http://blog.andycottrell.com/2008/12/enabling-rdp-on-windows-xp-home/</link>
		<comments>http://blog.andycottrell.com/2008/12/enabling-rdp-on-windows-xp-home/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 13:14:09 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=26</guid>
		<description><![CDATA[The instructions for retrofitting Terminal server to Windows XP Home are here. This enables Remote Desktop to that machine.
]]></description>
			<content:encoded><![CDATA[<p>The instructions for retrofitting Terminal server to Windows XP Home are <a href="http://www.mydigitallife.info/2008/06/14/install-and-enable-remote-desktop-in-windows-xp-home-edition/" target="_blank">here</a>. This enables Remote Desktop to that machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2008/12/enabling-rdp-on-windows-xp-home/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Diagnosing HDD performance under Windows</title>
		<link>http://blog.andycottrell.com/2008/12/diagnosing-hdd-performance-under-windows/</link>
		<comments>http://blog.andycottrell.com/2008/12/diagnosing-hdd-performance-under-windows/#comments</comments>
		<pubDate>Thu, 25 Dec 2008 19:19:16 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=24</guid>
		<description><![CDATA[I have never really found a good way to diagnose HDD performance problems under any version of Windows, especially not Vista. I did, however, recently find this cool util which is a useful tool to keep at hand. Simple install, intuitive GUI and it just works (as admin under Vista). HD Tune
]]></description>
			<content:encoded><![CDATA[<p>I have never really found a good way to diagnose HDD performance problems under any version of Windows, especially not Vista. I did, however, recently find this cool util which is a useful tool to keep at hand. Simple install, intuitive GUI and it just works (as admin under Vista). <a href="http://www.hdtune.com/" target="_blank">HD Tune</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2008/12/diagnosing-hdd-performance-under-windows/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Setting up an NTP client on CentOS 5.2</title>
		<link>http://blog.andycottrell.com/2008/09/setting-up-an-ntp-client-on-centos-52/</link>
		<comments>http://blog.andycottrell.com/2008/09/setting-up-an-ntp-client-on-centos-52/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 05:03:56 +0000</pubDate>
		<dc:creator>andy</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.andycottrell.com/?p=23</guid>
		<description><![CDATA[The best way to make sure servers have the correct time set on their system clock, is to use NTP to synchronize the clock to an external time source. I always use pool.ntp.org as the external source, as this represents a pool of servers who are willing to provide the service. All sorts of things [...]]]></description>
			<content:encoded><![CDATA[<p>The best way to make sure servers have the correct time set on their system clock, is to use <a title="NTP" href="http://www.ntp.org/" target="_blank">NTP</a> to synchronize the clock to an external time source. I always use <a title="NTP Pool" href="http://en.wikipedia.org/wiki/Ntp_pool" target="_blank">pool.ntp.org</a> as the external source, as this represents a pool of servers who are willing to provide the service. All sorts of things can go wrong if you do not keep clocks set accurately - especially security stuff where ticket and certificate validity periods get checked automatically. I set this up on my CentOS box as follows (as root).</p>
<p>To check the client was installed: <code>yum list ntp</code><br />
It was: <code>ntp.i386   4.2.2p1-8.el5.centos.1 installed</code><br />
If it had not been, I would have used: <code>yum install ntp</code><br />
To get the client started on system start: <code>chkconfig ntpd on</code><br />
To force a sync of the clock to NTP now: <code>ntpdate pool.ntp.org</code><br />
To start the service as if the system had been powered on: <code>/etc/init.d/ntpd start</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andycottrell.com/2008/09/setting-up-an-ntp-client-on-centos-52/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
