<?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>PCR&#039;s notepad &#187; privacy</title>
	<atom:link href="http://notepad.patheticcockroach.com/category/privacy/feed/" rel="self" type="application/rss+xml" />
	<link>http://notepad.patheticcockroach.com</link>
	<description>The area in patheticcockroach.com where the EEG isn&#039;t isoelectric</description>
	<lastBuildDate>Sun, 05 Feb 2012 12:11:36 +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>How to safely erase (wipe out) files or folders on Linux</title>
		<link>http://notepad.patheticcockroach.com/2717/safely-erasing-wipe-out-files-or-folders-on-linux/</link>
		<comments>http://notepad.patheticcockroach.com/2717/safely-erasing-wipe-out-files-or-folders-on-linux/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 07:08:15 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[privacy]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2717</guid>
		<description><![CDATA[I suppose it&#8217;s good practice to wipe out sensitive data from a server before giving it back to your host. On Windows, when I want to safely delete files I use Eraser (NB: versions 5.8.x and 6 suck pretty back &#8211; for instance they just fail to install for me, seemingly because of a bad [...]]]></description>
			<content:encoded><![CDATA[<p>I suppose it&#8217;s good practice to wipe out sensitive data from a server before giving it back to your host. On Windows, when I want to safely delete files I use <a href="http://eraser.heidi.ie/">Eraser</a> (NB: versions 5.8.x and 6 suck pretty back &#8211; for instance they just fail to install for me, seemingly because of a bad packed runtime &#8211; You can get <a href="http://sourceforge.net/projects/eraser/files/Eraser%205/">version 5.7 from Sourceforge</a>, although its shell integration won&#8217;t work in Windows 7). On Linux, until now I had pretty much no idea. But as often, this kind of pretty basic and useful software can be found in usual packages with simple names. And here we are talking about package &#8220;wipe&#8221;, of course <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>To install it, pretty straightforward (NB: I&#8217;m using Ubuntu, should be the same on Debian; on Fedora should be the same but with yum):<br />
<code>apt-get install wipe</code></p>
<p>And then to run it, for basic use it will take ALMOST (see below the warning about wildcards) the same kind of options as &#8220;rm&#8221;:<br />
<code>myLaptop:/home/david$ wipe -r thisFolder<br />
Okay to WIPE 1 directory ? (Yes/No) y<br />
Please answer "Yes" or "No".<br />
Okay to WIPE 1 directory ? (Yes/No) Yes<br />
Wiping ubuntu-11.10-dvd-amd64.iso, pass 9  (12)   [     213 /     5994]</code></p>
<p>The default setting is 34 overwrite passes, which is huge and slow, but I guess helpful if you are paranoid. If you want fewer passes, use -Q [number of passes]. The <a href="http://linux.die.net/man/1/wipe">manual</a> might be an interesting read, too.</p>
<p>A very important warning about using wildcards: DO NOT use <code>wipe -r .*</code>. As <a href="http://us.generation-nt.com/answer/just-info-never-do-wipe-help-200181791.html">reported there</a>, this pattern matches <code>..</code> so wipe will then browse around and erase the whole disk if you&#8217;re running it as root (and even if you&#8217;re not, it will likely get to places where you didn&#8217;t want it to go). This is not a bug, it&#8217;s actually a feature. rm not matching <code>..</code> when you call it on <code>.*</code> is a safeguard, but when you&#8217;re using wipe chances are that it&#8217;s more of a problem to miss deletions than to do too many of them, thus this aggressive behavior. I didn&#8217;t try it but most likely this is true of <code>wipe -r *</code> too.</p>
<p>If you want to erase all the dot files in a folder, you can either use <code>wipe .??*</code> or move on level up and do <code>wipe -r theFolder</code>, like I did in my example.</p>
<p>Edit: actually, I did gave a shot at wipe -q -r .* on a virtual box, it didn&#8217;t wipe everything out, as can be seen from the output:<br />
<code>root@xxxxx:~# wipe -q -r .*<br />
Okay to WIPE 9 regular files and 7 directories ? (Yes/No) Yes<br />
Will not remove .<br />
Will not remove ..<br />
Operation finished.</code></p>
<p>Finally, I thought that could be useful on Windows so I checked out: unfortunately wipe is not available in Cygwin as of today.</p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2717/safely-erasing-wipe-out-files-or-folders-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How I used Scroogle to &#8220;fix&#8221; a computer</title>
		<link>http://notepad.patheticcockroach.com/2641/how-i-used-scroogle-to-fix-a-computer/</link>
		<comments>http://notepad.patheticcockroach.com/2641/how-i-used-scroogle-to-fix-a-computer/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 20:08:21 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[funnies]]></category>
		<category><![CDATA[privacy]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2641</guid>
		<description><![CDATA[A couple of weeks ago, I was asked to have a look at a &#8220;broken computer&#8221;, or more precisely, at a Mac with a &#8220;broken Internet&#8221;. &#8220;It broke when our ISP changed the [modem-router] &#8211; by the way, the phone line got broken too in the process&#8221;. I&#8217;m not anymore a big fan of fixing [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of weeks ago, I was asked to have a look at a &#8220;broken computer&#8221;, or more precisely, at a Mac with a &#8220;broken Internet&#8221;. &#8220;It broke when our ISP changed the [modem-router] &#8211; by the way, the phone line got broken too in the process&#8221;. I&#8217;m not anymore a big fan of fixing other people&#8217;s computers because that tends to be repetitive (always the same mistakes, always the same shitloads of junkware, and you can be sure that 2 months after you cleaned it all it will be all back as it was), but since I don&#8217;t know Macs much (more like &#8220;not at all&#8221;, in fact), I still find fixing them an interesting challenge.</p>
<p>So I discover a shiny Mac with apparently no central unit:<br />
&#8220;- Mkay, where&#8217;s your central unit?<br />
- My what?<br />
- Well, nevermind. What&#8217;s that small thing, is this the [ISP-issued modem-router]?<br />
- That is the computer.<br />
- Oh&#8221; (Macs, eh&#8230;)</p>
<p>Then my summoner demonstrated the broken internet problem: open &#8220;Internet&#8221; (Safari + Google as start page), type a search, click any result => crash:<br />
&#8220;- Look, Internet is broken<br />
- Actually, it&#8217;s not Internet, it&#8217;s your browser.<br />
- My what?<br />
- Mkay, nervermind. I&#8217;m going to install a piece of software which should fix this.&#8221;</p>
<p>Then I went to getfirefox and got a weird page with no download link. After a bit of searching around, I finally find a useful message: &#8220;Your OS is too old to install Firefox 3.6&#8243;. (NB: that&#8217;s not a mistake, it was a few weeks ago, the current version of Fx was 9.0, still the website was telling me &#8220;too old for Fx 3.6&#8243;). Jeez, I didn&#8217;t know Fx had such high version requirements. Tried Chrome: same problem.</p>
<p>&#8220;- How old is your computer?<br />
- I don&#8217;t know&#8230;&#8221;<br />
(of course, why did I even ask)<br />
I browsed around a bit, finally found the OS version: Mac OS 10.3.9. (c) Apple 19??-2004. It&#8217;s amazing how a Mac is able to _look_ recent while actually being an ancestor.<br />
&#8220;- I guess you bought it like in 2004-2005?<br />
- Sounds about right&#8221;</p>
<p>That looked like a dead-end: no way to upgrade the browser without first upgrading the system. Not sure how far that old Mac (512 MiB of RAM, if I remember well&#8230;) could even be upgraded, not to mention how much it would cost.</p>
<p>&#8220;- Maybe&#8230; you should get a new computer?<br />
- What? Oh noes, it&#8217;s so recent!&#8221;<br />
(come on, it&#8217;s 8 years old, finish it already!)<br />
&#8220;- Okay, maybe I&#8217;ve got a workaround: I can replace Google with Scroogle.<br />
- What?<br />
- I can replace Google with another, plainer version. It gives the same results, but without the fancy look.<br />
- Alright!&#8221;<br />
(yeah, usually I don&#8217;t manage to convert people to Scroogle because &#8220;yuck, it&#8217;s ugly&#8221;, but suddenly when it can save a few hundred bucks, look doesn&#8217;t matter so much anymore)</p>
<p>So, I replaced Google with Scroogle SSL search French in the bookmarks and start page, explain that &#8220;yes the page &#8211; title and search button &#8211; is in English but the results will favor French pages&#8221;. I then offered my summoner to try for themselves: open &#8220;Internet&#8221; (Safari + Scroogle as start page), type a search, click any result =><br />
&#8220;- Google works, it&#8217;s a miracle!<br />
- Actually, it&#8217;s not really Google, it&#8217;s Scroogle.<br />
- It&#8217;s what?<br />
- Nvm&#8230;&#8221;</p>
<p>They then tried a few other searches, and at some point went to Wikipedia:<br />
&#8220;- Wait a minute, does it look normal to you?<br />
- What do you mean? Yeah it works great!&#8221;<br />
Honestly, the page was a wreck. To give you an idea, if you have the technical knowledge (if you don&#8217;t, just imagine): try loading Wikipedia <strong>without the stylesheets</strong>. No wonder eventually some AJAX-intensive site managed to crash that middle-age Safari&#8230;</p>
<p>Anyway, the official version is I &#8220;fixed Internet&#8221;, and as a bonus I withdrew someone from BigBrother&#8217;s reach. Half an hour well spent <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2641/how-i-used-scroogle-to-fix-a-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Freenet on Ubuntu server (command line)</title>
		<link>http://notepad.patheticcockroach.com/2519/installing-freenet-on-ubuntu-server-command-line/</link>
		<comments>http://notepad.patheticcockroach.com/2519/installing-freenet-on-ubuntu-server-command-line/#comments</comments>
		<pubDate>Sun, 25 Dec 2011 17:00:10 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[cryptography]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2519</guid>
		<description><![CDATA[After the Tor command line installation guide, it&#8217;s only logical to carry on with Freenet It&#8217;s a bit sad how both those projects lack of crystal clear command line instructions, as, once again, they would likely benefit the most from users running them on dedicated servers, i.e. most often on GUI-less machines. This guide was [...]]]></description>
			<content:encoded><![CDATA[<p>After the <a href="http://notepad.patheticcockroach.com/2487/installing-and-controlling-a-tor-relay-on-linux-via-command-line-only/">Tor command line installation guide</a>, it&#8217;s only logical to carry on with <a href="http://freenetproject.org">Freenet</a> <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  It&#8217;s a bit sad how both those projects lack of crystal clear command line instructions, as, once again, they would likely benefit the most from users running them on dedicated servers, i.e. most often on GUI-less machines. This guide was made for Ubuntu, but should be remarkably similar on other Linux distributions, apart from the package manager (yum vs apt-get, I guess).</p>
<h2>Installing Java</h2>
<p>The main turn off with Freenet for me is that it&#8217;s written in Java. Once you&#8217;ve installed it you&#8217;ll see for yourself how CPU-intensive it actually is &#8211; much more than Tor (which on the opposite isn&#8217;t too demanding). Anyway, installing Java is now a bit trickier than before, because Oracle got their reference implementation <a href="https://help.ubuntu.com/community/Java">removed from official distribution repositories</a>, but OpenJDK works just as well so that&#8217;s what we&#8217;ll pick.<br />
<code>apt-get install openjdk-6-jdk</code><br />
(that will be about 170 MiB of stuff to install)</p>
<h2>Installing Freenet</h2>
<p>Even though the headless server instructions <a href="http://freenetproject.org/download.html">there</a> are a bit scary, I found them quite sufficient. It&#8217;s not that complicated to install after all (also, maybe after getting warmed up by Tor&#8217;s installation I&#8217;m a little biased, too <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ), so I&#8217;ll just list the commands you need to type (obviously, edit the pathes), and they should be pretty self-explanatory:<br />
<code>cd /where/you/want/to/install/it<br />
mkdir someFolder<br />
cd someFolder<br />
wget https://downloads.freenetproject.org/alpha/installer/freenet07.tar.gz --no-check-certificate<br />
tar xzf freenet07.tar.gz</code><br />
Now we need to create a user for Freenet, give it a password and assign them the freenet folder:<br />
<code>useradd someUserName<br />
passwd someUserName<br />
[enter the password twice]<br />
chown someUserName freenet -R</code></p>
<h2>First Freenet launch, configuration</h2>
<p>Connect to the machine where you just installed Freenet as this someUserName, go to the freenet folder and run <em>run.sh</em>:<br />
<code>cd /where/you/want/to/install/it/someFolder/freenet<br />
./run.sh</code><br />
FYI (actually, more for my personal archives ^^), here&#8217;s the output:</p>
<pre>Enabling the auto-update feature
Detecting tcp-ports availability...
Downloading update.sh
Downloading wrapper_Linux.zip
Downloading freenet-stable-latest.jar
Downloading freenet-ext.jar
Downloading the JSTUN plugin
Downloading the UPnP plugin
Downloading seednodes.fref
Installing cron job to start Freenet on reboot...
Installed cron job.
Starting Freenet 0.7...
Please visit http://127.0.0.1:8888/ to configure your node
Finished</pre>
<p>Now, you need to connect to http://127.0.0.1:8888 to configure Freenet. If, as is likely since you&#8217;re reading this tutorial on console-based installation, it&#8217;s not on the same computer as where you are now, you have 2 options:<br />
- follow <a href="http://freenetproject.org/faq.html#fproxy-lan">this</a> to allow external IPs (preferably, just a specific one: yours <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) to connect to your Freenet node<br />
- create an SSH tunnel to your machine (see <a href="http://notepad.patheticcockroach.com/369/tips-to-freedom-on-a-restricted-computer-environment/">the second half of this old post</a>), and then when your browser is configured to use it (NB: don&#8217;t forget to remove &#8220;127.0.0.1&#8243; from the exclusion list, in Firefox called &#8220;no proxy for&#8221;), going to http://127.0.0.1:8888 will actually go to your server.</p>
<p>Well, that&#8217;s pretty much it, now just configure it from the GUI as you wish. Here are a few hints, though:</p>
<ul>
<li>You should increase the RAM available to Freenet. By default it&#8217;s 128, it would be a good idea to at least double it. Actually 512 MiB would be even nicer. Note that you&#8217;ll have to restart Freenet in order for the change to be applied. The RAM can also be configured manually in <em>wrapper.conf</em>:<br />
<code>wrapper.java.initmemory=60<br />
wrapper.java.maxmemory=512</code></li>
<li>You&#8217;ll probably want to review input and output bandwidth settings (although you already had the opportunity to do so during the first launch wizard)</li>
<li>You&#8217;ll want to increase the datastore size (this helps the network) and the client cache (this helps you <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ), because during the first launch wizard you aren&#8217;t really given much choice for some reason&#8230; Respectively 50GiB and 25GiB could be fine for instance, although of course you can increase that much more. Note however that whenever you change those settings Freenet will rebuild its database, which means it will be somewhat slower for a while.</li>
<li>Finally, it&#8217;s probably a good idea to install some social plugins such as WebOfTrust and Freetalk (both are official plugins), which will give you access to discussion boards. Other plugins of interest: Sone (kind of a social network), Library (search engine), Freenet Search (search engine too).</li>
</ul>
<h2>Bonus: solving the &#8220;There isn&#8217;t enough entropy available on your system&#8230; Freenet won&#8217;t start until it can gather enough.&#8221; error</h2>
<p>Freenet seems to have massive needs for entropy, and if you happen to run out of it, it might take some time to spontaneously replenish. A quick way to boost this is to generate lots of disk access. I saw the suggestion of <a href="http://www.mail-archive.com/devl@freenetproject.org/msg19942.html">running <code>find / >/dev/null</code></a>, but it didn&#8217;t help a lot for me, maybe because my HD isn&#8217;t that filled. What worked great was to either copy a big directory, or even simpler, to download some large file, like: <code>wget ftp://ftp.free.fr/mirrors/ftp.ubuntu.com/dvd/current/precise-dvd-amd64.iso</code></p>
<h2>Bonus 2: restarting/stopping the node without using the web GUI</h2>
<p>The ./run.sh script can be run with arguments, such as <code>./run.sh restart</code> or <code>./run.sh stop</code></p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2519/installing-freenet-on-ubuntu-server-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and controlling a Tor relay on Linux via command line only</title>
		<link>http://notepad.patheticcockroach.com/2487/installing-and-controlling-a-tor-relay-on-linux-via-command-line-only/</link>
		<comments>http://notepad.patheticcockroach.com/2487/installing-and-controlling-a-tor-relay-on-linux-via-command-line-only/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 14:28:36 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[cryptography]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2487</guid>
		<description><![CDATA[Tor say they are always looking for more people to run nodes for their network, yet oddly enough they don&#8217;t provide really simple/straightforward instructions to get a relay working without their GUI, which would be the method of choice for server owners. It is however not too complicated, and here&#8217;s a tutorial that should give [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://www.torproject.org">Tor</a> say they are always looking for more people to run nodes for their network, yet oddly enough they don&#8217;t provide really simple/straightforward instructions to get a relay working without their GUI, which would be the method of choice for server owners. It is however not too complicated, and here&#8217;s a tutorial that should give enough details for people not willing to think at every step. I used Ubuntu 11.10, for other distributions I guess the main differences will be in the way to deal with the package manager.</p>
<h2>Dealing with package manager stuff</h2>
<p>The first step is to configure the package manager to use Tor&#8217;s repository, because distribution repositories are, as you know, always outdated. On this part, the <a href="https://www.torproject.org/docs/debian.html.en">Tor project documentation (for Ubuntu and Debian)</a> is good enough (NB: <a href="https://www.torproject.org/docs/rpms.html.en">here is the page for Fedora / CentOS / SUSE</a>). Basically:<br />
<code>nano /etc/apt/sources.list</code><br />
and at the bottom, add (for Ubuntu 11.10):<br />
<code>deb http://deb.torproject.org/torproject.org oneiric main</code><br />
You can now proceed to installation:<br />
<code>apt-get install tor tor-geoipdb</code></p>
<h2>Editing the configuration file (torrc)</h2>
<p>Installing Tor this way also starts it, but the default configuration is not to relay any traffic. We now need to configure is as a relay. The configuration file to edit is usually, as mentioned <a href="https://www.torproject.org/docs/faq.html.en#torrc">there</a>, /etc/tor/torrc:<br />
<code>nano /etc/tor/torrc</code><br />
In this file, the settings you&#8217;ll want to look at are:</p>
<ul>
<li>uncomment <code>Log notice file /var/log/tor/notices.log</code> if you want to avoid a notice in ARM (see below for what ARM is)</li>
<li>uncomment <code>ControlPort 9051</code> so that ARM can be used to control and monitor Tor</li>
<li>uncomment <code>ORPort</code> and (optionally but recommended, I guess) change its value to some random available port. That&#8217;s the port that will be used by other nodes to connect to yours</li>
<li>optionally uncomment <code>Nickname</code> and give a name to your node</li>
<li>set <code>RelayBandwidthRate</code> and <code>RelayBandwidthBurst</code>. Those are the maximum bandwidth that can be used by Tor constantly and in burst, respectively. For instance:
<pre>RelayBandwidthRate 5000 KB  # Throttle traffic to 100KB/s (800Kbps)
RelayBandwidthBurst 7000 KB # But allow bursts up to 200KB/s (1600Kbps)</pre>
<p>Beware those values are in Bytes, not bits.</li>
<li>if you have a traffic quota (and don&#8217;t want to blow it), you&#8217;ll want to configure <code>AccountingMax</code> and <code>AccountingStart</code></li>
<li>optionally, you can put your name and (spam protected) e-mail, or even your GPG fingerprint, in <code>ContactInfo</code>. According to the comments it can be used to contact you in case your node goes wild or something.</li>
<li>optionally, you can also configure <code>DirPort</code> to mirror directory information on this port.</li>
<li>finally, the most important part: choose whether you want to be just a relay or an exit node. To be just a relay, set:<br />
<code>ExitPolicy reject *:*</code><br />
To be an exit node, you can either leave at is, or replace the default exit policy (in order to do the later, do read the instructions carefully). Note that being an exit can bring you <a href="https://www.torproject.org/docs/faq-abuse.html#TypicalAbuses">trouble</a> because there&#8217;s always a risk of abuse, so at least do check your country&#8217;s law, the law of your host&#8217;s country, and your host&#8217;s TOS. But I guess you&#8217;re already aware of that anyway.</li>
</ul>
<p>Additionally, if you want to remotely use your node to enter the Tor network to surf yourself, well, I suppose it can be configured using <code>SocksPort</code>, <code>SocksListenAddress</code>, <code>SocksPolicy accept</code> and <code>SocksPolicy reject</code>, but I haven&#8217;t figured out how to do that yet :/</p>
<h2>ARM: a terminal-friendly GUI</h2>
<p>Last step, let&#8217;s install a nice piece of helper software called <a href="http://www.atagar.com/arm/">ARM</a> (for &#8220;anonymizing relay monitor&#8221;), which is basically a nice console-based GUI to monitor and have some control over Tor. On Ubuntu 11.10 it&#8217;s as simple as:<br />
<code>apt-get install tor-arm</code></p>
<p>In order to use ARM, you&#8217;ll have to enable Tor control port first. You already entered it in the configuration file (if you followed the guide properly, at least), so we just need to apply the configuration:<br />
<code>/etc/init.d/tor reload</code></p>
<p>Now you can just type <code>arm</code> to launch ARM and view some neat information about your node, like the traffic graph, inbound and outbound nodes, etc.</p>
<h2>Bonus: what&#8217;s a stable node, what&#8217;s a guard node?</h2>
<p>A little bonus, because that&#8217;s something that puzzled me for a while: on some <a href="http://notepad.patheticcockroach.com/2500/lists-of-tor-nodes">Tor node listings</a>, you can see that servers have flags, notably some servers are flagged as &#8220;guard&#8221; and some are flagged as &#8220;stable&#8221;. If you&#8217;re curious about what it means, here it is, right from the <a href="https://gitweb.torproject.org/torspec.git/blob_plain/HEAD:/dir-spec.txt">specification</a>:</p>
<pre>"Guard" -- A router is a possible 'Guard' if its Weighted Fractional
Uptime is at least the median for "familiar" active routers, and if
its bandwidth is at least median or at least 250KB/s.

	To calculate weighted fractional uptime, compute the fraction
	of time that the router is up in any given day, weighting so that
	downtime and uptime in the past counts less.

	A node is 'familiar' if 1/8 of all active nodes have appeared more
	recently than it, OR it has been around for a few weeks.

"Stable" -- A router is 'Stable' if it is active, and either its Weighted
MTBF is at least the median for known active routers or its Weighted MTBF
corresponds to at least 7 days. Routers are never called Stable if they are
running a version of Tor known to drop circuits stupidly.  (0.1.1.10-alpha
through 0.1.1.16-rc are stupid this way.)

	To calculate weighted MTBF, compute the weighted mean of the lengths
	of all intervals when the router was observed to be up, weighting
	intervals by $\alpha^n$, where $n$ is the amount of time that has
	passed since the interval ended, and $\alpha$ is chosen so that
	measurements over approximately one month old no longer influence the
	weighted MTBF much.

	[XXXX what happens when we have less than 4 days of MTBF info.]</pre>
<p>Sources (other than those already mentioned in the text):</p>
<ul>
<li><a href="https://help.ubuntu.com/community/Tor">Tor &#8211; Community Ubuntu Documentation</a></li>
<li><a href="https://lists.torproject.org/pipermail/tor-relays/2011-February/000302.html">Ubuntu howto for CLI install of Tor relay?</a></li>
<li><a href="https://lists.torproject.org/pipermail/tor-relays/2010-December/000238.html">Torstatus: What does stable server mean?</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2487/installing-and-controlling-a-tor-relay-on-linux-via-command-line-only/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lists of Tor nodes</title>
		<link>http://notepad.patheticcockroach.com/2500/lists-of-tor-nodes/</link>
		<comments>http://notepad.patheticcockroach.com/2500/lists-of-tor-nodes/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 18:02:52 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[privacy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2500</guid>
		<description><![CDATA[Having a list of Tor nodes can always be a useful resource for spam-fighting, even though unfortunately most of those lists most often don&#8217;t make the difference between nodes which are just a relay and nodes which are also exit points. So, here are a few listings that seems to be regularly updated (as of [...]]]></description>
			<content:encoded><![CDATA[<p>Having a list of Tor nodes can always be a useful resource for spam-fighting, even though unfortunately most of those lists most often don&#8217;t make the difference between nodes which are just a relay and nodes which are also exit points.</p>
<p>So, here are a few listings that seems to be regularly updated (as of today, at least):</p>
<ul>
<li><a href="http://torstatus.all.de/index.php?SR=Bandwidth&#038;SO=Desc">http://torstatus.all.de/index.php?SR=Bandwidth&#038;SO=Desc</a>: has lots of details (notably, they do make the difference between exit nodes and simple relays), but is probably not trivial to parse automatically. NB: if you&#8217;re on Firefox, beware that it will slow down the browser massively for a few seconds. It&#8217;s fine on Iron, though.</li>
<li><a href="http://torstatus.blutmagie.de/index.php?SR=Bandwidth&#038;SO=Desc">http://torstatus.blutmagie.de/index.php?SR=Bandwidth&#038;SO=Desc</a>: pretty much the same as the previous one (still a Fx killer, notably!), but hosted elsewhere.</li>
<li><a href="http://torstatus.rueckgr.at/index.php">http://torstatus.rueckgr.at/index.php</a>: and the same again, somewhere else.</li>
<li><a href="http://www.ircproxy.net/torlist/">http://www.ircproxy.net/torlist/</a>: just a list of IPs, probably great to parse. Also mention the update date, even though I guess it&#8217;s not a guarantee.</li>
<li><a href="http://files.sabmx.net/pg2/tor_block.txt">http://files.sabmx.net/pg2/tor_block.txt</a>: also just a list of IP, indicated as IP ranges.</li>
<li><a href="http://teksimple.com/tornodes.txt">http://teksimple.com/tornodes.txt</a>: that&#8217;s probably the easiest one to parse: just a text list, one IP per line, update date and time on first line.</li>
</ul>
<p>Note however that it seems pretty much impossible to perform a DDoS attack from the Tor network (limitation #1 being it doesn&#8217;t really have that much bandwidth available), so there&#8217;s no reason to be a jackass like <a href="https://www.dan.me.uk/tornodes" rel="nofollow">Daniel Austin MBCS</a> and ban all traffic from Tor nodes. Particularly, blocking traffic from non-exit nodes altogether is seriously retarded. Purely banning all traffic from Tor also means you&#8217;d simply play along <a href="http://en.wikipedia.org/wiki/Stop_Online_Piracy_Act">SOPA</a> and alike. You might want instead to maybe just make the spam filter harsher, or systematically manual, on contents coming from Tor.<br />
Well, anyway, you got the list now act smart with it. <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2500/lists-of-tor-nodes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VisualGPG 0.1.2</title>
		<link>http://notepad.patheticcockroach.com/2410/visualgpg-0-1-2/</link>
		<comments>http://notepad.patheticcockroach.com/2410/visualgpg-0-1-2/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 15:48:44 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[GnuPG & co]]></category>
		<category><![CDATA[privacy]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2410</guid>
		<description><![CDATA[Two weeks ago, I introduced VisualGPG. Here&#8217;s an updated version (0.1.2) with some minor fixes. Changelog: Fixed a bug with character encoding and encrypting. Not really sure of what happens when people on the other side send you encrypted message in a different charset though &#8211; bottomline is: if you don&#8217;t want mojibake, don&#8217;t use [...]]]></description>
			<content:encoded><![CDATA[<p>Two weeks ago, I <a href="http://notepad.patheticcockroach.com/2351/visualgpg-a-simple-gui-for-gnupg/">introduced VisualGPG</a>. Here&#8217;s an updated version (0.1.2) with some minor fixes.</p>
<p>Changelog:</p>
<ul>
<li>Fixed a bug with character encoding and encrypting. Not really sure of what happens when people on the other side send you encrypted message in a different charset though &#8211; bottomline is: if you don&#8217;t want mojibake, don&#8217;t use funky characters. Maybe eventually character encoding will be a configurable setting.</li>
<li>Added automated line-breaking when sending an unencrypted signed message. This is because buggy webmails tend to break long lines themselves, corrupting the signature in the process. Once again, this should become a configurable thing in the end.</li>
<li>Bumped version number a little, too many leading zeros was a bit hard to follow <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li>Added a comment line about VisualGPG in the PGP block.</li>
</ul>
<p>The download link remains the same: <a href="http://img.patheticcockroach.com/01/VisualGPG-latest.7z">VisualGPG-latest (0.1.2)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2410/visualgpg-0-1-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

