-
Notifications
You must be signed in to change notification settings - Fork 8
/
torrc.txt
72 lines (54 loc) · 2.17 KB
/
torrc.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
## Simplified TDP torrc for Tor Relays
## https://torbsd.github.io/torrc.txt
## For more detailed explanations,
## https://www.torproject.org/docs/tor-manual.html.en
## or tor(1) man page on a Tor host.
## REQUIRED indicates vital to an operational relay.
# REQUIRED: This line designates that the Tor node will relay traffic
SocksPort 0
# REQUIRED: Where the logs will dwell. It's necessary touch(1) the log file
# and make owner and group _tor
Log notice file /var/log/tor.log
# REQUIRED: TCP port listening for Tor traffic
ORPort 9001
# The relay nickname appearing in Tor server listing
Nickname a-Tor-relay
# Set the rate and burst bandwidth limits in kilobytes
# Throttle traffic to 5000KB/s (40000Kbps),
# but allow bursts up to 6000KB/s (48000Kbps)
RelayBandwidthRate 5000 KB
RelayBandwidthBurst 6000 KB
# Provide a contact email address, obscured
ContactInfo Admin your admin AT domain DOT tld
# To run a directory server, the TCP port that advertises for connections
DirPort 9030
# For entities or admins running multiple relays, especially on the same host,
# use fingerprints to identify them
MyFamily $keyid,$keyid,...
# To NOT allow exit traffic, i.e., to not be an exit node
# Although we do strongly encourage exploring that option
ExitPolicy reject *:* # no exits allowed
# REQUIRED: Publicly announce the relay to the Tor directory services
PublishServerDescriptor 1
# Accumulate some statistics
CellStatistics 1
ExtraInfoStatistics 1
ConnDirectionStatistics 1
EntryStatistics 1
# Incude log domain in log file
LogMessageDomains 1
# Limit disk writes
AvoidDiskWrites 1
# Warn relay users when clear-text ports used, potentially compromising them
WarnPlaintextPorts
# On hourly basis, send a heartbeat indicating client usage, uptime, bandwidth
HeartbeatPeriod 1hours
# Enable obfsproxy2/3
ServerTransportPlugin obfs2,obfs3 exec /usr/local/bin/obfsproxy managed
# Enable obfsproxy4
ServerTransportPlugin obfs4 exec /usr/local/bin/obfsproxy managed
# TCP Port for obfsproxy and pluggable transports. Setting to 'auto' means
# the port will be dynamically assign on Tor startup
# If employing a firewall, should set statically to assign pass rule for
# the port specified
ExtORPort auto