
Make sure you read through the bootstrap.sh after you clone that repo so that you exactly know what you are executing on your pi. You could just follow the official Tor documentation, but these scripts set up several other things for you like updating your system, ensuring automatic updates, and configuring the ports. This will again be different for different routers, so google ‘port forwarding’ for your router model.

Open ports 4 on your router and forward to the static ip of your raspbery pi. This will be different on different routers, so you should just google ‘reserve static ip’ for your particular router model.Īlso make sure to test your internet connection after this step by opening a webpage, running ping, or something else. Make sure you are reserving the IP for your raspberry pi on your router. Here are instructions on setting up a static IP on the raspberry pi’s OK. This is important for port forwarding, or how your going to get the TOR traffic through your router and to the raspberry pi. The rest of these instructions can also be followed using SSH on the cli. If you would perfer a minimal installation, the first part of this Headless tutorial will show you how to install the minimal OS if you’re interested in that route. Here are instructions on installing the OS, which you can make CLI only/headless later if you want. If it doesn’t boot up, you’ll probably need to write an OS to your SD card. Plug it in to let it boot up if you’re not sure. Install an OS on the raspberry pi (if it doesn’t have one already).

The “Deciding to run a relay” section on the Tor Relay Guide is a great resource to understand what you are doing and why. I tried before with a headless setup, and while there are instructions for that, sometimes troubleshooting is easier if you can see the pi’s homescreen. It is easiest to do this if you have a usb keyboard/mouse and monitor with HDMI cable. I finally decided to take it out and set it up. I don’t recommend following this step! 3. I bought a kit kinda like this that has a charger, case, some heat syncs, an SD card, and some other stuff that is needed to do much with the pi.

It sits quietly next to my router supporting free speech and privacy and costing me nothing daily.

I recently created a TOR relay on a raspberry pi at home.
