torrc.sample.in 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Configuration file for a typical tor user
  2. # List of routers. Tor nodes start out knowing about the directory
  3. # servers, and from them they get a list of currently up nodes.
  4. RouterFile @CONFDIR@/dirservers
  5. # Comment out if you don't want to allow applications to connect.
  6. SocksPort 9050
  7. SocksBindAddress 127.0.0.1 # accept connections only from localhost
  8. #SocksBindAddress 192.168.0.1:9100 # listen on a chosen IP/port
  9. # Entry policies to allow/deny SOCKS requests based on IP. By default,
  10. # we accept all requests to SocksBindAddress.
  11. #
  12. #SocksPolicy accept 192.168.0.1/16:*
  13. #SocksPolicy reject *:*
  14. # By default, we send log messages to stdout. If you want
  15. # them to go somewhere else, uncomment one or more of these example
  16. # configurations.
  17. ### Send all messages of level 'warn' or higher to /var/log/tor/warnings
  18. #LogFile /var/log/tor/warnings
  19. #LogLevel warn
  20. ### Send all debug and info messages to /var/log/tor/debug
  21. #LogFile /var/log/tor/debug
  22. #LogLevel debug-info
  23. ### Send all debug messages ONLY to /var/log/tor/debug
  24. #LogFile /var/log/tor/debug
  25. #LogLevel debug-debug
  26. # Uncomment this to start the process in the background
  27. #RunAsDaemon 1
  28. ##################### Below is just for servers #####################
  29. ## NOTE: If you enable these, you won't be able to use tor as a client
  30. ## or server until you've been added to the directory and can
  31. ## authenticate to the other nodes. See the README for details.
  32. ## The directory for keeping all the keys/etc for this server
  33. #DataDirectory @LOCALSTATEDIR@/lib/tor
  34. #Nickname moria # A unique handle for this server
  35. #Address moria.seul.org # The IP or fqdn for this server
  36. #ORPort 9001 # where to listen for tor connections
  37. #ORBindAddress 0.0.0.0 # accept connections from anywhere
  38. #ORBindAddress 0.0.0.0:9090 # accept connections from anywhere, and
  39. # listen on a port other than the one we
  40. # advertised.
  41. ## A comma-separated list of exit policies. If you want to *replace*
  42. ## the default exit policy, end this with either a reject *:* or an
  43. ## accept *:*. Otherwise, you're *augmenting* (prepending to) the
  44. ## default exit policy. Leave commented to just use the default.
  45. #ExitPolicy accept *:6660-6667
  46. #ExitPolicy reject 192.168.0.1:*
  47. #ExitPolicy reject *:*
  48. ##################### Below is just for location-hidden services ###
  49. ## Look in /tmp/hidden_service/hostname for the url to tell people.
  50. ## HiddenServicePort x y:z says to redirect a port x request from the
  51. ## client to y:z.
  52. #HiddenServiceDir /tmp/hidden_service/
  53. #HiddenServicePort 80 127.0.0.1:80
  54. #HiddenServiceDir /tmp/other_hidden_service/
  55. #HiddenServicePort 80 127.0.0.1:80
  56. #HiddenServicePort 22 127.0.0.1:22
  57. #HiddenServiceNodes moria1,moria2
  58. #HiddenServiceExcludeNodes bad,otherbad