Delivery-Date: Sat, 14 Nov 2015 04:02:02 -0500
Return-Path: <tor-talk-bounces@lists.torproject.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on moria.seul.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	RCVD_IN_DNSWL_MED,T_DKIM_INVALID,T_RP_MATCHES_RCVD autolearn=ham version=3.3.1
X-Original-To: archiver@seul.org
Delivered-To: archiver@seul.org
Received: from eugeni.torproject.org (eugeni.torproject.org [38.229.72.13])
	(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by khazad-dum.seul.org (Postfix) with ESMTPS id 4631A1E0A23;
	Sat, 14 Nov 2015 04:02:00 -0500 (EST)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 3EE93384EC;
	Sat, 14 Nov 2015 09:01:56 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id BFE84384E9
 for <tor-talk@lists.torproject.org>; Sat, 14 Nov 2015 09:01:52 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at 
Received: from eugeni.torproject.org ([127.0.0.1])
 by localhost (eugeni.torproject.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id UksBf16pXjFg for <tor-talk@lists.torproject.org>;
 Sat, 14 Nov 2015 09:01:52 +0000 (UTC)
Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com
 [IPv6:2607:f8b0:4001:c06::22d])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (not verified))
 by eugeni.torproject.org (Postfix) with ESMTPS id 99C69384E1
 for <tor-talk@lists.torproject.org>; Sat, 14 Nov 2015 09:01:52 +0000 (UTC)
Received: by iouu10 with SMTP id u10so112339497iou.0
 for <tor-talk@lists.torproject.org>; Sat, 14 Nov 2015 01:01:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=ahmia_fi.20150623.gappssmtp.com; s=20150623;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :content-type; bh=ww4Rv0/vZDE1A+N32ALTp3cbdHy7Hg9mMzjuy9fIFyo=;
 b=0Ocfi17eugK1KRQcqbpRDjUgu94IhPHi8J42J1kfNoq8irtgo75/pxq4en3WQuGsb6
 78e4DK3Vkkgr25FH2MmdtNcGTKJ5wnptk0YDJYICeMmxW1nZfLnupGLL0JVSCywfPOB6
 5HWQqu/3pMrzmN1OYb+ng7W1zfiApkMGbtzUSnGzmFFhq5bMmUDzqzTSg4pqFXwORAD+
 kolQwYdkv8hwQXc9UI8kR2MyM64776Qa9oHMnX0mMCvxFjx8lsupAr0jVHkGYV9kT7pR
 6Q8n1iY1OQRjF/V5kgJDMrLM0ZBGVO8vxoQ41e/JzwLVg3MhMAi3kBsEgkCYj15DVSts
 ioBQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:date
 :message-id:subject:from:to:content-type;
 bh=ww4Rv0/vZDE1A+N32ALTp3cbdHy7Hg9mMzjuy9fIFyo=;
 b=ZdLehxyYSMUjNs0TGXQZVPpDuYwHVQE9ijP70LW48bOgbupsW1m6VjtQ6tJoZ+KZsa
 jmq/R+grG3XpUqyK17UBiSZ2XDvXS11GyXpZ14vAmHkAO+wgi7Xu0YmcOrb7XIik+/RX
 dqxH4rpOwL0kjiPtVJT8aj5kNACTnqdx6+x7FFhVxdFLA/mTOB832uw3GEQYiNLzs+1y
 u3+hkZIeongLbBBuR2Wg3ORkz+qGZGRhwMFv46iuxS8S+/aLsIO0jh4NWF2RIBBq26L7
 HylCZqnQrfBTH9pqkTby6l0fb/nNHGQFUk1STz7A85t1NSWLWuPzbq104ELkC7Q+hed2
 WytA==
X-Gm-Message-State: ALoCoQkcWkc7LAfpHjGJ67JHSGIgO2urjzBOCZPoUVcTXTh5K/lHoZ+dzBsol04PE0TIR0DNr2yk
MIME-Version: 1.0
X-Received: by 10.107.47.28 with SMTP id j28mr16648713ioo.168.1447491710332;
 Sat, 14 Nov 2015 01:01:50 -0800 (PST)
Received: by 10.64.6.197 with HTTP; Sat, 14 Nov 2015 01:01:50 -0800 (PST)
X-Originating-IP: [213.152.162.79]
In-Reply-To: <D15543CF-11D7-4D0A-AB6E-E466A2A68802@riseup.net>
References: <D15543CF-11D7-4D0A-AB6E-E466A2A68802@riseup.net>
Date: Sat, 14 Nov 2015 11:01:50 +0200
Message-ID: <CAJ8LpWp=HkE7nfDrOzgFTkkZ3yOXpoONeJqOUoKYbvz0sUV9Uw@mail.gmail.com>
From: "Nurmi, Juha" <juha.nurmi@ahmia.fi>
To: tor-talk@lists.torproject.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Subject: Re: [tor-talk] Running a relay on a raspberry pi
X-BeenThere: tor-talk@lists.torproject.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tor-talk@lists.torproject.org
List-Id: "all discussion about theory, design,
 and development of Onion Routing" <tor-talk.lists.torproject.org>
List-Unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=unsubscribe>
List-Archive: <http://lists.torproject.org/pipermail/tor-talk/>
List-Post: <mailto:tor-talk@lists.torproject.org>
List-Help: <mailto:tor-talk-request@lists.torproject.org?subject=help>
List-Subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>

Hi,

I am running raspberry pi 1 and raspberry pi 2 Tor relays.

Middle relay works pretty well, see
https://atlas.torproject.org/#details/E7FF7144EA49AAE291B48E354C80B0CEE74A706E

2.65 MB/s without any problems.

However, my exit does not work very well. I have to limit it to
BandwidthRate 256 KB         # Throttle traffic to 256 KB/s
BandwidthBurst  1024 KB      # But allow bursts up to 1024 KB/s

Otherwise it will freeze to some unknown problem. Without low traffic
limits it runs only few days and totally freezes after that: I am not even
able to get SSH connection there. The traffic limits seems to help.

I have some documentation here:
https://github.com/juhanurmi/exitnode

These steps may be useful:

#Remove useless packages, see remove.sh on github
#REMOVES THE DESKTOP TOO!
sudo bash remove.sh

#Make sure everything is updated
sudo apt-get update && sudo apt-get upgrade
sudo rpi-update

#Low entropy may be a problem, install haveged
sudo apt-get install haveged

#Install Tor, remember check torrc
sudo apt-get install tor

#You can modify iptables and sysctl settings, see github
sudo cp sysctl.conf /etc/sysctl.conf
sudo cp rules.v4 /etc/iptables/rules.v4
sudo apt-get install iptables-persistent
sudo modprobe ip_conntrack
sudo echo "ip_conntrack" >> /etc/modules
sudo service iptables-persistent restart
sudo sysctl -p /etc/sysctl.conf
sudo service tor restart

# After installation may be good idea to
sudo reboot

This is just my test case. Maybe someone knows more details? :)

-Juha

On Sat, Nov 14, 2015 at 10:32 AM, Flipchan <flipchan@riseup.net> wrote:

> Have anyone done this with a raspberrypi
> ?
> I have found some tutorials
> http://m.instructables.com/id/Raspberry-Pi-Tor-relay/?ALLSTEPS and stuff
> , anyhow email back IF anyone is running a tor relay on a raspberry pi
> --
> Sincerly Flipchan
> --
> tor-talk mailing list - tor-talk@lists.torproject.org
> To unsubscribe or change other settings go to
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk
>
-- 
tor-talk mailing list - tor-talk@lists.torproject.org
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk

