<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
	<channel>
		<title>StarShock Linux Corner</title>
		<link>http://hellewell.homeip.net/phillip/blogs/index.php</link>
		<description><![CDATA[Copyright (c) 2006, Phillip Hellewell.  Individual comments owned by whoever posted them.]]></description>
		<copyright>Copyright 2009, Phillip Hellewell</copyright>
		<managingEditor>Phillip Hellewell</managingEditor>
		<language>en-US</language>
		<generator>SPHPBLOG 0.4.7.1</generator>
		<item>
			<title>Eee PC won&#039;t run my startup scripts</title>
			<link>http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry090517-103342</link>
			<description><![CDATA[I set up autofs to automount a Windows share, but it wouldn&#039;t work after a reboot because autofs was not running on startup!  I couldn&#039;t understand why because I saw it linked to by a file in rc2.d/.  I even tried calling it from /etc/rc.local but rc.local wasn&#039;t getting run on startup either!<br /><br />Finally, I discovered that my Eee PC runs something called fastinit on startup, not regular init (how do you think it boots so fast?).  Fastinit doesn&#039;t pay attention to what&#039;s in the rc?.d dirs.  To get autofs to run on startup the solution is to add autofs to the /ets/fastservices file.  I wish I had understood that sooner.]]></description>
			<category>Linux, Networking</category>
			<guid isPermaLink="true">http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry090517-103342</guid>
			<author>Phillip Hellewell</author>
			<pubDate>Sun, 17 May 2009 16:33:42 GMT</pubDate>
			<comments>http://hellewell.homeip.net/phillip/blogs/comments.php?y=09&amp;m=05&amp;entry=entry090517-103342</comments>
		</item>
		<item>
			<title>Linux Software RAID</title>
			<link>http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry090513-225357</link>
			<description><![CDATA[I had trouble getting Debian to install with Linux software raid (mdadm).  I was trying to RAID1 the boot partition, and RAID5 the root partition.  I was also going to RAID0 for swap but later decided to just have separate swaps but turn them all on and with the same priority.<br /><br />The main problem was Debian kept adding an extra /dev/md0 to the mdadm.conf.  The extra entry had the wrong UUID.  During the install process I had fixed mdadm.conf, but had not realized that the initrd also contained an mdadm.conf (with the extra entry).  This caused no end of grief because after each reboot it would show only 1 out of 4 components working [U___] and e2fsck would fail.  It was trying to add a whole disk (sdd) instead of the partitions (sda3,sdb3,sdc3,sdd4).<br /><br />Running update-initramfs fixed the problem nicely.  I wish I had known about that sooner.]]></description>
			<category>Linux</category>
			<guid isPermaLink="true">http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry090513-225357</guid>
			<author>Phillip Hellewell</author>
			<pubDate>Thu, 14 May 2009 04:53:57 GMT</pubDate>
			<comments>http://hellewell.homeip.net/phillip/blogs/comments.php?y=09&amp;m=05&amp;entry=entry090513-225357</comments>
		</item>
		<item>
			<title>VPN split tunneling</title>
			<link>http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry080509-170319</link>
			<description><![CDATA[I&#039;m big on security, but not at the expense of usability and privacy.  When it comes to VPN connections, I prefer split tunneling.  Split tunneling means instead of forcing all traffic through the VPN, only traffic destined for the remote subnet goes through the VPN.<br /><br />Here are my arguments:<br /><br />1. Forcing all traffic through the VPN doesn&#039;t provide a lot more security because:<br />    a. Traffic is encrypted from the user to the other end of the VPN, but not from there to the final destination.<br />    b. Traffic destined for external networks probably do not need to be secured anyways.<br />    c. The VPN client can usually be turned on and off at any time.<br />    d. When &quot;local lan&quot; is enabled, the computer connected to the vpn is still susceptible to attack from the public non-secured network by tunneling through another computer on the LAN first.<br /><br />2. Forcing all traffic through the VPN causes all of the following problems:<br />    a. Traffic between a user and external computers can be slowed down considerably.<br />    b. Traffic for others inside the secured network is slowed down by a VPN user needlessly.<br />    c. Certain protocols may be broken.<br />    d. Network applications get disconnected during VPN connection and must re-connect.<br />    e. Privacy.  Personal traffic like emailing your spouse should not be forced to travel through your work network.<br /><br />Disabling split tunneling may be ok for road-warriors, but for employees who work from home and need to constantly access both work resources and the Internet, it can be very annoying.<br />]]></description>
			<category>Networking</category>
			<guid isPermaLink="true">http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry080509-170319</guid>
			<author>Phillip Hellewell</author>
			<pubDate>Fri, 09 May 2008 23:03:19 GMT</pubDate>
			<comments>http://hellewell.homeip.net/phillip/blogs/comments.php?y=08&amp;m=05&amp;entry=entry080509-170319</comments>
		</item>
		<item>
			<title>unresolved external Foo::`scalar deleting destructor`</title>
			<link>http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry080307-102448</link>
			<description><![CDATA[The combination of these four conditions was causing VS.Net 2003 to give me that unexplicable linker error.<br /><br />1. Class has virtual DTOR.<br />2. Class is inside another class.<br />3. Class is built into a static library.<br />4. PCH is on.<br /><br />Removing any one of those conditions would solve the problem.  I chose #2, by moving my class to namespace level.<br />]]></description>
			<category>Programming</category>
			<guid isPermaLink="true">http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry080307-102448</guid>
			<author>Phillip Hellewell</author>
			<pubDate>Fri, 07 Mar 2008 17:24:48 GMT</pubDate>
			<comments>http://hellewell.homeip.net/phillip/blogs/comments.php?y=08&amp;m=03&amp;entry=entry080307-102448</comments>
		</item>
		<item>
			<title>Running CMD.EXE as Local System</title>
			<link>http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry070727-152424</link>
			<description><![CDATA[This page helped me figure out how to debug a problem I was having trying to run a windows service: <a href="http://blogs.msdn.com/adioltean/articles/271063.aspx" target="_blank" >blogs.msdn.com</a><br /><br />In short, you can create a service that will launch cmd.exe as the local system user, by running this:<br /><br /><code>sc.exe create testsvc binpath= &quot;cmd /K start&quot; type= own type= interact</code>]]></description>
			<category></category>
			<guid isPermaLink="true">http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry070727-152424</guid>
			<author>Phillip Hellewell</author>
			<pubDate>Fri, 27 Jul 2007 21:24:24 GMT</pubDate>
			<comments>http://hellewell.homeip.net/phillip/blogs/comments.php?y=07&amp;m=07&amp;entry=entry070727-152424</comments>
		</item>
		<item>
			<title>Linux kernel 2.6 IPSEC: single tunnel for multiple remote networks</title>
			<link>http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry070623-160740</link>
			<description><![CDATA[My workplace has a Fortinet IPSEC VPN, which I connect to from my Linux server.  There are multiple subnets at work, like 192.168.0.0/21 and 10.2.2.0/24, and this was causing problems.<br /><br />Everything was working great, except I could only connect to computers on one subnet at a time.  If I connected to a computer on the other subnet, the first subnet would stop working, and I would have to restart racoon to make it work again (actually I just had to reset my SAD entries, with setkey -F, and let it re-associate).<br /><br />To make a long story short, the problem was that Fortinet cannot handle multiple tunnels like that.  If you establish a second tunnel, it uses the keys negotiated in that tunnel from then on.  It doesn&#039;t use the first tunnel.  <a href="http://sourceforge.net/mailarchive/forum.php?thread_name=cd8179400706231425m2fe5d33fp301161a50c210a1%40mail.gmail.com&amp;forum_name=ipsec-tools-devel" target="_blank" >This post</a> explains it a little better.<br /><br />Well I never wanted two tunnels in the first place.  I only want one tunnel even though there are multiple subnets on the remote side.  To fix it, I simply had to use <b><code>require</code></b> instead of <b><code>unique</code></b> on my SPD entries!<br /><br />I&#039;m using Debian&#039;s racoon-tool to create my spd entries (and racoon.conf).  With racoon-tool, you simply have to add the <b><code>level: require</code></b> option to each of your connections in your racoon-tool.conf.<br /><hr><br />BTW, my tunnel looks like this:<br />a.b.c.d/32 =&gt; a.b.c.d =&gt; x.y.z.w =&gt; 192.168.0.0/21<br /><br />not like this:<br />192.168.8.0/24 =&gt; a.b.c.d =&gt; x.y.z.w =&gt; 192.168.0.0/21<br /><br />Since my Linux server performs NAT (MASQUERADE) in iptables, I only need the tunnel to go to my server, not to my whole LAN subnet.  Somehow it is smart enough to do NAT and then encrypted on the way out, and decrypt then un-NAT on the way in, or something like that.  BTW, it&#039;s so smart that even when I was having problems with two tunnels from my server, the computers inside my LAN could connect to both remote subnets with no problem!  I believe this is due to a special MASQ table that can dynamically associate SPI values.  <a href="http://tldp.org/HOWTO/VPN-Masquerade-HOWTO-6.html" target="_blank" >This page</a> explained it well for me.]]></description>
			<category>Linux, Networking</category>
			<guid isPermaLink="true">http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry070623-160740</guid>
			<author>Phillip Hellewell</author>
			<pubDate>Sat, 23 Jun 2007 22:07:40 GMT</pubDate>
			<comments>http://hellewell.homeip.net/phillip/blogs/comments.php?y=07&amp;m=06&amp;entry=entry070623-160740</comments>
		</item>
		<item>
			<title>No more posting</title>
			<link>http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry070515-081101</link>
			<description><![CDATA[Spammers got me again, even with captchas in place.<br /><br />I don&#039;t have time to sit around and delete spam posts all day, so I&#039;m going to have to disable comments, sorry.]]></description>
			<category>Personal, Networking</category>
			<guid isPermaLink="true">http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry070515-081101</guid>
			<author>Phillip Hellewell</author>
			<pubDate>Tue, 15 May 2007 14:11:01 GMT</pubDate>
			<comments>http://hellewell.homeip.net/phillip/blogs/comments.php?y=07&amp;m=05&amp;entry=entry070515-081101</comments>
		</item>
		<item>
			<title>Source not found in Eclipse 3.2.2 on Ubuntu Feisty Fawn</title>
			<link>http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry070509-141530</link>
			<description><![CDATA[When debugging a Java program, breakpoints would cause the program to stop, but instead of showing my source code, it was showing a &quot;source not found&quot; in red.  This was working fine before upgrading to feisty.<br /><br />I tried editing the source lookup path to no avail.<br /><br />The issue was Eclipse running under the java-gcj VM.  I edited my /etc/eclipse/java_home file and placed /usr/lib/jvm/java-1.5.0-sun at the very top and restarted Eclipse.  This time it ran under Sun&#039;s VM and the problem went away!<br />]]></description>
			<category>Linux, Programming</category>
			<guid isPermaLink="true">http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry070509-141530</guid>
			<author>Phillip Hellewell</author>
			<pubDate>Wed, 09 May 2007 20:15:30 GMT</pubDate>
			<comments>http://hellewell.homeip.net/phillip/blogs/comments.php?y=07&amp;m=05&amp;entry=entry070509-141530</comments>
		</item>
		<item>
			<title>All fixed; capchas in place</title>
			<link>http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry061008-011308</link>
			<description><![CDATA[I just had to apt-get install php4-gd.  Now capcha are graphical and hopefully that will keep spammers away, for the most part.]]></description>
			<category>Networking</category>
			<guid isPermaLink="true">http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry061008-011308</guid>
			<author>Phillip Hellewell</author>
			<pubDate>Sun, 08 Oct 2006 07:13:08 GMT</pubDate>
			<comments>http://hellewell.homeip.net/phillip/blogs/comments.php?y=06&amp;m=10&amp;entry=entry061008-011308</comments>
		</item>
		<item>
			<title>Spammers got me, comments disabled</title>
			<link>http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry061008-004600</link>
			<description><![CDATA[Sorry everyone, spammers got to my blog and so I&#039;ve had to temporarily disable comments.  Maybe I can set up a captcha or something, then I&#039;ll be able to re-enable it.]]></description>
			<category>Networking</category>
			<guid isPermaLink="true">http://hellewell.homeip.net/phillip/blogs/index.php?entry=entry061008-004600</guid>
			<author>Phillip Hellewell</author>
			<pubDate>Sun, 08 Oct 2006 06:46:00 GMT</pubDate>
			<comments>http://hellewell.homeip.net/phillip/blogs/comments.php?y=06&amp;m=10&amp;entry=entry061008-004600</comments>
		</item>
	</channel>
</rss>
