Settings necessary to run a Tor relay on Debian.
Packages
There is just one package that needs to be installed for Tor:
%CODE{"sh"}%
aptitude install tor
%ENDCODE%
To make sure that the time on the server is correct, it is advised to sync the clock to some external source like NTP:
%CODE{"sh"}%
aptitude install ntp
%ENDCODE%
Configuration
Modify the following settings in /etc/tor/torrc:
| Key |
Value |
Description |
| SocksPort |
0 |
Set this to 0 to disable local connections to the Tor server. Can be set to any other available port to enable if necessary. |
| DataDirectory |
/var/lib/tor |
This ist the default directory for the Debian Tor package. |
| Nickname |
FladiAT |
This can be set to any name. |
| Address |
<server>.fladi.at |
The primary FQDN of your server. |
| RelayBandwidthRate |
512 KBytes |
Limit relay bandwidth to this value. |
| RelayBandwidthBurst |
1024 KBytes |
Limit burst bandwidth to this value. |
| ContactInfo |
1024D/314C5066 Fladischer Michael |
Contact information of the sysop running the Tor server. |
| ORPort |
9001 |
Port which is advertised for Tor relay connections. |
| DirPort |
9030 |
Port for directory connections. Can be removed from configuration if there is not enough bandwidth. |
Running the server
Just restart the service:
%CODE{"sh"}%
/etc/init.d/tor restart
%ENDCODE%
Verification
Make sure that the server runs fine and is able to connect to the Tor network by checking the log file /var/log/tor/log for this lines:
Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor.
Tor has successfully opened a circuit. Looks like client functionality is working.
Self-testing indicates your DirPort is reachable from the outside. Excellent.
Performing bandwidth self-test...done.
If those lines are absent in your log even 20 minutes after your last restart of the Tor service, check your firewall if all ports (9001 and 9030) are open and if DNS name-resolution is working.
Legal Help
Destiled from the following sources, showing TOR nodes run by public services across Europe:
| IP |
Name |
Country |
Instituiton |
| 128.232.110.16 |
ephemer2 |
United Kingdom |
University Of Cambridge Computer Laboratory |
| 129.187.150.131 |
toratcdtm |
Germany |
Leibniz-Rechenzentrum (LRZ) |
| 129.241.93.106 |
groove |
Norway |
Norwegian University Of Science And Technology |
| 130.104.74.142 |
doingmybest |
Belgium |
Universite Catholique De Louvain |
| 130.239.11.2 |
Undefined |
Sweden |
Umea University |
| 131.220.137.122 |
grsrlfz |
Germany |
Universitaet Bonn |
| 132.252.152.200 |
geniusesdesktop |
Germany |
Universitaet Duisburg-Essen |
| 134.102.64.130 |
amaranta |
Germany |
Universitaet Bremen |
| 134.34.147.22 |
theophysicsatunikn |
Germany |
Universitaet Konstanz |
| 134.93.142.188 |
Poseidon |
Germany |
Johannes Gutenberg-Universitaet, Mainz |
| 137.56.75.117 |
teunTest |
Netherlands |
Universiteit Van Tilburg (UvT?) |
| 138.100.10.146 |
CriptoLabTORRelay2? |
Spain |
Universidad Politecnica De Madrid |
| 138.100.10.206 |
CriptoLabTORRelay1? |
Spain |
Universidad Politecnica De Madrid |
| 138.100.10.209 |
CriptoLabTORRelay3? |
Spain |
Universidad Politecnica De Madrid |
| 138.100.12.108 |
CriptoLabTORRelay4? |
Spain |
Universidad Politecnica De Madrid |
| 138.4.116.145 |
polar03 |
Spain |
Universidad Politecnica De Madrid |
| 139.30.43.12 |
Unnamed |
Germany |
Universitaet Rostock |
| 159.149.105.57 |
bodengo |
Italy |
Universita' Degli Studi Di Milano |
| 160.75.26.48 |
portedeslilas |
Turkey |
Istanbul Technical University |
| 193.136.154.5 |
random |
Portugal |
Universidade Tecnica De Lisboa |
| 193.174.6.20 |
torrrrme |
Germany |
Wissenschaftszentrum Berlin Fuer Sozialforschung |
| 194.177.202.175 |
Unnamed |
Greece |
University Of Thessaly |
| 194.47.250.233 |
HW1 |
Sweden |
Lund University |
| 195.113.20.121 |
DomecekNaMolotovovi? |
Czech Republic |
Charles University In Prague |
| 195.134.67.52 |
gallagher |
Greece |
University Of Athens |
| 195.251.226.13 |
inferno |
Greece |
University Of Piraeus |
| 213.131.246.194 |
rootkit |
Germany |
Chaos Computer Club E.V. |
| 213.163.64.43 |
PPrivComNetherland3? |
Netherlands |
The Netherlands |
| 213.163.71.100 |
PPrivComNetherland1? |
Netherlands |
The Netherlands |
| 213.163.72.149 |
PPrivComNetherland2? |
Netherlands |
The Netherlands |
| 78.142.140.194 |
UBIT2 |
Austria |
Austria |
| 78.142.175.70 |
SCggHJTyWbtzDA9YZi? |
Austria |
SILVER SERVER GmbH? |
| 78.41.115.221 |
raumquantenmotor |
Austria |
FunkFeuer? - Verein Zur Foerderung Freier Netze |
| 80.120.3.101 |
attnjupiter |
Austria |
Technologiezentrum Salzkammergut-Bezirk Voecklabruck |
| 82.130.33.187 |
Phantasm |
Finland |
The Student Union Of Helsinki University Of Technology |
| 87.86.191.137 |
okol |
United Kingdom |
Research And Development (BL) |
| 91.191.238.170 |
DagothUr? |
Russian |
Federation Ekaterinburg Russian Federation |
| 94.136.16.242 |
UBIT1 |
Austria |
Wirtschaftskammer Wien FG UBIT - TOR |
| 128.130.204.91 |
infinity |
Austria |
Technische Universität Wien |