Introduction: Anonymously Browsing With Tor (installation) at the Raspberry Pi 3.

About: Raspberry Pi & Arduino explorer

Hello everybody.

This is an instructable about installing and using Tor in order to access anonymously the Internet.The whole installation takes some time so grub a cup of coffee and start typing some commands.

This is not a Tor Relay installation

Step 1: Few Words Before the Whole Process.

As i said this is not a Tor Relay installation. Few years ago i tried to download and use Tor browser for my Raspberry pi 1 but it never worked, i manage to install Tor from source and now i have a new Raspberry pi 3 so i used almost the same steps to see if it works and it works.

Step 2: Update Your System.

This is a basic step before we start typing some serious commands.

For this project i used the Raspbian image from https://www.raspberrypi.org/downloads/raspbian/

November 2017.

Lets start updating our system:

1.Open a terminal and type sudo apt-get update

2.After the update ends type sudo apt-get upgrade. The upgrade should not take long because we have the latest image.

That's it.Our system is up to date and we are ready to start installing some additional packages

Step 3: Additional Packages - Tor Installation

In this step we will install Tor from source. It takes time and we will work from the terminal. In order to use Tor we also need to have installed:

  • Openssl - your OS is updated so you don't need to do nothing, Just install libssl-dev
  • Libevent - Libevent API
  • Zlib

Open a terminal and start typing the commands:

#Install libevent-dev --> sudo apt-get install libssl-dev

#Install libevent --> sudo apt-get install libevent-dev

#Install zlib--> sudo apt-get install zlib1g-dev

OK we have installed the additional packages and we will download Tor. From the same terminal type:

wget https://dist.torproject.org/tor-0.3.1.9.tar.gzand wait a couple of seconds until the file is downloaded. Then

#Unzip the image you just downloaded with the command
tar xzf tor-0.3.1.9.tar.gz

#Enter the folder you just unzipped with the command
cd tor-0.3.1.9

#Configure Tor with the command
./configure && make

(This is the last but long step, if you done the previous commands correct the building will last about 35 minutes using the wifi of your Rasperry pi,that's how it took my Raspberry Pi 3. If you haven't install the above packages or openssl you will see an error message and the building will stop after a couple of minutes. So hit enter and do something else because it takes time)

OK that was the installation of Tor but we will not start the service. First lets configure Firefox.

Step 4: Configure Firefox Advanced Network

Ok in this step we have to configure Firefox in order to use the Tor network.

Open Firefox and go to Open menu --> Preferences --> Advanced --> Network and click on Connection settings. At the window that will appear set:

Manual configuration proxy:

--> HTTP Proxy: 127.0.0.1 port 9150

--> SOCKS hos: t127.0.0.1 port 9050.

Also the Not proxy for should be blank.

Step 5: Start Tor As Client

Till now we have installed Tor, configured Firefox to use Tor and our final step is to start the service.

Open a terminal and type cd tor-0.3.1.9.Now you are inside the Tor folder type the simple command src/or/tor and you will see the client to establish a Tor circuit at 127.0.0.1:9050. 9050 is the localhost port for SOCKS directly and 9150 port is for Browsing

Now open FIrefox and type https://check.torproject.org

Step 6: Safe Browsing

With this 5 steps we manage to set our Raspberry Pi 3 to use Tor and all the benefits of its network. I am not an expert about Tor and i cant tell you the differences between Tor Browser and Firefox using Tor proxy. But with these few steps you can Anonymously browse the Internet.

In order to have Anonymity in the Internet you have to follow additional steps.Like not opening PDF or word files over Tor, don't torrent over Tor etc.

Read more:

1.https://www.torproject.org/about/overview.html.en

2.https://www.torproject.org/docs/tor-doc-unix.html....

3.https://lifehacker.com/how-can-i-stay-anonymous-wi...

Raspberry Pi Contest 2017

Participated in the
Raspberry Pi Contest 2017