Advertisement
Guest User

torrc

a guest
May 19th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.66 KB | None | 0 0
  1. root@gandalf:~# cat /etc/tor/torrc
  2. ## Configuration file for a typical Tor user
  3. ## Last updated 12 September 2012 for Tor 0.2.4.3-alpha.
  4. ## (may or may not work for much older or much newer versions of Tor.)
  5. ##
  6. ## Lines that begin with "## " try to explain what's going on. Lines
  7. ## that begin with just "#" are disabled commands: you can enable them
  8. ## by removing the "#" symbol.
  9. ##
  10. ## See 'man tor', or https://www.torproject.org/docs/tor-manual.html,
  11. ## for more options you can use in this file.
  12. ##
  13. ## Tor will look for this file in various places based on your platform:
  14. ## https://www.torproject.org/docs/faq#torrc
  15.  
  16. ## Tor opens a socks proxy on port 9050 by default -- even if you don't
  17. ## configure one below. Set "SocksPort 0" if you plan to run Tor only
  18. ## as a relay, and not make any local application connections yourself.
  19. #SocksPort 9050 # Default: Bind to localhost:9050 for local connections.
  20. #SocksPort 192.168.0.1:9100# Bind to this address:port too.
  21. SocksPort 0
  22. ## Entry policies to allow/deny SOCKS requests based on IP address.
  23. ## First entry that matches wins. If no SocksPolicy is set, we accept
  24. ## all (and only) requests that reach a SocksPort. Untrusted users who
  25. ## can access your SocksPort may be able to learn about the connections
  26. ## you make.
  27. #SocksPolicy accept 192.168.0.0/16
  28. #SocksPolicy reject *
  29.  
  30. ## Logs go to stdout at level "notice" unless redirected by something
  31. ## else, like one of the below lines. You can have as many Log lines as
  32. ## you want.
  33. ##
  34. ## We advise using "notice" in most cases, since anything more verbose
  35. ## may provide sensitive information to an attacker who obtains the logs.
  36. ##
  37. ## Send all messages of level 'notice' or higher to /var/log/tor/notices.log
  38. Log notice file /var/log/tor/notices.log
  39. ## Send every possible message to /var/log/tor/debug.log
  40. #Log debug file /var/log/tor/debug.log
  41. ## Use the system log instead of Tor's logfiles
  42. #Log notice syslog
  43. ## To send all messages to stderr:
  44. #Log debug stderr
  45.  
  46. ## Uncomment this to start the process in the background... or use
  47. ## --runasdaemon 1 on the command line. This is ignored on Windows;
  48. ## see the FAQ entry if you want Tor to run as an NT service.
  49. RunAsDaemon 1
  50.  
  51. ## The directory for keeping all the keys/etc. By default, we store
  52. ## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
  53. #DataDirectory /var/lib/tor
  54.  
  55. ## The port on which Tor will listen for local connections from Tor
  56. ## controller applications, as documented in control-spec.txt.
  57. #ControlPort 9051
  58. ## If you enable the controlport, be sure to enable one of these
  59. ## authentication methods, to prevent attackers from accessing it.
  60. #HashedControlPassword 16:872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C
  61. #CookieAuthentication 1
  62.  
  63. ############### This section is just for location-hidden services ###
  64.  
  65. ## Once you have configured a hidden service, you can look at the
  66. ## contents of the file ".../hidden_service/hostname" for the address
  67. ## to tell people.
  68. ##
  69. ## HiddenServicePort x y:z says to redirect requests on port x to the
  70. ## address y:z.
  71.  
  72. #HiddenServiceDir /var/lib/tor/hidden_service/
  73. #HiddenServicePort 80 127.0.0.1:80
  74.  
  75. #HiddenServiceDir /var/lib/tor/other_hidden_service/
  76. #HiddenServicePort 80 127.0.0.1:80
  77. #HiddenServicePort 22 127.0.0.1:22
  78.  
  79. ################ This section is just for relays #####################
  80. #
  81. ## See https://www.torproject.org/docs/tor-doc-relay for details.
  82.  
  83. ## Required: what port to advertise for incoming Tor connections.
  84. ORPort 9001
  85. ## If you want to listen on a port other than the one advertised in
  86. ## ORPort (e.g. to advertise 443 but bind to 9090), you can do it as
  87. ## follows.  You'll need to do ipchains or other port forwarding
  88. ## yourself to make this work.
  89. #ORPort 443 NoListen
  90. #ORPort 127.0.0.1:9090 NoAdvertise
  91.  
  92. ## The IP address or full DNS name for incoming connections to your
  93. ## relay. Leave commented out and Tor will guess.
  94. Address tor.mdfnet.se
  95.  
  96. ## If you have multiple network interfaces, you can specify one for
  97. ## outgoing traffic to use.
  98. OutboundBindAddress 193.11.113.99
  99.  
  100. ## A handle for your relay, so people don't have to refer to it by key.
  101. Nickname mdfnet
  102.  
  103. ## Define these to limit how much relayed traffic you will allow. Your
  104. ## own traffic is still unthrottled. Note that RelayBandwidthRate must
  105. ## be at least 20 KB.
  106. ## Note that units for these config options are bytes per second, not bits
  107. ## per second, and that prefixes are binary prefixes, i.e. 2^10, 2^20, etc.
  108. RelayBandwidthRate 100 MB  # Throttle traffic to 100KB/s (800Kbps)
  109. RelayBandwidthBurst 200 MB # But allow bursts up to 200KB/s (1600Kbps)
  110.  
  111. ## Use these to restrict the maximum traffic per day, week, or month.
  112. ## Note that this threshold applies separately to sent and received bytes,
  113. ## not to their sum: setting "4 GB" may allow up to 8 GB total before
  114. ## hibernating.
  115. ##
  116. ## Set a maximum of 4 gigabytes each way per period.
  117. #AccountingMax 4 GB
  118. ## Each period starts daily at midnight (AccountingMax is per day)
  119. #AccountingStart day 00:00
  120. ## Each period starts on the 3rd of the month at 15:00 (AccountingMax
  121. ## is per month)
  122. #AccountingStart month 3 15:00
  123.  
  124. ## Contact info to be published in the directory, so we can contact you
  125. ## if your relay is misconfigured or something else goes wrong. Google
  126. ## indexes this, so spammers might also collect it.
  127. ContactInfo Markus <markus AT mdfnet dot se>
  128. ## You might also include your PGP or GPG fingerprint if you have one:
  129. #ContactInfo 0xFFFFFFFF Random Person <nobody AT example dot com>
  130.  
  131. ## Uncomment this to mirror directory information for others. Please do
  132. ## if you have enough bandwidth.
  133. DirPort 9030 # what port to advertise for directory connections
  134. ## If you want to listen on a port other than the one advertised in
  135. ## DirPort (e.g. to advertise 80 but bind to 9091), you can do it as
  136. ## follows.  below too. You'll need to do ipchains or other port
  137. ## forwarding yourself to make this work.
  138. #DirPort 80 NoListen
  139. #DirPort 127.0.0.1:9091 NoAdvertise
  140. ## Uncomment to return an arbitrary blob of html on your DirPort. Now you
  141. ## can explain what Tor is if anybody wonders why your IP address is
  142. ## contacting them. See contrib/tor-exit-notice.html in Tor's source
  143. ## distribution for a sample.
  144. #DirPortFrontPage /etc/tor/tor-exit-notice.html
  145.  
  146. ## Uncomment this if you run more than one Tor relay, and add the identity
  147. ## key fingerprint of each Tor relay you control, even if they're on
  148. ## different networks. You declare it here so Tor clients can avoid
  149. ## using more than one of your relays in a single circuit. See
  150. ## https://www.torproject.org/docs/faq#MultipleRelays
  151. ## However, you should never include a bridge's fingerprint here, as it would
  152. ## break its concealability and potentionally reveal its IP/TCP address.
  153. #MyFamily $keyid,$keyid,...
  154.  
  155. ## A comma-separated list of exit policies. They're considered first
  156. ## to last, and the first match wins. If you want to _replace_
  157. ## the default exit policy, end this with either a reject *:* or an
  158. ## accept *:*. Otherwise, you're _augmenting_ (prepending to) the
  159. ## default exit policy. Leave commented to just use the default, which is
  160. ## described in the man page or at
  161. ## https://www.torproject.org/documentation.html
  162. ##
  163. ## Look at https://www.torproject.org/faq-abuse.html#TypicalAbuses
  164. ## for issues you might encounter if you use the default exit policy.
  165. ##
  166. ## If certain IPs and ports are blocked externally, e.g. by your firewall,
  167. ## you should update your exit policy to reflect this -- otherwise Tor
  168. ## users will be told that those destinations are down.
  169. ##
  170. ## For security, by default Tor rejects connections to private (local)
  171. ## networks, including to your public IP address. See the man page entry
  172. ## for ExitPolicyRejectPrivate if you want to allow "exit enclaving".
  173. ##
  174. #ExitPolicy accept *:6660-6667,reject *:* # allow irc ports but no more
  175. #ExitPolicy accept *:119 # accept nntp as well as default exit policy
  176. ExitPolicy reject *:* # no exits allowed
  177.  
  178. ## Bridge relays (or "bridges") are Tor relays that aren't listed in the
  179. ## main directory. Since there is no complete public list of them, even an
  180. ## ISP that filters connections to all the known Tor relays probably
  181. ## won't be able to block all the bridges. Also, websites won't treat you
  182. ## differently because they won't know you're running Tor. If you can
  183. ## be a real relay, please do; but if not, be a bridge!
  184. #BridgeRelay 1
  185. ## By default, Tor will advertise your bridge to users through various
  186. ## mechanisms like https://bridges.torproject.org/. If you want to run
  187. ## a private bridge, for example because you'll give out your bridge
  188. ## address manually to your friends, uncomment this line:
  189. #PublishServerDescriptor 0
  190.  
  191. NumCPUs 8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement