torrc.sample.in 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. ## Configuration file for a typical Tor user
  2. ## Last updated 8 October 2006 for Tor 0.1.2.3-alpha.
  3. ## (May or may not work for older or newer versions of Tor.)
  4. ##
  5. ## Lines that begin with "## " try to explain what's going on. Lines
  6. ## that begin with just "#" are disabled commands: you can enable them
  7. ## by removing the "#" symbol.
  8. ##
  9. ## See the man page, or http://tor.eff.org/tor-manual-cvs.html, for more
  10. ## options you can use in this file.
  11. ##
  12. ## On Unix, Tor will look for this file in someplace like "~/.tor/torrc" or
  13. ## "/etc/torrc"
  14. ##
  15. ## On Windows, Tor will look for the configuration file in someplace like
  16. ## "Application Data\tor\torrc" or "Application Data\<username>\tor\torrc"
  17. ##
  18. ## With the default Mac OS X installer, Tor will look in ~/.tor/torrc or
  19. ## /Library/Tor/torrc
  20. ## Replace this with "SocksPort 0" if you plan to run Tor only as a
  21. ## server, and not make any local application connections yourself.
  22. SocksPort 9050 # what port to open for local application connections
  23. SocksListenAddress 127.0.0.1 # accept connections only from localhost
  24. #SocksListenAddress 192.168.0.1:9100 # listen on this IP:port also
  25. ## Entry policies to allow/deny SOCKS requests based on IP address.
  26. ## First entry that matches wins. If no SocksPolicy is set, we accept
  27. ## all (and only) requests from SocksListenAddress.
  28. #SocksPolicy accept 192.168.0.0/16
  29. #SocksPolicy reject *
  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 @LOCALSTATEDIR@/log/tor/notices.log
  38. #Log notice file @LOCALSTATEDIR@/log/tor/notices.log
  39. ## Send every possible message to @LOCALSTATEDIR@/log/tor/debug.log
  40. #Log debug file @LOCALSTATEDIR@/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. ## Uncomment this to start the process in the background... or use
  46. ## --runasdaemon 1 on the command line. This is ignored on Windows;
  47. ## see the FAQ entry if you want Tor to run as an NT service.
  48. #RunAsDaemon 1
  49. ## The directory for keeping all the keys/etc. By default, we store
  50. ## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
  51. #DataDirectory @LOCALSTATEDIR@/lib/tor
  52. ## The port on which Tor will listen for local connections from Tor
  53. ## controller applications, as documented in control-spec.txt.
  54. #ControlPort 9051
  55. ############### This section is just for location-hidden services ###
  56. ## Once you have configured a hidden service, you can look at the
  57. ## contents of the file ".../hidden_service/hostname" for the address
  58. ## to tell people.
  59. ##
  60. ## HiddenServicePort x y:z says to redirect requests on port x to the
  61. ## address y:z.
  62. #HiddenServiceDir @LOCALSTATEDIR@/lib/tor/hidden_service/
  63. #HiddenServicePort 80 127.0.0.1:80
  64. #HiddenServiceDir @LOCALSTATEDIR@/lib/tor/other_hidden_service/
  65. #HiddenServicePort 80 127.0.0.1:80
  66. #HiddenServicePort 22 127.0.0.1:22
  67. ################ This section is just for servers #####################
  68. ## NOTE: If you enable these, you should consider mailing the contents
  69. ## of the "fingerprint" file to the tor-ops, so nobody else can pick
  70. ## your nickname and use a different key. See
  71. ## http://tor.eff.org/docs/tor-doc-server.html for details.
  72. ## Required: A unique handle for your server.
  73. #Nickname ididnteditheconfig
  74. ## The IP or FQDN for your server. Leave commented out and Tor will guess.
  75. #Address noname.example.com
  76. ## Define these to limit your bandwidth usage. Note that BandwidthRate
  77. ## must be at least 20 KB.
  78. #BandwidthRate 100 KB # Throttle traffic to 100KB/s (800Kbps)
  79. #BandwidthBurst 200 KB # But allow bursts up to 200KB/s (1600Kbps)
  80. ## Contact info to be published in the directory, so we can contact you
  81. ## if your server is misconfigured or something else goes wrong.
  82. #ContactInfo Random Person <nobody AT example dot com>
  83. ## You might also include your PGP or GPG fingerprint if you have one:
  84. #ContactInfo 1234D/FFFFFFFF Random Person <nobody AT example dot com>
  85. ## Required: what port to advertise for Tor connections.
  86. #ORPort 9001
  87. ## If you want to listen on a port other than the one advertised
  88. ## in ORPort (e.g. to advertise 443 but bind to 9090), uncomment the
  89. ## line below too. You'll need to do ipchains or other port forwarding
  90. ## yourself to make this work.
  91. #ORListenAddress 0.0.0.0:9090
  92. ## Uncomment this to mirror the directory for others. Please do
  93. ## if you have enough bandwidth: see the bottom of
  94. ## http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#LimitBandwidth
  95. #DirPort 9030 # what port to advertise for directory connections
  96. ## If you want to listen on a port other than the one advertised
  97. ## in DirPort (e.g. to advertise 80 but bind to 9091), uncomment the line
  98. ## below too. You'll need to do ipchains or other port forwarding yourself
  99. ## to make this work.
  100. #DirListenAddress 0.0.0.0:9091
  101. ## Uncomment this if you run more than one Tor server, and add the
  102. ## nickname of each Tor server you control, even if they're on different
  103. ## networks. You declare it here so Tor clients can avoid using more than
  104. ## one of your servers in a single circuit.
  105. #MyFamily nickname1,nickname2,...
  106. ## A comma-separated list of exit policies. They're considered first
  107. ## to last, and the first match wins. If you want to _replace_
  108. ## the default exit policy, end this with either a reject *:* or an
  109. ## accept *:*. Otherwise, you're _augmenting_ (prepending to) the
  110. ## default exit policy. Leave commented to just use the default, which is
  111. ## available in the man page or at http://tor.eff.org/documentation.html
  112. ##
  113. ## Look at http://tor.eff.org/faq-abuse.html#TypicalAbuses
  114. ## for issues you might encounter if you use the default exit policy.
  115. ##
  116. ## If certain IPs and ports are blocked externally, e.g. by your firewall,
  117. ## you should update your exit policy to reflect this -- otherwise Tor
  118. ## users will be told that those destinations are down.
  119. ##
  120. #ExitPolicy accept *:6660-6667,reject *:* # allow irc ports but no more
  121. #ExitPolicy accept *:119 # accept nntp as well as default exit policy
  122. #ExitPolicy reject *:* # no exits allowed