The Debian System
# cat /etc/issue /etc/debian_version;lsb_release -c Debian GNU/Linux 7 \n \l 7.1 Codename: wheezy
Add the TorProject repository to the apt sources.
# echo "deb http://deb.torproject.org/torproject.org wheezy main" >> /etc/apt/sources.list
Add the torproject gpg key
# gpg --keyserver keys.gnupg.net --recv 886DDD89 # gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -TorProject debian based Install
Update apt
# apt-get update
Optionally
# apt-get install deb.torproject.org-keyring
You may need to comment out the main repository, apt-get update again, and then Install Tor with apt-get
# apt-get install tor
The configuration: /etc/tor/torrc.
I did set a few more directives in torrc
but I think that at least the following should be set
SocksPort SocksPolicy ORPort Address OutboundBindAddress Nickname ContactInfoTorProject torrc
To minimize the abuse complaints you may want to use a reduced exit policy eg:
ExitPolicy accept *:80 #g0 ExitPolicy accept *:110 #g0 ExitPolicy accept *:143 #g0 ExitPolicy accept *:443 #g0 ExitPolicy accept *:993 #g0 ExitPolicy accept *:5222-5223 #g0 ExitPolicy accept *:8080 #g0 ExitPolicy accept *:11371 #g0 ExitPolicy reject *:* #g0Or use The Reduced Exit Policy recommended by the Tor Project
TorProject ReducedExitPolicy
You may want to set the BandwidthRate and RelayBandwidthBurst.
URI: http://alog.ipduh.com/2013/08/tor-node-setup-notes-debian.html