Now that the base setup is done, we have to configure network interface, open a terminal and use this command:
This shows you your actual configuration:
eth0 Link encap:Ethernet HWaddr 00:23:54:40:66:df
inet addr:192.168.0.20 Bcast:192.168.0.255 Mask:255.255.255.0
write down inet addr and mask
sudo nano /etc/network/interfaces
You will find a line like this:
iface eth0 inet dhcp
So as we see the Raspberry obtains an IP adress from the local DHCP server. If you want a static IP you hould change this to:
iface eth0 inet static
address 192.168.0.20 <- chose an IP that fits to your network! This is only an example!
netmask 255.255.255.0 <- change to the settings that fit to your network
gateway 192.168.0.1 <- type in the correct IP adress of your gateway.
Now we need to edit the TOR configuration file . You can find it here: /etc/tor/torrc. Open this file with your favourite text editor an add/change these settings:
Log notice file /var/log/tor/notices.log
ExitPolicy reject *:*
Nickname xxx (you can chose whatever you like)
RelayBandwidthRate 100 KB # Throttle traffic to 100KB/s (800Kbps)
RelayBandwidthBurst 200 KB # But allow bursts up to 200KB/s (1600Kbps)
sudo /etc/init.d/tor restart
TOR is now restarted. Now we have a look at the log file (less /var/log/tor/log). If everything is fine, you'll find an entry like
at the end.
Oct 18 22:59:21.104 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.