torrc.sample.in 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. ## Configuration file for a typical Tor user
  2. ## Last updated 16 October 2005 for Tor 0.1.1.9-alpha.
  3. ## (May or may not work for older or newer versions of Tor.)
  4. #
  5. ## See the man page, or http://tor.eff.org/tor-manual.html, for more
  6. ## options you can use in this file.
  7. #
  8. # On Unix, Tor will look for this file in someplace like "~/.tor/torrc" or
  9. # "/etc/torrc"
  10. #
  11. # On Windows, Tor will look for the configuration file in someplace like
  12. # "Application Data\tor\torrc" or "Application Data\<username>\tor\torrc"
  13. #
  14. # With the default Mac OS X installer, Tor will look in ~/.tor/torrc or
  15. # /Library/Tor/torrc
  16. ## Replace this with "SocksPort 0" if you plan to run Tor only as a
  17. ## server, and not make any local application connections yourself.
  18. SocksPort 9050 # what port to open for local application connections
  19. SocksListenAddress 127.0.0.1 # accept connections only from localhost
  20. #SocksListenAddress 192.168.0.1:9100 # listen on a chosen IP/port too
  21. ## Entry policies to allow/deny SOCKS requests based on IP address.
  22. ## First entry that matches wins. If no SocksPolicy is set, we accept
  23. ## all (and only) requests from SocksListenAddress.
  24. #SocksPolicy accept 192.168.0.1/16
  25. #SocksPolicy reject *
  26. ## Allow no-name routers (ones that the dirserver operators don't
  27. ## know anything about) in only these positions in your circuits.
  28. ## Other choices (not advised) are entry,exit,introduction.
  29. AllowUnverifiedNodes middle,rendezvous
  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. ## Send all messages of level 'notice' or higher to @LOCALSTATEDIR@/log/tor/notices.log
  35. #Log notice file @LOCALSTATEDIR@/log/tor/notices.log
  36. ## Send every possible message to @LOCALSTATEDIR@/log/tor/debug.log
  37. #Log debug file @LOCALSTATEDIR@/log/tor/debug.log
  38. ## Send only debug and info messages to @LOCALSTATEDIR@/log/tor/debug.log
  39. #Log debug-info file @LOCALSTATEDIR@/log/tor/debug.log
  40. ## Send ONLY debug messages to @LOCALSTATEDIR@/log/tor/debug.log
  41. #Log debug-debug file @LOCALSTATEDIR@/log/tor/debug.log
  42. ## Use the system log instead of Tor's logfiles
  43. #Log notice syslog
  44. ## To send all messages to stderr:
  45. #Log debug stderr
  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. ## The directory for keeping all the keys/etc. By default, we store
  51. ## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
  52. #DataDirectory @LOCALSTATEDIR@/lib/tor
  53. ## The port on which Tor will listen for local connections from Tor controller
  54. ## applications, as documented in control-spec.txt. NB: this feature is
  55. ## currently experimental.
  56. #ControlPort 9051
  57. ############### This section is just for location-hidden services ###
  58. ## Look in .../hidden_service/hostname for the address to tell people.
  59. ## HiddenServicePort x y:z says to redirect a port x request from the
  60. ## client to y:z.
  61. #HiddenServiceDir @LOCALSTATEDIR@/lib/tor/hidden_service/
  62. #HiddenServicePort 80 127.0.0.1:80
  63. #HiddenServiceDir @LOCALSTATEDIR@/lib/tor/other_hidden_service/
  64. #HiddenServicePort 80 127.0.0.1:80
  65. #HiddenServicePort 22 127.0.0.1:22
  66. #HiddenServiceNodes moria1,moria2
  67. #HiddenServiceExcludeNodes bad,otherbad
  68. ################ This section is just for servers #####################
  69. ## NOTE: If you enable these, you should consider mailing your identity
  70. ## key fingerprint to the tor-ops, so we can add you to the list of
  71. ## servers that clients will trust. See
  72. ## http://tor.eff.org/doc/tor-doc.html#server for details.
  73. ## Required: A unique handle for this server
  74. #Nickname ididnteditheconfig
  75. ## The IP or fqdn for this server. Leave commented out and Tor will guess.
  76. #Address noname.example.com
  77. ## Contact info that will be published in the directory, so we can
  78. ## contact you if you need to upgrade or if something goes wrong.
  79. ## This is optional but recommended.
  80. #ContactInfo Random Person <nobody AT example dot com>
  81. ## You might also include your PGP or GPG fingerprint if you have one:
  82. #ContactInfo 1234D/FFFFFFFF Random Person <nobody AT example dot com>
  83. ## Required: what port to advertise for tor connections
  84. #ORPort 9001
  85. ## If you want to listen on a port other than the one advertised
  86. ## in ORPort (e.g. to advertise 443 but bind to 9090), uncomment
  87. ## the line below. You'll need to do ipchains or other port forwarding
  88. ## yourself to make this work.
  89. #ORListenAddress 0.0.0.0:9090
  90. ## Uncomment this to mirror the directory for others (please do)
  91. #DirPort 9030 # what port to advertise for directory connections
  92. ## If you want to listen on a port other than the one advertised
  93. ## in DirPort (e.g. to advertise 80 but bind 9091), uncomment the line
  94. ## below. You'll need to do ipchains or other port forwarding yourself
  95. ## to make this work.
  96. #DirListenAddress 0.0.0.0:9091
  97. ## Uncomment this if you run more than one Tor server, and add the
  98. ## nickname of each Tor server you control, even if they're on different
  99. ## networks. We declare it here so clients can avoid using more than
  100. ## one of your servers in a given circuit.
  101. #MyFamily nickname1,nickname2,...
  102. ## A comma-separated list of exit policies. They're considered first
  103. ## to last, and the first match wins. If you want to *replace*
  104. ## the default exit policy, end this with either a reject *:* or an
  105. ## accept *:*. Otherwise, you're *augmenting* (prepending to) the
  106. ## default exit policy. Leave commented to just use the default, which is
  107. ## available in the man page or at http://tor.eff.org/documentation.html
  108. ##
  109. ## Look at http://tor.eff.org/faq-abuse.html#TypicalAbuses
  110. ## for issues you might encounter if you use the default exit policy.
  111. ##
  112. ## If certain IPs and ports are blocked externally, e.g. by your firewall,
  113. ## you should update your exit policy to reflect this -- otherwise Tor
  114. ## users will be told that those destinations are down.
  115. ##
  116. #ExitPolicy accept *:6660-6667,reject *:* # allow irc ports but no more
  117. #ExitPolicy accept *:119 # accept nntp as well as default exit policy
  118. #ExitPolicy reject *:* # middleman only -- no exits allowed