projects:tor_hostspot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:tor_hostspot [2013/10/29 16:38] viriiprojects:tor_hostspot [2014/06/02 00:56] (current) – removed prometheus
Line 1: Line 1:
-Want Tor on a Router? For fun and profit? Well here we go! \\  
- 
-====== Hardware ====== 
- 
-We need the following: 
-  * Raspberry Pi (Modell B, REV1 or REV2) ~40€ 
-  * A case for our Pi ~10€ 
-  * Transcend Extreme-Speed SDHC 16GB SDCARD ~12€ 
-  * Micro-USB 5V 1500mA Power Supply ~4€ 
-  * LAN Cable ~1€ 
-  * TP-Link TL-WN722N Wireless adapter ~12€ 
-  * D-Link DUB-H4 USB HUB ~18€ 
- 
-Makes a total of ~97€ for a rady-to-go Tor Hotspot. (amazon prices!) 
- 
-====== Setup ====== 
- 
-Prepare the SDCard with the latest version of Raspbian. 
- 
-''wget -O /tmp/raspbian.img http://downloads.raspberrypi.org/raspbian_latest \\  
-dd if=/tmp/raspbian.img of=/dev/<YOUR SDCARD> bs=4M 
-'' 
-{{ :projects:tor-hotspot.jpg?300}} 
- 
-  * Plug the SDcard into the Pi 
-  * Connect it with the LAN cable to your router/switch 
-  * Connect the Pi with an HDMI cable to a monitor 
-  * Connect the USB Hub to the Pi. 
-  * On the HUB, connect an USB Keyboard and the Wireless adapter. 
-  * Connect the USB Hub and the Pi to their power supplies and fire it all up. 
- 
-===== Config ===== 
- 
-When raspi-config opens, tell it to expand the filesystem to the full size of your SDcard. \\  Next, go and enable the SSH daemon. Now you can change the hostname to something like "TorRouter". \\ \\  
- 
-Switch to the root user! \\  
-''sudo su'' \\  
-Install Hostapd (does the Hotspot/Access Point) stuff, the DCHP server and Tor. \\  
-''apt-get update && apt-get install isc-dhcp-server tor'' \\  
-For our setup we must compile Hostapd by hand as our TP-Link TL-WN722N uses a driver that's not enabled by the default raspbian hostapd. 
-''apt-get install libssl-dev libnl-dev \\  
-wget http://w1.fi/releases/hostapd-2.0.tar.gz \\  
-tar xzvf hostapd-2.0.tar.gz \\  
-cd hostapd-2.0/hostapd \\  
-cp defconfig .config \\  
-nano .config'' \\  
-Uncomment the following line \\  
-''#CONFIG_DRIVER_NL80211=y'' \\  
-Compile it! \\  
-''make \\  
-make install'' \\  
-Edit dhcpd.conf \\  
-''nano /etc/dhcp/dhcpd.conf'' \\  
-Comment the following lines out \\  
-''# option domain-name "example.org";\\  
-# option domain-name-servers ns1.example.org, ns2.example.org;'' \\  
-Uncomment the following line \\ 
-''# authoritative;'' \\  
-Now add the following block of lines to the config (at the end of the file)\\  
-''subnet 192.168.42.0 netmask 255.255.255.0 { \\  
-  range 192.168.42.10 192.168.42.50; \\  
-  option boradcast-address 192.168.42.255; \\  
-  option routers 192.168.42.1; \\  
-  default-lease-time 600; \\  
-  max-lease-time 7200; \\  
-  option domain-name "local"; \\  
-  option domain-name-servers 8.8.8.8, 8.8.8.4; \\  
-}'' \\  
- 
- 
- 
- 
  
  • projects/tor_hostspot.1383061086.txt.gz
  • Last modified: 2015/07/15 21:54
  • (external edit)