torrc.sample.in 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. ## Configuration file for a typical Tor user
  2. ## Last updated 18 August 2007 for Tor 0.2.0.5-alpha.
  3. ## (May or may not work for much older or much 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 https://www.torproject.org/tor-manual-dev.html,
  10. ## for more options you can use in this file.
  11. ##
  12. ## Tor will look for this file in various places based on your platform:
  13. ## http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#torrc
  14. ## Replace this with "SocksPort 0" if you plan to run Tor only as a
  15. ## server, and not make any local application connections yourself.
  16. SocksPort 9050 # what port to open for local application connections
  17. SocksListenAddress 127.0.0.1 # accept connections only from localhost
  18. #SocksListenAddress 192.168.0.1:9100 # listen on this IP:port also
  19. ## Entry policies to allow/deny SOCKS requests based on IP address.
  20. ## First entry that matches wins. If no SocksPolicy is set, we accept
  21. ## all (and only) requests from SocksListenAddress.
  22. #SocksPolicy accept 192.168.0.0/16
  23. #SocksPolicy reject *
  24. ## Logs go to stdout at level "notice" unless redirected by something
  25. ## else, like one of the below lines. You can have as many Log lines as
  26. ## you want.
  27. ##
  28. ## We advise using "notice" in most cases, since anything more verbose
  29. ## may provide sensitive information to an attacker who obtains the logs.
  30. ##
  31. ## Send all messages of level 'notice' or higher to @LOCALSTATEDIR@/log/tor/notices.log
  32. #Log notice file @LOCALSTATEDIR@/log/tor/notices.log
  33. ## Send every possible message to @LOCALSTATEDIR@/log/tor/debug.log
  34. #Log debug file @LOCALSTATEDIR@/log/tor/debug.log
  35. ## Use the system log instead of Tor's logfiles
  36. #Log notice syslog
  37. ## To send all messages to stderr:
  38. #Log debug stderr
  39. ## Uncomment this to start the process in the background... or use
  40. ## --runasdaemon 1 on the command line. This is ignored on Windows;
  41. ## see the FAQ entry if you want Tor to run as an NT service.
  42. #RunAsDaemon 1
  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 @LOCALSTATEDIR@/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. ############### This section is just for location-hidden services ###
  50. ## Once you have configured a hidden service, you can look at the
  51. ## contents of the file ".../hidden_service/hostname" for the address
  52. ## to tell people.
  53. ##
  54. ## HiddenServicePort x y:z says to redirect requests on port x to the
  55. ## address y:z.
  56. #HiddenServiceDir @LOCALSTATEDIR@/lib/tor/hidden_service/
  57. #HiddenServicePort 80 127.0.0.1:80
  58. #HiddenServiceDir @LOCALSTATEDIR@/lib/tor/other_hidden_service/
  59. #HiddenServicePort 80 127.0.0.1:80
  60. #HiddenServicePort 22 127.0.0.1:22
  61. ################ This section is just for servers #####################
  62. ## NOTE: If you enable these, you should consider mailing the contents of
  63. ## the "fingerprint" file to the tor-ops, so we have contact info for you
  64. ## in case we need it. See https://www.torproject.org/docs/tor-doc-relay.
  65. ## A unique handle for your server.
  66. #Nickname ididnteditheconfig
  67. ## The IP or FQDN for your server. Leave commented out and Tor will guess.
  68. #Address noname.example.com
  69. ## Define these to limit the bandwidth usage of relayed (server)
  70. ## traffic. Your own traffic is still unthrottled.
  71. ## Note that RelayBandwidthRate must be at least 20 KB.
  72. #RelayBandwidthRate 100 KBytes # Throttle traffic to 100KB/s (800Kbps)
  73. #RelayBandwidthBurst 200 KBytes # But allow bursts up to 200KB/s (1600Kbps)
  74. ## Contact info to be published in the directory, so we can contact you
  75. ## if your server is misconfigured or something else goes wrong.
  76. #ContactInfo Random Person <nobody AT example dot com>
  77. ## You might also include your PGP or GPG fingerprint if you have one:
  78. #ContactInfo 1234D/FFFFFFFF Random Person <nobody AT example dot com>
  79. ## Required: what port to advertise for Tor connections.
  80. #ORPort 9001
  81. ## If you need to listen on a port other than the one advertised
  82. ## in ORPort (e.g. to advertise 443 but bind to 9090), uncomment the
  83. ## line below too. You'll need to do ipchains or other port forwarding
  84. ## yourself to make this work.
  85. #ORListenAddress 0.0.0.0:9090
  86. ## Uncomment this to mirror directory information for others. Please do
  87. ## if you have enough bandwidth.
  88. #DirPort 9030 # what port to advertise for directory connections
  89. ## If you need to listen on a port other than the one advertised
  90. ## in DirPort (e.g. to advertise 80 but bind to 9091), uncomment the line
  91. ## below too. You'll need to do ipchains or other port forwarding yourself
  92. ## to make this work.
  93. #DirListenAddress 0.0.0.0:9091
  94. ## Uncomment this if you run more than one Tor server, and add the
  95. ## nickname of each Tor server you control, even if they're on different
  96. ## networks. You declare it here so Tor clients can avoid using more than
  97. ## one of your servers in a single circuit. See
  98. ## http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#MultipleServers
  99. #MyFamily nickname1,nickname2,...
  100. ## A comma-separated list of exit policies. They're considered first
  101. ## to last, and the first match wins. If you want to _replace_
  102. ## the default exit policy, end this with either a reject *:* or an
  103. ## accept *:*. Otherwise, you're _augmenting_ (prepending to) the
  104. ## default exit policy. Leave commented to just use the default, which is
  105. ## available in the man page or at https://www.torproject.org/documentation.html
  106. ##
  107. ## Look at https://www.torproject.org/faq-abuse.html#TypicalAbuses
  108. ## for issues you might encounter if you use the default exit policy.
  109. ##
  110. ## If certain IPs and ports are blocked externally, e.g. by your firewall,
  111. ## you should update your exit policy to reflect this -- otherwise Tor
  112. ## users will be told that those destinations are down.
  113. ##
  114. #ExitPolicy accept *:6660-6667,reject *:* # allow irc ports but no more
  115. #ExitPolicy accept *:119 # accept nntp as well as default exit policy
  116. #ExitPolicy reject *:* # no exits allowed