模板:Tor
来自Ubuntu中文
Tor (Network Privacy)
Tor is a project to allow privacy while using the Internet and limit usage tracking (by masking your IP address).
- You will also need to install privoxy:
sudo apt-get install privoxy
- Install Tor by following the instructions here. Note that the instructions require port 11371 on your firewall to be open to use the gpg keyserver (and download the key for the debian package). Then see the Tor installation guide for further details.
- Edit configuration files.
- Edit the privoxy configuration file:
sudo nano /etc/privoxy/config
- Add the line
forward-socks4a / localhost:9050 .
- restart Privoxy:
sudo /etc/init.d/privoxy restart
- Edit the Tor configuration file:
sudo nano /etc/tor/torrc
- Add the line
ControlPort 9051
- Comment out the line by adding a # at the beginning, so it looks like:
#RunAsDaemon 1 RunAsDaemon 0
- (This prevents the Tor daemon from automatically starting at bootup.)
- restart Tor
sudo /etc/init.d/tor restart
Tor GUIs
There are two main GUIs for Tor.
- Vidalia is a cross-platform Qt-based GUI for Tor. See these instructions to install it.
- TorK is the KDE interface, used in Kubuntu, but which can run in Ubuntu (Gnome) as well.
sudo apt-get install tork
In addition, a Torbutton is available for Firefox, which toggles Tor usage. Install as a Firefox add-on or:
sudo apt-get install torbutton-extension