-
1Step 1
This is a tutorial on how you can build your very own Raspberry Pi Tor Router. The process has been modified (not a lot, the end result will be the same) to make the build experience easier for the user.
Firstly, gather your materials. You will need the following:
- 1x Raspberry Pi (Any model, I used a B+)
- 1xSD Card loaded with Raspbian
- 1x Wireless Adapter
- 1x Micro Usb Cable
- 1x Ethernet Cable
- 1x Usb Battery Pack
- 1x Computer Monitor (Used only for debugging and initial setup)
- 1x Keyboard
- 1x Mouse
- Something to attach the Raspberry Pi to the battery pack (I used tape, but in the long run it might not be the best solution)
Note: If you plan on setting up the pi wirelessly or via console cable then you wont need the monitor, keyboard, or mouse
-
2Step 2
Make sure everything on your Raspberry Pi is up to date by typing the following on the command line:
sudo apt-get update
-
3Step 3
You will need to set up your Raspberry Pi as an access point, this tutorial by adafruit articulates this very well. Follow that.
-
4Step 4
Now for the cool part, Tor. The recommended path is to type all of it in yourself, as this will allow you to change things as you wish. If you want to do this, follow this tutorial by adafruit. But if typing isn't your thing, Breadtk wrote a nice script to install it all. Type this into the command line on your pi to install it, and be sure to follow the instructions on screen:
curl -fsSL https://raw.github.com/breadtk/onion_pi/master/setup.sh | sudo sh
-
5Step 5
Now to make it run at startup. This is super important. Type the following in the command line:
sudo update-rc.d tor enable
-
6Step 6
Almost finished! All the software is done, and if you go on any device and look at the wireless options you should see your Pi.
-
7Step 7
All you need to do now is set up your hardware. Attach the Pi to the Battery pack with some tape, or other attaching mechanism. Leave the micro usb cable close to the port on the pi, but unplugged. When you want to use the RasPi Tor Router, plug the ethernet into a port, then plug in the micro usb. The Pi will turn on, and you will be able to connect!
-
8Step 8
Thanks for reading (and hopefully following) the tutorial! If you had any problems at all, or wanna talk about the project, leave a comment or email me at jacckdm@gmail.com. If you liked this project, and want to see more, check out my website at jackdm.com. Thanks!
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Nicely done! :) you can tweak this a bit with two wifi dongles, and eliminate the need for the ethernet cable, too. edit /etc/networks/interfaces to add wlan1 and enter in the SSID/password for your Internet provider (like adafruit does here - https://learn.adafruit.com/onion-pi?view=all )
Are you sure? yes | no