torrc_base 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. SocksPort 0.0.0.0:9050
  2. ## Configuration file for a typical Tor user
  3. ## Last updated 22 December 2017 for Tor 0.3.2.8-rc.
  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. ## Tor opens a SOCKS proxy on port 9050 by default -- even if you don't
  16. ## configure one below. Set "SOCKSPort 0" if you plan to run Tor only
  17. ## as a relay, and not make any local application connections yourself.
  18. #SOCKSPort 9050 # Default: Bind to localhost:9050 for local connections.
  19. #SOCKSPort 192.168.0.1:9100 # Bind to this address:port too.
  20. ## Entry policies to allow/deny SOCKS requests based on IP address.
  21. ## First entry that matches wins. If no SOCKSPolicy is set, we accept
  22. ## all (and only) requests that reach a SOCKSPort. Untrusted users who
  23. ## can access your SOCKSPort may be able to learn about the connections
  24. ## you make.
  25. #SOCKSPolicy accept 192.168.0.0/16
  26. #SOCKSPolicy accept6 FC00::/7
  27. #SOCKSPolicy reject *
  28. ## Logs go to stdout at level "notice" unless redirected by something
  29. ## else, like one of the below lines. You can have as many Log lines as
  30. ## you want.
  31. ##
  32. ## We advise using "notice" in most cases, since anything more verbose
  33. ## may provide sensitive information to an attacker who obtains the logs.
  34. ##
  35. ## Send all messages of level 'notice' or higher to /var/log/tor/notices.log
  36. Log notice file /var/log/tor/notices.log
  37. ## Send every possible message to /var/log/tor/debug.log
  38. #Log debug file /var/log/tor/debug.log
  39. ## Use the system log instead of Tor's logfiles
  40. #Log notice syslog
  41. ## To send all messages to stderr:
  42. #Log debug stderr
  43. ## The directory for keeping all the keys/etc. By default, we store
  44. ## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
  45. DataDirectory /var/lib/tor
  46. ## The port on which Tor will listen for local connections from Tor
  47. ## controller applications, as documented in control-spec.txt.
  48. #ControlPort 9051
  49. ## If you enable the controlport, be sure to enable one of these
  50. ## authentication methods, to prevent attackers from accessing it.
  51. #HashedControlPassword 16:872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C
  52. #CookieAuthentication 1
  53. ############### This section is just for location-hidden services ###
  54. ## Once you have configured a hidden service, you can look at the
  55. ## contents of the file ".../hidden_service/hostname" for the address
  56. ## to tell people.
  57. ##
  58. ## HiddenServicePort x y:z says to redirect requests on port x to the
  59. ## address y:z.
  60. #HiddenServiceDir /var/lib/tor/hidden_service/
  61. #HiddenServicePort 80 127.0.0.1:80
  62. #HiddenServiceDir /var/lib/tor/other_hidden_service/
  63. #HiddenServicePort 80 127.0.0.1:80
  64. #HiddenServicePort 22 127.0.0.1:22
  65. ################ This section is just for relays #####################
  66. #
  67. ## See https://www.torproject.org/docs/tor-doc-relay for details.
  68. ## Required: what port to advertise for incoming Tor connections.
  69. #ORPort 9001
  70. ## If you want to listen on a port other than the one advertised in
  71. ## ORPort (e.g. to advertise 443 but bind to 9090), you can do it as
  72. ## follows. You'll need to do ipchains or other port forwarding
  73. ## yourself to make this work.
  74. #ORPort 443 NoListen
  75. #ORPort 127.0.0.1:9090 NoAdvertise
  76. ## The IP address or full DNS name for incoming connections to your
  77. ## relay. Leave commented out and Tor will guess.
  78. #Address noname.example.com
  79. ## If you have multiple network interfaces, you can specify one for
  80. ## outgoing traffic to use.
  81. ## OutboundBindAddressExit will be used for all exit traffic, while
  82. ## OutboundBindAddressOR will be used for all OR and Dir connections
  83. ## (DNS connections ignore OutboundBindAddress).
  84. ## If you do not wish to differentiate, use OutboundBindAddress to
  85. ## specify the same address for both in a single line.
  86. #OutboundBindAddressExit 10.0.0.4
  87. #OutboundBindAddressOR 10.0.0.5
  88. ## A handle for your relay, so people don't have to refer to it by key.
  89. ## Nicknames must be between 1 and 19 characters inclusive, and must
  90. ## contain only the characters [a-zA-Z0-9].
  91. #Nickname ididnteditheconfig
  92. ## Define these to limit how much relayed traffic you will allow. Your
  93. ## own traffic is still unthrottled. Note that RelayBandwidthRate must
  94. ## be at least 75 kilobytes per second.
  95. ## Note that units for these config options are bytes (per second), not
  96. ## bits (per second), and that prefixes are binary prefixes, i.e. 2^10,
  97. ## 2^20, etc.
  98. #RelayBandwidthRate 100 KBytes # Throttle traffic to 100KB/s (800Kbps)
  99. #RelayBandwidthBurst 200 KBytes # But allow bursts up to 200KB (1600Kb)
  100. ## Use these to restrict the maximum traffic per day, week, or month.
  101. ## Note that this threshold applies separately to sent and received bytes,
  102. ## not to their sum: setting "40 GB" may allow up to 80 GB total before
  103. ## hibernating.
  104. ##
  105. ## Set a maximum of 40 gigabytes each way per period.
  106. #AccountingMax 40 GBytes
  107. ## Each period starts daily at midnight (AccountingMax is per day)
  108. #AccountingStart day 00:00
  109. ## Each period starts on the 3rd of the month at 15:00 (AccountingMax
  110. ## is per month)
  111. #AccountingStart month 3 15:00
  112. ## Administrative contact information for this relay or bridge. This line
  113. ## can be used to contact you if your relay or bridge is misconfigured or
  114. ## something else goes wrong. Note that we archive and publish all
  115. ## descriptors containing these lines and that Google indexes them, so
  116. ## spammers might also collect them. You may want to obscure the fact that
  117. ## it's an email address and/or generate a new address for this purpose.
  118. #ContactInfo Random Person <nobody AT example dot com>
  119. ## You might also include your PGP or GPG fingerprint if you have one:
  120. #ContactInfo 0xFFFFFFFF Random Person <nobody AT example dot com>
  121. ## Uncomment this to mirror directory information for others. Please do
  122. ## if you have enough bandwidth.
  123. #DirPort 9030 # what port to advertise for directory connections
  124. ## If you want to listen on a port other than the one advertised in
  125. ## DirPort (e.g. to advertise 80 but bind to 9091), you can do it as
  126. ## follows. below too. You'll need to do ipchains or other port
  127. ## forwarding yourself to make this work.
  128. #DirPort 80 NoListen
  129. #DirPort 127.0.0.1:9091 NoAdvertise
  130. ## Uncomment to return an arbitrary blob of html on your DirPort. Now you
  131. ## can explain what Tor is if anybody wonders why your IP address is
  132. ## contacting them. See contrib/tor-exit-notice.html in Tor's source
  133. ## distribution for a sample.
  134. #DirPortFrontPage /etc/tor/tor-exit-notice.html
  135. ## Uncomment this if you run more than one Tor relay, and add the identity
  136. ## key fingerprint of each Tor relay you control, even if they're on
  137. ## different networks. You declare it here so Tor clients can avoid
  138. ## using more than one of your relays in a single circuit. See
  139. ## https://www.torproject.org/docs/faq#MultipleRelays
  140. ## However, you should never include a bridge's fingerprint here, as it would
  141. ## break its concealability and potentially reveal its IP/TCP address.
  142. #MyFamily $keyid,$keyid,...
  143. ## Uncomment this if you do *not* want your relay to allow any exit traffic.
  144. ## (Relays allow exit traffic by default.)
  145. #ExitRelay 0
  146. ## Uncomment this if you want your relay to allow IPv6 exit traffic.
  147. ## (Relays only allow IPv4 exit traffic by default.)
  148. #IPv6Exit 1
  149. ## A comma-separated list of exit policies. They're considered first
  150. ## to last, and the first match wins.
  151. ##
  152. ## If you want to allow the same ports on IPv4 and IPv6, write your rules
  153. ## using accept/reject *. If you want to allow different ports on IPv4 and
  154. ## IPv6, write your IPv6 rules using accept6/reject6 *6, and your IPv4 rules
  155. ## using accept/reject *4.
  156. ##
  157. ## If you want to _replace_ the default exit policy, end this with either a
  158. ## reject *:* or an accept *:*. Otherwise, you're _augmenting_ (prepending to)
  159. ## the 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 the configured primary public IPv4 and IPv6 addresses,
  172. ## and any public IPv4 and IPv6 addresses on any interface on the relay.
  173. ## See the man page entry for ExitPolicyRejectPrivate if you want to allow
  174. ## "exit enclaving".
  175. ##
  176. #ExitPolicy accept *:6660-6667,reject *:* # allow irc ports on IPv4 and IPv6 but no more
  177. #ExitPolicy accept *:119 # accept nntp ports on IPv4 and IPv6 as well as default exit policy
  178. #ExitPolicy accept *4:119 # accept nntp ports on IPv4 only as well as default exit policy
  179. #ExitPolicy accept6 *6:119 # accept nntp ports on IPv6 only as well as default exit policy
  180. #ExitPolicy reject *:* # no exits allowed
  181. ## Bridge relays (or "bridges") are Tor relays that aren't listed in the
  182. ## main directory. Since there is no complete public list of them, even an
  183. ## ISP that filters connections to all the known Tor relays probably
  184. ## won't be able to block all the bridges. Also, websites won't treat you
  185. ## differently because they won't know you're running Tor. If you can
  186. ## be a real relay, please do; but if not, be a bridge!
  187. #BridgeRelay 1
  188. ## By default, Tor will advertise your bridge to users through various
  189. ## mechanisms like https://bridges.torproject.org/. If you want to run
  190. ## a private bridge, for example because you'll give out your bridge
  191. ## address manually to your friends, uncomment this line:
  192. #PublishServerDescriptor 0
  193. ## Configuration options can be imported from files or folders using the %include
  194. ## option with the value being a path. If the path is a file, the options from the
  195. ## file will be parsed as if they were written where the %include option is. If
  196. ## the path is a folder, all files on that folder will be parsed following lexical
  197. ## order. Files starting with a dot are ignored. Files on subfolders are ignored.
  198. ## The %include option can be used recursively.
  199. #%include /etc/torrc.d/
  200. #%include /etc/torrc.custom