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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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

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 wait a couple of seconds until the file is downloaded. Then

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

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

#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: 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- 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 9050 is the localhost port for SOCKS directly and 9150 port is for Browsing

Now open FIrefox and type

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:




Raspberry Pi Contest 2017

Participated in the
Raspberry Pi Contest 2017

Be the First to Share


    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    7 Discussions


    2 months ago

    Hi every looks fine until any .Onion website can't be opened. It shows "The proxy server is refusing connections".
    kindly help me with the way out.
    Thank you.

    2 replies

    Reply 2 months ago

    Hi joydipta90
    Tor doesn't use a http proxy anymore. Instead everything goes through socks.
    In Firefox delete the line http proxy but keep the socks proxy.
    At the bottom of the network settings page, make sure "Proxy DNS when using SOCKS v5" is enabled. Works for me.
    Cheers from Denmark


    Reply 2 months ago

    Sorry cant really help you. The instructable is almost 2 years old and i really don't know if anything have changed. You have to figure out yourself.


    Question 2 months ago on Step 5

    Hi. All went well until "scr/or/tor" which returned "no such file or directory"

    I have done this twice, with a complete fresh sd card install in between.

    Any ideas?

    1 answer

    Answer 2 months ago

    First you have to be inside the directory. cd tor- and then src/or/tor. Beware you written scr/or/tor which is wrong. I think this is your mistake.


    Question 4 months ago

    The project worked fine on a Pi 3B+. How do I turn it off? Will it be on after a reeboot?

    1 answer

    Answer 4 months ago

    Thank u for the comment. Yes a simple reboot will be fine. Then you have to start it again with the src/or/tor command.