<?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>Richard K Miller &#187; Unix</title>
	<atom:link href="http://richardkmiller.com/category/unix/feed" rel="self" type="application/rss+xml" />
	<link>http://richardkmiller.com</link>
	<description></description>
	<lastBuildDate>Wed, 01 Feb 2012 15:26:50 +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>Script to enable/disable SOCKS proxy on Mac OS X</title>
		<link>http://richardkmiller.com/925/script-to-enabledisable-socks-proxy-on-mac-os-x</link>
		<comments>http://richardkmiller.com/925/script-to-enabledisable-socks-proxy-on-mac-os-x#comments</comments>
		<pubDate>Thu, 17 Feb 2011 22:19:31 +0000</pubDate>
		<dc:creator>Richard K Miller</dc:creator>
				<category><![CDATA[Main]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://richardkmiller.com/?p=925</guid>
		<description><![CDATA[I&#8217;m working in a Starbucks today and, as usual on the road, used SSH and SOCKS to browse the Internet securely, but today I decided to take it a step further and automate the process with a shell script. Here&#8217;s &#8230; <a href="http://richardkmiller.com/925/script-to-enabledisable-socks-proxy-on-mac-os-x">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class='microid-a558ef71801f92db73a8311241816f7f72d7a0f6'><p>I&#8217;m working in a Starbucks today and, as usual on the road, used <a href="http://richardkmiller.com/337/how-to-browse-securely-with-ssh-and-a-socks-proxy">SSH and SOCKS to browse the Internet securely</a>, but today I decided to take it a step further and automate the process with a shell script. Here&#8217;s the script, for what it&#8217;s worth:</p>
<pre class="brush: bash; title: ;">
#!/bin/bash
disable_proxy()
{
        networksetup -setsocksfirewallproxystate Wi-Fi off
        networksetup -setsocksfirewallproxystate Ethernet off
        echo &quot;SOCKS proxy disabled.&quot;
}
trap disable_proxy INT

networksetup -setsocksfirewallproxy Wi-Fi 127.0.0.1 9999
networksetup -setsocksfirewallproxy Ethernet 127.0.0.1 9999
networksetup -setsocksfirewallproxystate Wi-Fi on
networksetup -setsocksfirewallproxystate Ethernet on
echo &quot;SOCKS proxy enabled.&quot;
echo &quot;Tunneling...&quot;
ssh -ND 9999 MYHOST.macminicolo.net
</pre>
<p>Instructions:</p>
<ol>
<li>Save this to a file. I saved it to &#8220;/Users/richard/bin/ssh_tunnel&#8221;.</li>
<li>Make it executable and run it.
<pre>
$ chmod a+x /Users/richard/bin/ssh_tunnel
$ /Users/richard/bin/ssh_tunnel
</pre>
</li>
<li>It creates an SSH tunnel to my dedicated server at <a href="http://macminicolo.net">macminicolo.net</a> and routes Internet traffic through that server.</li>
<li>Hit Control-C to quit. The proxy is disabled. No need to fiddle with Network Preferences manually.</li>
</ol>
<p>UPDATE March 18, 2011: I haven&#8217;t tried it, but <a href="http://chetansurpur.com/projects/sidestep/">Sidestep</a> appears to be a free Mac OS X app that will enable SSH tunneling automatically when you connect to an insecure network.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://richardkmiller.com/925/script-to-enabledisable-socks-proxy-on-mac-os-x/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to browse securely with SSH and a SOCKS proxy</title>
		<link>http://richardkmiller.com/337/how-to-browse-securely-with-ssh-and-a-socks-proxy</link>
		<comments>http://richardkmiller.com/337/how-to-browse-securely-with-ssh-and-a-socks-proxy#comments</comments>
		<pubDate>Wed, 03 Sep 2008 15:54:52 +0000</pubDate>
		<dc:creator>Richard K Miller</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Main]]></category>
		<category><![CDATA[Privacy]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.richardkmiller.com/blog/?p=337</guid>
		<description><![CDATA[I was in Moab this weekend with my family and our motel had free wireless Internet. I used SSH and a SOCKS proxy to create a secure tunnel to my iMac at work. This allowed me to browse Gmail and &#8230; <a href="http://richardkmiller.com/337/how-to-browse-securely-with-ssh-and-a-socks-proxy">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class='microid-f166988fec97ae901087390e86c67a8a931c5c62'><p>I was in Moab this weekend with my family and our motel had free wireless Internet. I used SSH and a SOCKS proxy to create a secure tunnel to my iMac at work. This allowed me to browse Gmail and Facebook securely.</p>
<p>Here&#8217;s a screencast on how to create an SSH tunnel and browse securely in Safari and Firefox:<br />
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/0gmNGMlEMxw&#038;hl=en&#038;fs=1&#038;fmt=18"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/0gmNGMlEMxw&#038;hl=en&#038;fs=1&#038;fmt=18" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>Here&#8217;s a full-size video:<br />
<a href="http://www.richardkmiller.com/screencasts/secure_connection_ssh_and_socks/">How to browse securely with SSH and a SOCKS proxy</a> (full size video)</p>
<p>These are the basic steps on a Mac:<br />
1. Open Terminal. (In your Applications/Utilities folder.)<br />
2. Type &#8220;ssh -D 9999 username@example.com&#8221;, replacing &#8220;username&#8221; and &#8220;example.com&#8221; with the actual username and address of your remote machine. The remote machine will need the SSH service, or Remote Login service, turned on.<br />
3. Open System Preferences -> Network -> Advanced tab -> Proxies.<br />
4. Turn on the &#8220;SOCKS Proxy&#8221; and enter &#8220;127.0.0.1&#8243; and &#8220;9999&#8243; in the fields. Click OK and Apply.</p>
<p>Now your Internet connection will be tunneled through a secure connection to your remote machine &#8212; a poor man&#8217;s VPN.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://richardkmiller.com/337/how-to-browse-securely-with-ssh-and-a-socks-proxy/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The Patriot Act and Customer Service</title>
		<link>http://richardkmiller.com/291/the-patriot-act-and-customer-service</link>
		<comments>http://richardkmiller.com/291/the-patriot-act-and-customer-service#comments</comments>
		<pubDate>Thu, 19 Jul 2007 14:09:15 +0000</pubDate>
		<dc:creator>Richard K Miller</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Government]]></category>
		<category><![CDATA[Law]]></category>
		<category><![CDATA[Main]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.richardkmiller.com/blog/archives/2007/07/the-patriot-act-and-customer-service</guid>
		<description><![CDATA[I. Mac and Linux computers come with a command called &#8220;rsync&#8221; that makes backup and synchronization easy. Every morning before work I synchronize my 4 year old dying Powerbook to my iMac at work. When I get home, I synchronize &#8230; <a href="http://richardkmiller.com/291/the-patriot-act-and-customer-service">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class='microid-00f01f7f804d02964a960813be288ebaaba0e919'><p>I. Mac and Linux computers come with a command called &#8220;rsync&#8221; that makes backup and synchronization easy. Every morning before work I synchronize my 4 year old dying Powerbook to my iMac at work. When I get home, I synchronize back. This way, I get my same mail, documents, and music wherever I am, and if something were to happen to one computer, I&#8217;d have a backup. I synchronize over the Internet, but I know a local guy that synchronizes to his iPod so he can physically carry his updates in and out of the office.</p>
<div style="width:250px; float:right; margin: 5px;"><a href='http://www.richardkmiller.com/blog/wp-content/uploads/2007/07/canaries.jpg' title='canaries.jpg' rel='lightbox'><img src='http://www.richardkmiller.com/blog/wp-content/uploads/2007/07/canaries.jpg' alt='canaries.jpg' /></a><br />Photo by <a href="http://flickr.com/photos/orqwith/435036918/">quimby</a></div>
<p>II. At work, we&#8217;ve begun using a service called <a href="http://www.rsync.net/">rsync.net</a> for backup. We synchronize our files to their service and pay them $1.60 per gigabyte per month. It&#8217;s a pretty inexpensive way to do backup, and it&#8217;s nice to have the backup offsite. The rsync.net engineers with whom I&#8217;ve spoken have been top notch.</p>
<p>For privacy, we actually use a derivative of rsync called &#8220;duplicity&#8221;, which encrypts our data before storing them at rsync.net. Their website explains how to use duplicity and other encryption techniques, but I thought it was particularly interesting to find they publish a <strong>&#8220;warrant canary&#8221;</strong>. Because the Patriot Act allows the service of secret warrants for the search and seizure of data, and criminal penalties for failing to maintain secrecy, rsync.net publishes a weekly declaration that they haven&#8217;t been served a warrant:</p>
<blockquote><p>rsync.net will also make available, weekly, a &#8220;warrant canary&#8221; in the form of a cryptographically signed message containing the following:</p>
<p>- a declaration that, up to that point, no warrants have been served, nor have any searches or seizures taken place</p>
<p>- a cut and paste headline from a major news source, establishing date</p>
<p>Special note should be taken if these messages ever cease being updated, or are removed from this page.</p>
</blockquote>
<p>Source: <a href="http://www.rsync.net/resources/notices/canary.txt">rsync.net Warrant Canary</a></p>
<p>If the &#8220;canary&#8221; dies, you&#8217;re supposed to close shop and get out.</p>
<p>I don&#8217;t know the legal implications of a warrant canary, but it seems like a particularly unique example of putting the customer first!</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://richardkmiller.com/291/the-patriot-act-and-customer-service/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

