Tor relay server
Running a non-exit tor server using debian linux is realy easy and should be done whenever possible.
Installing the package:
apt-get install tor /etc/init.d/tor stop
It's better to stop the service, because the default would be to run an exit server. You might not want to do that!
Update the file /etc/tor/torrc with these settings:
ORPort 9001 ExitPolicy reject *:* Nickname example RelayBandwidthRate 100 KB RelayBandwidthBurst 200 KB AccountingMax 100 GB AccountingStart month 1 00:00 ContactInfo Some name <email@example.com>
That should be enough for running a small volume tor server. Feel free to adapt the amount of GBytes to your hosting contract.
After restarting the tor service, monitor the log under /var/log/tor/log for the following last lines:
Now checking whether ORPort x.x.x.x:9001 is reachable... (this may take up to 20 minutes -- look for log messages indicating success) Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor. Performing bandwidth self-test...done.