Anonymizing Internet From Router Side With OpenWrt And Tor Mithat Gögebakan
[email protected] https://keybase.io/mithatgogebakan
04.01.2015
CONTENTS
Introduction .................................................................................................................. 3 Installing OpenWrt......................................................................................................... 4 Installing Tor....................................................................................................................7 Possible Problems............................................................................................................8 Conclusion.......................................................................................................................9
3
Introduction Anonabox, the plug-in Internet router that claims it makes your online activity anonymous. The project has raised about nearly $600,000, after Kickstarter suspended the controversial project. If you don't remember this project, Youtube can help you. We can do same job or more using some hardware with OpenWrt. If you use wireless repeater to install OpenWrt, you will have a Tor hardware with same features like Anonabox. It will look like Anonabox. I will use Nexx WT3020H for this job but you can prefer other hardwares. If you want to test same device, you can buy one from here. It surprisingly looks exactly like Anonabox as you can see. WT3020H is actually just a wireless repeater but we can modify it for our needs. If you modified this device as below you can use it like wireless repeater again.
4
Installing OpenWrt You must change default firmware. Plug RJ45 cable to the LAN port of the box. The default web interface will be at the adress 192.168.1.1. Open it with your browser. For the WT3020H version, the firmware is openwrt-ramips-mt7620n-wt3020squashfs-8M-factory.bin that can be download from http://onionwrt.link/download/ Then use the upgrade image to upgrade your firmware. After the completed installation, you will see this screen when you enter 192.168.1.1 with your browser.
5 You should set the root user's password. After login, you can activate ssh service from administration under the system tab.
6 After activating ssh, it is possible to adjust other settings but I did an extra work at LAN interface. Because 192.168.1.1 is normally router's address. I've changed ipv4 to 192.168.8.1. With this adjustment i can connect to device with 192.168.8.1 as soon as device is ready. After this adjustments we should be able to connect 192.168.8.1 ip address with ssh using username and password we've created.
7
Installing Tor Before installing Tor we should check if device's wireless settings working fine. After clicking wifi on top panel you can adjust settings like wireless network name, visibility and password. You should connect device from device's wan input to router's Lan input with ethernet cable. After connecting this new wireless network, you should connect the device with ssh using the ip address we gave. I've used this script to install Tor and complete other configurations. After connecting with ssh you can use this simple command to make installation. wget -qo - http://onionwrt.us.to/install | sh If everything goes smoothly you should see something like this screen below. For final step you should restart the device. After connecting via wifi, you should be able to browse internet using Tor.
8
• Possible Problems *If you get error messages while trying to run the script you can try to run the script's commands manually. *If you can connect the device but can not connect the internet you may have to start Tor service manually or restart the firewall. In this case you can run these commands from terminal. /etc/init.d/tor enable /etc/init.d/tor start /etc/init.d/firewall stop /etc/init.d/firewall start *You may check iptables rules to see if there is a problem. If there is a problem you can run the commands in script manually. *For other problems you can check logs in the device's interface.
9
Conclusion After configuring device accordingly, you can use it anywhere with a ethernet cable the same way. You can use browse internet via Tor with your tablet, phone, computer and all the other wifi compatible devices without installing any software on them.