<?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>Graham King &#187; Society</title>
	<atom:link href="http://www.darkcoding.net/category/society/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darkcoding.net</link>
	<description>Solvitas perambulum</description>
	<lastBuildDate>Thu, 02 Feb 2012 04:14:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>On why hackers don&#039;t work on large teams</title>
		<link>http://www.darkcoding.net/society/on-why-hackers-dont-work-on-large-teams/</link>
		<comments>http://www.darkcoding.net/society/on-why-hackers-dont-work-on-large-teams/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 00:05:10 +0000</pubDate>
		<dc:creator>graham</dc:creator>
				<category><![CDATA[Society]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.darkcoding.net/?p=1313</guid>
		<description><![CDATA[We&#8217;ve know for over 35 years that &#8220;adding manpower to a late software project makes it later&#8221;. Amazon has it&#8217;s two-pizza team heuristic: &#8220;If a project team can eat more than two pizzas, it&#8217;s too large&#8221;. The excellent Code Complete has a detailed explanation of how communication costs increase with team size. Yet we still [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve know for over 35 years that <a href="http://en.wikipedia.org/wiki/The_Mythical_Man-Month" target="_blank" class="external">&#8220;adding manpower to a late software project makes it later&#8221;</a>. Amazon has it&#8217;s two-pizza team heuristic: <a href="http://www.google.ca/search?q=two+pizza+team" target="_blank" class="external">&#8220;If a project team can eat more than two pizzas, it&#8217;s too large&#8221;</a>. The excellent <a href="http://www.amazon.com/gp/product/0735619670/ref=as_li_ss_tl?ie=UTF8&#038;tag=darkcoding-20&#038;linkCode=as2&#038;camp=217145&#038;creative=399369&#038;creativeASIN=0735619670">Code Complete</a>  has a detailed explanation of how communication costs increase with team size. Yet we still need reminding.</p>

<p>Dhanji R. Prasanna has an excellent <a href="http://rethrick.com/#mmm" target="_blank" class="external">retrospective on his time on the Google Wave team</a>. He sums up the problem with big teams very well:</p>

<blockquote>
  <p>And this is the essential broader point&#8211;as a programmer you must have a series of wins, every single day. It is the Deus Ex Machina of hacker success. It is what makes you eager for the next feature, and the next after that. And a large team is poison to small wins. The nature of large teams is such that even when you do have wins, they come after long, tiresome and disproportionately many hurdles. And this takes all the wind out of them.</p>
</blockquote>

<p>For me, that&#8217;s really the crux of it. As a programmer, it kills you to not get stuff done. Large teams necessarily involve more communication, more complexity, and less getting stuff done. Large teams are a programmers equivalent of retirement.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darkcoding.net/society/on-why-hackers-dont-work-on-large-teams/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Machiavelli on Occupy Wall Street</title>
		<link>http://www.darkcoding.net/society/machiavelli-on-occupy-wall-street/</link>
		<comments>http://www.darkcoding.net/society/machiavelli-on-occupy-wall-street/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 22:25:44 +0000</pubDate>
		<dc:creator>graham</dc:creator>
				<category><![CDATA[Society]]></category>
		<category><![CDATA[Machiavelli]]></category>
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://www.darkcoding.net/?p=1306</guid>
		<description><![CDATA[Reading Machiavelli&#8217;s The Prince, his advice seems just as relevant today. In On the civil principate he writes: In every city there are two different humours, one rising from the people&#8217;s desire not to be ordered and commanded by the nobles, and the other from the desire of the nobles to command and oppress the [...]]]></description>
			<content:encoded><![CDATA[<p>Reading Machiavelli&#8217;s <a href="http://www.gutenberg.org/ebooks/1232" target="_blank" class="external">The Prince</a>, his advice seems just as relevant today. In <a href="http://www.gutenberg.org/files/1232/1232-h/1232-h.htm#2HCH0009" target="_blank" class="external">On the civil principate</a> he writes:</p>

<blockquote>
  <p>In every city there are two different humours, one rising from the people&#8217;s desire not to be ordered and commanded by the nobles, and the other from the desire of the nobles to command and oppress the people.</p>
  
  <p>You cannot satisfy the nobles honestly and without harming others, but you certainly can satisfy the people. In fact, the aim of the common people is more honest that that of the nobles, since the nobles want to oppress others, while the people simply want not to be oppressed.</p>
  
  <p>The Prince must always live among the same people, but he can do very well without a particular set of noblemen.</p>
</blockquote>

<p>Substitute <strong>nobles</strong> with <strong>the 1%</strong>, and substitute <strong>Prince</strong> with <strong>President</strong>, and you get the advice he would probably give today.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darkcoding.net/society/machiavelli-on-occupy-wall-street/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hostage Negotiation 101</title>
		<link>http://www.darkcoding.net/behaviour/hostage-negotiation-101/</link>
		<comments>http://www.darkcoding.net/behaviour/hostage-negotiation-101/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 20:24:18 +0000</pubDate>
		<dc:creator>graham</dc:creator>
				<category><![CDATA[Behaviour]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[Strategy]]></category>
		<category><![CDATA[negotiation]]></category>

		<guid isPermaLink="false">http://www.darkcoding.net/?p=1245</guid>
		<description><![CDATA[I recently finished Gary Noesner&#8217;s Stalling for Time: My Life as an FBI Hostage Negotiator, by the F.B.I.&#8216;s former head of and founder of their hostage negotiation unit. The book is a great read (and I suspect heavily ghost-written). Here&#8217;s what I learnt: Your goal as a negotiator is to get the target(s) (the person [...]]]></description>
			<content:encoded><![CDATA[<p>I recently finished Gary Noesner&#8217;s <a href="http://www.amazon.com/gp/product/1400067251/ref=as_li_ss_tl?ie=UTF8&#038;tag=darkcoding-20&#038;linkCode=as2&#038;camp=217145&#038;creative=399369&#038;creativeASIN=1400067251">Stalling for Time: My Life as an FBI Hostage Negotiator</a><img src="http://www.assoc-amazon.com/e/ir?t=&#038;l=as2&#038;o=1&#038;a=1400067251&#038;camp=217145&#038;creative=399369" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />, by the <a href="http://en.wikipedia.org/wiki/Federal_Bureau_of_Investigation" target="_blank" class="external">F.B.I.</a>&#8216;s former head of and founder of their hostage negotiation unit. The book is a great read (and I suspect heavily ghost-written). Here&#8217;s what I learnt:</p>

<p>Your goal as a negotiator is to get the target(s) (the person or people you are trying to arrest) to surrender peacefully to law enforcement.</p>

<p>Sometimes there are hostages, and then your priority is securing their release, but usually there are not. By getting them to put down their weapons and come out you are usually saving their lives, and also protecting your colleagues.</p>

<p>The last resort is an armed assault by the <a href="http://en.wikipedia.org/wiki/SWAT" target="_blank" class="external">SWAT</a> team. Prior to negotiation being taken seriously by law enforcement, this was the only option.</p>

<h2>Make exclusive contact</h2>

<p>First and foremost, you need to get in contact with them. Usually they are keen to talk, and most often you can use the phone line. Sometimes you have to get the SWAT team to bring them a <a href="http://en.wikipedia.org/wiki/Field_telephone" target="_blank" class="external">field telephone</a>. Sometimes you stand outside the window or at the foot of the stairs, and shout. And occasionally, as in the <a href="http://en.wikipedia.org/wiki/Beltway_sniper_attacks" target="_blank" class="external">Beltway sniper case</a> you have to ask the media to say things and hope the target hears.</p>

<p><span id="more-1245"></span></p>

<p>Control their environment:</p>

<ul>
<li><p>Their phone line goes only to you. Not to the press, not to anyone else. You are their only hope, and their only friend.</p></li>
<li><p>Manage what they can see from their windows, and what they can hear.</p></li>
</ul>

<h2>Listen calmly</h2>

<p>Listen. Often they are highly emotional, scared, and cornered. A friendly listener at the end of the phone can make all the difference.</p>

<p>Initially they will rant and rave at you, they need to get that out of their system. Wait. Listen. Stay calm. Once they settle down, change the negotiator, so that they are not having to build rapport with someone they have verbally abused.</p>

<p>Encourage them to draw up a list of demands. When dealing with a group, identify the individuals most likely to reach a peaceful settlement, and deal exclusively with them.</p>

<p>The author recounts a prison siege where the prisoners had no leadership and no demands. The negotiator had to help them organize themselves, and babysit them into drawing up a list of demands. He then got the prison authorities to say they agreed to the demands in principle, and the siege ended.</p>

<h2>Build rapport</h2>

<p>Build trust. He usually introduces himself by saying: <em>&#8220;Hi I&#8217;m Gary and I&#8217;m here to make sure you get out safe&#8221;.</em></p>

<p>Humanize yourself. Gary&#8217;s team sent in pictures of themselves, hand written notes, even videos of the negotiators playing with their children.</p>

<p>Learn everything you can about the target and their background. Bring up any common ground.</p>

<p>If they won&#8217;t talk to you, find a neutral intermediary they will trust.</p>

<p>Talk, even if they don&#8217;t answer. Hearing your voice will reassure the hostages. It also allows you to address any fears or concerns you think they have, which they haven&#8217;t vocalized yet. Defuse those fears.</p>

<h2>You don&#8217;t have to be nice</h2>

<p>Don&#8217;t give anything unless it is reciprocated. For example if they want food they have to send out a hostage. The exception is if your concession would help build trust, or if they have nothing to give up (except themselves).</p>

<p>If negotiation stalls, get the SWAT team to put on a show of force. Make it clear you are their only option of making it out safe. The exception here is if you think that might endanger the hostages. You&#8217;re the good cop to the SWAT&#8217;s bad cop.</p>

<p>If that doesn&#8217;t help, cut creature comforts &#8211; electricity, gas, water, etc.</p>

<p>Go slowly. You control the situation, not the hostage taker. In one situation the target requested a cup of coffee with milk and sugar. It was delivered two hours later, cold, and black.</p>

<p>Most significant demands on their part you will reply to with <em>&#8220;I&#8217;m not authorized to do that, but I&#8217;ll ask my boss&#8221;</em>. You&#8217;re on their side, against your nasty boss. They need to work with you to help you make their demands acceptable to that dis-agreeable boss of yours.</p>

<p>Lie if you have to, but be very careful because getting caught out will damage trust. There are certain legal restrictions on negotiators, mostly that they have to give the target an opportunity to surrender before the SWAT team attacks. You need to say and do whatever it takes to secure the safe release of the hostages. This often involves minimizing the crime, assuring them that everything will be fine once they come out: <em>&#8220;you haven&#8217;t hurt anyone, no serious crime has been committed&#8221;</em>.</p>

<p>Get them to focus on the future, on life after the crisis (even when you know they don&#8217;t have a future). It&#8217;s all going to be OK, they&#8217;ll be back fishing in that favorite lake of theirs in no time. Their boss is holding their job for them.</p>

<p>Remind them about the relatively minor crime which started the situation. Surely no-one should get hurt over such a trifle:</p>

<ul>
<li><p>the  <a href="http://en.wikipedia.org/wiki/Waco_siege" target="_blank" class="external">Waco siege</a> started after the Branch Davidians refused to allow law enforcement to execute a search warrant</p></li>
<li><p><a href="http://en.wikipedia.org/wiki/Ruby_Ridge" target="_blank" class="external">Ruby ridge</a> was initially about making illegal firearms (sawing off a shotgun barrel).</p></li>
</ul>

<h1>Manage the SWAT team</h1>

<p>The way Gary Noesner describes it, every stand-off is a double stand-off. <strong>You are trying to convince the target to exit the building peacefully, and you are trying to convince the SWAT team to stay out of the building</strong>. Traditional law enforcement is ego-driven and in a hurry. They do not readily accept waiting several weeks for someone to agree to be arrested.</p>

<p>If you are re-assuring the target that their crime&#8217;s are minor, and then the SWAT team moves an assault vehicle onto the front lawn, that undermines your relationship. You need to work together.</p>

<p>The author ascribes the failures of the <a href="http://en.wikipedia.org/wiki/Waco_siege" target="_blank" class="external">Waco siege</a> to lack of co-ordination between negotiators and SWAT, and in fact to SWAT&#8217;s complete disregard for negotiation. Gary Noesner was chief negotiator at the Waco siege, and Stalling For Time features a fascinating account of the situation.</p>

<hr />

<p>Stalling For Time is an exciting and interesting read. I was surprised how little formal psychology is involved &#8211; negotiators have a &#8216;street psychology&#8217;, which matches many formal findings, but I expected the F.B.I. to have behavioral scientists and research psychologists on staff. Possibly they do, but it wasn&#8217;t mentioned.</p>

<p>I am grateful for people like Gary Noesner, who do an immensely difficult and important job on two levels. Firstly they save the lives of hostages, hostage takers, and law enforcement. Secondly, they teach traditional law enforcement personnel that patience, humility, and understanding are as important to their jobs as running around waving assault rifles.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darkcoding.net/behaviour/hostage-negotiation-101/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The death of Sean Hoare, whistleblower</title>
		<link>http://www.darkcoding.net/society/the-death-of-sean-hoare-whistleblower/</link>
		<comments>http://www.darkcoding.net/society/the-death-of-sean-hoare-whistleblower/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 05:53:35 +0000</pubDate>
		<dc:creator>graham</dc:creator>
				<category><![CDATA[Society]]></category>

		<guid isPermaLink="false">http://www.darkcoding.net/?p=1171</guid>
		<description><![CDATA[The News International phone hacking scandal is the case of a British tabloid&#8217;s staff hacking into several thousand people&#8217;s voicemail, over a period of at least six years. They listened to voicemail of the 7/7 terrorist attack victims, politicians, a murdered schoolgirl (including erasing some messages, leading the family to think she lived), the British [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://en.wikipedia.org/wiki/News_International_phone_hacking_scandal" target="_blank" class="external">News International phone hacking scandal</a> is the case of a British tabloid&#8217;s staff hacking into several thousand people&#8217;s voicemail, over a period of at least six years.</p>

<p>They listened to voicemail of the 7/7 terrorist attack victims, politicians, a murdered schoolgirl (including erasing some messages, leading the family to think she lived), the British Royal Family, various celebrities, and other journalists.</p>

<p><span id="more-1171"></span>
The newspaper in question, the News of the World, is owned by News Corporation, who&#8217;s Chairman and CEO is Rupert Murdoch, 117th richest and one of the most powerful people in the world (13th according to Forbes, &#8216;Top 100&#8242; according to Time).</p>

<p>This <a href="http://www.bbc.co.uk/news/uk-14124020" target="_blank" class="external">BBC timeline</a> shows how bad things are:</p>

<ul>
<li><p>The editor of the newspaper at the time, Andy Coulson, is now the Prime Minister&#8217;s director of communications. He has been arrested for phone hacking and for bribing the police.</p></li>
<li><p>Britain&#8217;s two most senior policemen have resigned: Metropolitan Police Commissioner Sir Paul Stephenson and Assistant Commissioner John Yates. The police had found no evidence of wrongdoing at the tabloid and refused to investigate further. They employed Neil Wallis, who was deputy editor of the News of the World during the phone hacking.</p></li>
<li><p>The chief executive of the newspaper, Rebekah Brooks, has been arrested. She had previously admitted in a commons (government) inquiry to paying the police for information.</p></li>
<li><p>Several more journalists have been arrested, other papers owned by Rupert Murdoch also used illegally obtained phone tap information (The Sunday Times, and The Sun), and US politicians are calling for the FBI to investigate.</p></li>
</ul>

<p>And now <a href="http://en.wikipedia.org/wiki/Sean_Hoare" target="_blank" class="external">Sean Hoare</a>, the journalist who first went on record implicating the editor of the tabloid (and Prime Minister&#8217;s advisor), who just last week claimed journalists paid police to locate people&#8217;s mobile phones <a href="http://www.guardian.co.uk/media/2011/jul/18/news-of-the-world-sean-hoare" target="_blank" class="external"><strong>has been found dead</strong></a>.</p>

<p>The weekend before, Sean Hoare explained a &#8220;broken nose and badly injured foot&#8221; by saying he suffered them &#8220;taking down a marquee erected for a children&#8217;s party&#8221;.</p>

<p>And, and this is the best bit, the police, yes the police who are <strong>deeply</strong> involved here, state that the death is &#8220;not thought to be suspicious&#8221;. Let&#8217;s do some stats on that.</p>

<h2>Theory 1: He just, euh, died</h2>

<p>He might have died without any help. People do. He was 47. He was at a <a href="http://www.medicine.ox.ac.uk/bandolier/booth/Risk/dyingage.html" target="_blank" class="external">1 in 279</a> risk of dying in any given year, thats 0.35%.</p>

<p>He had &#8220;drink and drug&#8221; problems. He was a journalist and showbiz editor, so we can assume &#8216;drugs&#8217; here means cocaine.</p>

<p>In a recent study <a href="http://www.guardian.co.uk/society/2010/nov/10/uk-tops-cocaine-abuse-league-table" target="_blank" class="external">15% of 18-34 year olds said they had tried it</a>. That&#8217;s just under a million people (15% of <a href="http://www.statistics.gov.uk/populationestimates/flash_pyramid/UK-pyramid/pyramid6_30.html" target="_blank" class="external">6.4 million</a>). Of those, <a href="http://www.guardian.co.uk/society/2010/nov/10/uk-tops-cocaine-abuse-league-table" target="_blank" class="external">325 people died</a>. That&#8217;s a risk of death of 1 in 3,000. I couldn&#8217;t find any stats on the risks to a 47 year old so let&#8217;s take a stab in the dark and double the risk to 1 in 1500.</p>

<p>Alcohol liver disease is one of the leading causes of death for people in his age group in Britiain (<a href="http://www.howtohelpadrugaddict.com/" target="_blank" class="external">alcohol and drug addiction treatment</a>). In <a href="http://rationalfear.com/search/?country=4308&amp;sex=1&amp;age_group=15&amp;year=2005" target="_blank" class="external">2005 alcoholism killed about 500 people like him</a>, out of 1.8 Million in that age group, a risk of 0.027% or 1 in 3600.</p>

<p>So we do 1/279 + 1/1500 + 1/3600 ~= 0.45% risk of death.</p>

<p>I&#8217;m being fast and loose with the numbers here (for example part of the drug and alcohol death risk is already accounted for in the overall risk), but, in summary, the risk is low. <strong>47 year old men in England don&#8217;t often just drop dead</strong>, even if they drink and take drugs. Note further that there has been no mention of the death being alcohol or drug related, so I&#8217;m being generous with the odds of death here.</p>

<p>Sean Hoare is not the only person who&#8217;s death would have been suspicious. I count 23 people in that BBC Timeline who seem to be involved enough to implicate others. Their ages and risk factors differ, so let&#8217;s go with a middle ground, the same <a href="http://www.medicine.ox.ac.uk/bandolier/booth/Risk/dyingage.html" target="_blank" class="external">1 / 279</a>. The risk of <em>anyone</em> involved in the investigation dying this year is about 8% (1/279 * 23), still pretty unlikely.</p>

<h2>Theory 2: He was murdered</h2>

<p>He might not have &#8216;just died&#8217;. He might have been killed. The beating he took the weekend before might not have come from a children&#8217;s marquee.</p>

<p>What is the risk of death for a 47 year old white male who&#8217;s testimony may send to prison policemen, political advisers, journalists, and private investigators, and who might have recently been beaten up? <strong>I&#8217;d say it&#8217;s higher than 0.45%, wouldn&#8217;t you?</strong></p>

<p>So, British Metropolitan Police, &#8220;the death is currently being treated as unexplained but not thought to be suspicious&#8221;. Really?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darkcoding.net/society/the-death-of-sean-hoare-whistleblower/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running a Tor relay / node / server on Ubuntu</title>
		<link>http://www.darkcoding.net/society/running-a-tor-relay-node-server-on-ubuntu/</link>
		<comments>http://www.darkcoding.net/society/running-a-tor-relay-node-server-on-ubuntu/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 06:29:04 +0000</pubDate>
		<dc:creator>graham</dc:creator>
				<category><![CDATA[Society]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tor]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.darkcoding.net/?p=1062</guid>
		<description><![CDATA[Right now, for people like me who have access to servers, the single biggest benefit we can provide to society at large is by running a Tor relay. Tor provides anonymity to users of the Internet. This page is about contributing to the network by running a relay (or server, or node &#8211; same thing). [...]]]></description>
			<content:encoded><![CDATA[<p>Right now, for people like me who have access to servers, the single biggest benefit we can provide to society at large is by running a <a href="https://www.torproject.org" target="_blank" class="external">Tor</a> relay. Tor provides anonymity to users of the Internet.</p>

<p>This page is about contributing to the network by running a relay (or server, or node &#8211; same thing). If you want to use Internet services anonymously, you probably want the <a href="https://www.torproject.org/projects/torbrowser.html.en" target="_blank" class="external">Tor Browser Bundle</a>.</p>

<p>There&#8217;s also general instructions on <a href="https://www.torproject.org/docs/tor-doc-relay.html.en" target="_blank" class="external">running a relay</a>. Mine are specific to Ubuntu / Debian.</p>

<h2>Install it from the official repository</h2>

<p>Edit your sources list: <code>/etc/apt/sources.list</code></p>

<p><span id="more-1062"></span></p>

<p>Add the following lines. Substitute &#8216;lucid&#8217; with your Ubuntu or Debian version <a href="http://deb.torproject.org/torproject.org/dists/" target="_blank" class="external">see list</a>:</p>

<pre><code># Tor
deb http://deb.torproject.org/torproject.org lucid main
deb-src http://deb.torproject.org/torproject.org lucid main
</code></pre>

<p>Add the Tor public key:</p>

<pre><code>gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
</code></pre>

<p>Install it:</p>

<pre><code>sudo apt-get update
sudo apt-get install tor
</code></pre>

<h2>Edit the obvious parts of the config file</h2>

<p>Edit the config file: <code>/etc/tor/torrc</code>, mainly the <em>This section is just for relays</em> part.</p>

<p>Set the <strong>ORPort</strong>. Give your relay a nice <strong>Nickname</strong>. Set <strong>Address</strong>, <strong>ContactInfo</strong>, and so on.</p>

<h2>RelayBandwidthRate: Throttle it</h2>

<p>The <strong>RelayBandwidthRate</strong> and <strong>RelayBandwidthBurst</strong> settings are very important. The Tor network has many clients (think Tunisia, Egypt, Libya, Anonymous, etc), and they&#8217;ll take all the bandwidth you can spare. Here&#8217;s what happened to my bandwidth when I left it unthrottled.</p>

<p><a href="http://www.darkcoding.net/files/2011/03/tor_bandwidth.png"><img src="http://www.darkcoding.net/files/2011/03/tor_bandwidth.png" alt="" title="tor_bandwidth" width="368" height="280" class="alignleft size-full wp-image-1064" /></a></p>

<p>After the peak, you can see two steps where I throttled it back gradually.</p>

<h2>ExitPolicy: Decide whether you will be an exit relay, and what kind of exit</h2>

<p>Traffic in the tor network bounces around between relays, then exits to the real destination. If the Tor user does something nasty to the destination, they will complain to the hosting provider of the exit relay, because it looks like the traffic comes from there.</p>

<p>Your first step should be to just get your relay up and running, without any further reading, so start with no exits:</p>

<pre><code>ExitPolicy reject *:* # no exits allowed
</code></pre>

<h2>Start it</h2>

<pre><code>sudo /etc/init.d/tor start
sudo tail -f /var/log/tor/notices.log
</code></pre>

<p>Congratulations! You are now, in a small way, helping oppressed people all over the world.</p>

<h2>ExitPolicy redux</h2>

<p>Exit relays are obviously very important, so you should consider being one. Read these to help you decide:</p>

<ul>
<li><a href="https://www.torproject.org/docs/faq-abuse.html.en#TypicalAbuses" target="_blank" class="external">So what should I expect if I run an exit relay?</a></li>
<li><a href="https://blog.torproject.org/blog/tips-running-exit-node-minimal-harassment" target="_blank" class="external">Tips for running an exit node with minimal harassment</a></li>
</ul>

<p>You can decide which ports you allow users to connect to from your exit relay. Obvious ones to block are port 25 (to prevent sending of email spam) and bittorrent ports 6881-7000 (to keep the network fast). Blocking port 80 should cut the bulk of the abuse, but also makes your node less useful, so that&#8217;s a tough call.</p>

<p>If you want to dip your toes in the exit waters, be an IRC exit node. IRC is being used by some people in the North African and Middle-Eastern uprisings.</p>

<pre><code>ExitPolicy accept *:6660-6667,reject *:*  # allow irc ports but no more
</code></pre>

<p>I ran an IRC-only exit for a while with no problems. I&#8217;ve recently opened it up a bit more. Here is my current exit policy:</p>

<pre><code>ExitPolicy accept *:22  # ssh
ExitPolicy accept *:465 # smtps (SMTP over SSL)
ExitPolicy accept *:993 # imaps (IMAP over SSL)
ExitPolicy accept *:994 # ircs (IRC over SSL)
ExitPolicy accept *:995 # pop3s (POP3 over SSL)
ExitPolicy accept *:6660-6697 # allow irc ports, very widely
ExitPolicy reject *:* # no other exits allowed
</code></pre>

<p>Assuming you put correct contact information in your config file, the Tor project will send you an email once your node has been up for a few days, to welcome you to the network.</p>

<p>Happy relaying!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darkcoding.net/society/running-a-tor-relay-node-server-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Open up your WiFi</title>
		<link>http://www.darkcoding.net/society/open-up-your-wifi/</link>
		<comments>http://www.darkcoding.net/society/open-up-your-wifi/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 00:28:27 +0000</pubDate>
		<dc:creator>graham</dc:creator>
				<category><![CDATA[Society]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[open]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://www.darkcoding.net/?p=748</guid>
		<description><![CDATA[Update: You need to know how to ban MAC addresses on your router, as you will eventually have a neighbor swamp your network with bittorrent. If you can do that simple operation (usually via your router&#8217;s web-based admin), open wi-fi is the right thing to do. A few months back, I took the password off [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> You need to know how to ban MAC addresses on your router, as you will eventually have a neighbor swamp your network with bittorrent. If you can do that simple operation (usually via your router&#8217;s web-based admin), open wi-fi is the right thing to do.</p>

<hr />

<p>A few months back, I took the password off my WiFi router, and opened it up to the world, with SSID <code>yes_we_are_sharing</code>. Why?</p>

<p>The best answers are given by security expert <a href="http://www.schneier.com/blog/archives/2008/01/my_open_wireles.html" target="_blank" class="external">Bruce Shneier &#8211; why open wireless</a>. The second best answer is that <a href="http://en.wikipedia.org/wiki/Tor_%28anonymity_network%29" target="_blank" class="external">Tor</a> hacker <a href="http://en.wikipedia.org/wiki/Jacob_Appelbaum" target="_blank" class="external">Jacob Applebaum</a> also runs open WiFi.</p>

<p>Here are my answers, and the reasons why you should join us.</p>

<p><span id="more-748"></span></p>

<h2>What&#8217;s changed?</h2>

<p>The only difference between an encrypted wireless network and an open wireless network is that the part between your computer and the router is no longer encrypted by the router. Anyone can listen in, and anyone can connect to your router and access the big wide Internet.</p>

<p>The part between your computer and your router is only a tiny part of the journey your data takes between you and, say, your online bank. None of the part after the router has changed; if it was encrypted before, it still is, and if it wasn&#8217;t is still isn&#8217;t, and you should fix that. Read one for how.</p>

<h2>Reason: It&#8217;s nice</h2>

<p>Have you ever used anyone else&#8217;s open router? Maybe one named &#8216;dlink&#8217;, &#8216;linksys&#8217;, or a Mac AirPort? I bet you were happy that was there for you. When you move into a new home, when you have problems with your connection, or simply when you&#8217;re out and about, it&#8217;s great to have a free network. Opening up my network is my small way of giving back.</p>

<h2>Myth: Bad people in your front garden</h2>

<p>The first question most people ask about open wifi is this: What if someone uses my connection to do something bad?</p>

<p>To use your connection, they would have to be a direct neighbour of yours, or sitting outside your house.</p>

<p>Isn&#8217;t it more likely they would go that extra block to the warm and dry coffee shop?</p>

<p>Do you hear of coffee shop owners going to jail much? What about the &#8216;dlink&#8217; and &#8216;linksys&#8217; people? &#8220;Bad People&#8221; typically have their own Internet connection.</p>

<h2>Real Risk: Eavesdropping</h2>

<p>You might be worried that other people will steal your secrets. Again, they&#8217;d have to be sitting in your front garden.</p>

<p>There&#8217;s a much better place to steal people&#8217;s online banking data, than your front garden: in a coffee shop, at a conference, or, best of all, in an airport.</p>

<h2>Reason: It makes you safer</h2>

<p>You should setup your machine so that <em>all</em> your connections are encrypted, wherever you are. Opening your home wireless gives you that extra discipline.</p>

<ul>
<li><p>Secure your web browsing. When doing anything senstive, make sure you are using the &#8216;https&#8217; protocol (your browser will be showing a padlock).</p></li>
<li><p>Secure your email. If using webmail, make sure it&#8217;s over https. GMail, to Google&#8217;s great credit, has that as the default. If you are using regular email, makes sure you use the encrypted protocol &#8211; IMAPS or POPS.</p></li>
<li><p>Secure you IM conversations. <a href="http://en.wikipedia.org/wiki/Google_Talk#Encryption" target="_blank" class="external">Google Talk is encrypted</a> if your client supports it (<a href="http://www.pidgin.im/" target="_blank" class="external">Pidgin</a> does). <a href="http://forum.skype.com/index.php?showtopic=18543" target="_blank" class="external">Skype is encrypted</a>. As far as I could tell, Yahoo Messenger isn&#8217;t, so avoid it.</p></li>
</ul>

<h2>Weak Risk: Your neighbourhood hacker</h2>

<p>If you&#8217;re using Windows, you should be running a personal firewall on your machine. I believe there is now one built-in to Windows. Make sure it is switched on.</p>

<h2>Administration</h2>

<p>Most computers will auto-connect to any available wireless network when they start up. If you notice the same machines on your network every day for a while, they are probably auto-connecting. You&#8217;ll need to add rules to your router to ban their MAC address, shunting them back to their own router.</p>

<p>The point of open wireless isn&#8217;t to make your neighbours Internet connection redundant, but to temporarily help people out. Your neighbours don&#8217;t want to use your connection, as their is typically faster for them (they are closer to their router).</p>

<p>WiFi is everywhere. Afghanistan has the <a href="http://www.linkedin.com/in/ehsanbayat" target="_blank" class="external">Ehsan Bayat</a> TSI network.</p>

<p>Happy sharing!</p>

<hr />

<p>If you are  concerned about identity theft, visit <a
href="http://www.identityhawk.com">identity hawk</a> and research the services they can offer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darkcoding.net/society/open-up-your-wifi/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>On cellphone use in cars</title>
		<link>http://www.darkcoding.net/behaviour/on-cellphone-use-in-cars/</link>
		<comments>http://www.darkcoding.net/behaviour/on-cellphone-use-in-cars/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 17:11:28 +0000</pubDate>
		<dc:creator>graham</dc:creator>
				<category><![CDATA[Behaviour]]></category>
		<category><![CDATA[Society]]></category>

		<guid isPermaLink="false">http://www.darkcoding.net/?p=527</guid>
		<description><![CDATA[A very interesting article in the New-York Times on the research behind the risks of being distracted by a cellphone whilst driving: http://www.nytimes.com/2009/07/19/technology/19distracted.html Here&#8217;s some excerpts: in a survey of 1,506 people last year by Nationwide Mutual Insurance, 81 percent of cellphone owners acknowledged that they talk on phones while driving, and 98 percent considered [...]]]></description>
			<content:encoded><![CDATA[<p>A very interesting article in the New-York Times on the research behind the risks of being distracted by a cellphone whilst driving:</p>

<p><a href="http://www.nytimes.com/2009/07/19/technology/19distracted.html">http://www.nytimes.com/2009/07/19/technology/19distracted.html</a></p>

<p>Here&#8217;s some excerpts:</p>

<blockquote>in a survey of 1,506 people last year by Nationwide Mutual Insurance, 81 percent of cellphone owners acknowledged that they talk on phones while driving, and 98 percent considered themselves safe drivers. But 45 percent said they had been hit or nearly hit by a driver talking on a phone. </blockquote>

<p>That&#8217;s the <a href="http://en.wikipedia.org/wiki/Lake_Wobegon_effect">Lake Wobegon effect</a>, the tendency for overestimate their capabilities in relation to others.</p>

<p><span id="more-527"></span></p>

<blockquote>&#8230;research, showing that multitasking drivers are four times as likely to crash as people who are focused on driving, matches the findings of two studies, in Canada and in Australia, of drivers on actual roads.

The highway safety administration estimates that drivers using a hand-held device are at 1.3 times greater risk of a crash or near crash, and at three times the risk when dialing, compared with others who are simply driving. The agency based its conclusions on research from the Virginia Tech Transportation Institute, which placed cameras inside cars to monitor drivers for more than a year. The study found cellphones to be the most common cause of driver distraction.

Research also shows that drivers conversing with fellow passengers do not present the same danger, because adult riders help keep drivers alert and point out dangerous conditions and tend to talk less in heavy traffic or hazardous weather.</blockquote>

<p>The research shows that having a conversation on a hands-free sets is as dangerous as a conversation on a handheld phone &#8211; the problem is that, unlike a passenger, the person on the phone doesn&#8217;t stop distracting you when road conditions change, and they aren&#8217;t a second pair of eyes compensating for your distraction.</p>

<p>So if the research is so strong, there are so many lives to be saved, how come we haven&#8217;t solved this one yet. Read on:</p>

<blockquote>Joe Simitian, a state senator in California, managed to get his hands-free legislation, an effort he began in 2001, passed in 2006. He argued, based on data collected by the California Highway Patrol, that drivers using cellphones caused more fatalities than all the drivers distracted by eating, children, pets or personal hygiene.

In each previous year, the bill was killed — after lobbying by cellphone carriers, including Sprint, AT&#038;T and T-Mobile. Mr. Simitian said that in the first two years, he would visit the offices of his colleagues on the Transportation Committee on the day of the vote and “find three cellphone industry lobbyists sitting in the legislator’s office,” Mr. Simitian said. “They’d just smile.”</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.darkcoding.net/behaviour/on-cellphone-use-in-cars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quote of the day: Why racists have bad graphic design</title>
		<link>http://www.darkcoding.net/society/quote-of-the-day-why-racists-have-bad-graphic-design/</link>
		<comments>http://www.darkcoding.net/society/quote-of-the-day-why-racists-have-bad-graphic-design/#comments</comments>
		<pubDate>Wed, 20 May 2009 16:34:19 +0000</pubDate>
		<dc:creator>graham</dc:creator>
				<category><![CDATA[Society]]></category>

		<guid isPermaLink="false">http://www.darkcoding.net/?p=460</guid>
		<description><![CDATA[Charlie Brooker on a television advert by the British National Party, England&#8217;s (very small) right-wing political party: Extremist material of any kind always looks gaudy and cheap, like a bad pizza menu. Not because they can&#8217;t afford decent computers &#8211; these days you can knock up a professional CD cover on a pay-as-you-go mobile &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Charlie Brooker on a television advert by the British National Party, England&#8217;s (very small) right-wing political party:</p>

<blockquote>
Extremist material of any kind always looks gaudy and cheap, like a bad pizza menu. Not because they can&#8217;t afford decent computers &#8211; these days you can knock up a professional CD cover on a pay-as-you-go mobile &#8211; but because anyone who&#8217;s good at graphic design is likely to be a thoughtful, inquisitive sort by nature. And thoughtful, inquisitive sorts tend to think fascism is a bit shit, to be honest. If the BNP really were the greatest British party, they&#8217;d have the greatest British designer working for them &#8211; Jonathan Ive, perhaps, the man who designed the iPod. But they don&#8217;t. They&#8217;ve got someone who tries to stab your eyes out with primary colours.</blockquote>

<p>Read the article: <a href="http://www.guardian.co.uk/commentisfree/2009/may/18/charlie-brooker-bnp-racism">Charlie Brooker on the BNP and their political broadcast</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darkcoding.net/society/quote-of-the-day-why-racists-have-bad-graphic-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quote of the day: Congressman Mike Honda</title>
		<link>http://www.darkcoding.net/ideas/quote-of-the-day-congressman-mike-honda/</link>
		<comments>http://www.darkcoding.net/ideas/quote-of-the-day-congressman-mike-honda/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 17:49:12 +0000</pubDate>
		<dc:creator>graham</dc:creator>
				<category><![CDATA[Ideas]]></category>
		<category><![CDATA[Society]]></category>

		<guid isPermaLink="false">http://www.darkcoding.net/?p=346</guid>
		<description><![CDATA[Congressman Mike Honda, D-San Jose, writing about opening government databases: Instead of databases becoming available as a result of Freedom Of Information Act requests, government officials should be required to justify why any public data should not be freely available to the taxpayers who paid for its creation. Wow, what an exciting time to be [...]]]></description>
			<content:encoded><![CDATA[<p>Congressman <a href="http://honda.house.gov/" target="_blank" class="external">Mike Honda</a>, D-San Jose, writing about opening government databases:</p>

<blockquote>
  <p>Instead of databases becoming available as a result of Freedom Of Information Act requests, government officials should be required to justify why any public data should not be freely available to the taxpayers who paid for its creation.</p>
</blockquote>

<p>Wow, what an exciting time to be in North America.</p>

<p>From the <a href="http://radar.oreilly.com/2009/03/crowdsourcing-evolution-of-congressional-websites.html" target="_blank" class="external">O&#8217;Reilly Radar</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darkcoding.net/ideas/quote-of-the-day-congressman-mike-honda/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dan Gardner on fear</title>
		<link>http://www.darkcoding.net/behaviour/daniel-gardner-on-fear/</link>
		<comments>http://www.darkcoding.net/behaviour/daniel-gardner-on-fear/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 05:35:17 +0000</pubDate>
		<dc:creator>graham</dc:creator>
				<category><![CDATA[Behaviour]]></category>
		<category><![CDATA[Society]]></category>

		<guid isPermaLink="false">http://www.darkcoding.net/?p=129</guid>
		<description><![CDATA[In the prologue to The Science of Fear, by Daniel Gardner (published as &#8216;Risk: The Science and Politics of Fear&#8217; in the United Kingdom, Australia and Canada), which I have just started reading, as he talks about the aftermath of the 9/11 terrorist attacks in the United States: It was an unreal, frightening time, and [...]]]></description>
			<content:encoded><![CDATA[<p>In the prologue to <a href="http://www.amazon.com/gp/product/B001U0OGAY?ie=UTF8&#038;tag=darkcoding-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B001U0OGAY">The Science of Fear</a><img src="http://www.assoc-amazon.com/e/ir?t=darkcoding-20&#038;l=as2&#038;o=1&#038;a=B001U0OGAY" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />, by <a href="http://www.dangardner.ca/">Daniel Gardner</a> (published as &#8216;Risk: The Science and Politics of Fear&#8217; in the United Kingdom, Australia and Canada), which I have just started reading, as he talks about the aftermath of the 9/11 terrorist attacks in the United States:</p>

<p><span id="more-129"></span></p>

<blockquote> It was an unreal, frightening time, and it was predictable that people would flee the airports. Perhaps surprisingly, though, they didn&#8217;t start digging backyard bomb shelters. Instead, most went to work and carried on living. They just didn&#8217;t fly. They drove instead.
 Politicians worried what the mass exodus of Americans from planes to cars would do to the airline industry, so a bailout was put together. But no one talked about the surge in car travel. Why would they? It was trivia. There were deadly threats to worry about.
 But what no politician mentioned is that air travel is safer than driving. Dramatically safer &#8211; so much so that the most dangerous part of a typical commercial flight is the drive to the airport.
 The safety gap is so large, in fact, that planes would still be safer than cars if the threat of terrorism were unimaginably worse than it actually is: An American professor calculated that even if terrorists were hijacking and crashing one passenger jet a week in the United States, a person who took one flight a month for a year would a have only a 1-in-135,000 chance of being killed in a hijacking &#8211; a trivial risk compared to the annual 1-in-6,000 odds of being killed in a car crash.
 Risk analysts knew all about this safety gap. And they understood what a large-scale shift from planes to cars would mean. It&#8217;s simple mathematics. If one person gives up the relative safety of flying and drives instead, it&#8217;s not a big deal. He will almost certainly survive. But if millions of people take the same risk, it is just as likely that some of them will lose the gamble and their lives.
 But car crashes aren&#8217;t like terrorist hijackings. They aren&#8217;t covered live on CNN. They aren&#8217;t discussed endlessly by pundits. They don&#8217;t inspire Hollywood movies and television shows. They aren&#8217;t fodder for campaigning politicians. And so in the months following the September 11 attacks, as politicians and journalists worried endlessly about terrorism, anthrax, and dirty bombs, people who fled the airports to be safe from terrorism crashed and bled to death on America&#8217;s roads. And nobody noticed.</blockquote>

<p>This is exactly why I setup the <a href="http://www.rationalfear.com">Rational Fear</a> website. This looks to be a very good book.</p>

<p>The comparison of the risks of air versus car travel (&#8216;An American professor&#8217;) comes from <a href="http://www.aei-brookings.org/policy/page.php?id=19"> an op-ed piece by Michael Rothschild</a>, emeritus professor at the University of Wisconsin, first published in the Washington Post on November 25th 2001. Thanks to Dan Gardner for providing me with the reference.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.darkcoding.net/behaviour/daniel-gardner-on-fear/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

