1
0

torrc 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. ## Configuration file for a typical tor user
  2. ## Built for Tor version 0.1.0.8-rc
  3. ## (May or may not work for older or newer versions of Tor.)
  4. #
  5. # On Unix, Tor will look for this file in someplace like "~/.tor/torrc" or
  6. # "/etc/torrc"
  7. #
  8. # On Windows, Tor will look for the configuration file in someplace like
  9. # "Application Data\tor\torrc" or "Application Data\<username>\tor\torrc"
  10. #
  11. # With the default Mac OS X installer, Tor will look in ~/.tor/torrc or
  12. # /Library/Tor/torrc
  13. ## Replace this with "SocksPort 0" if you plan to run Tor only as a
  14. ## server, and not make any local application connections yourself.
  15. SocksPort 9050 # what port to open for local application connections
  16. SocksBindAddress 127.0.0.1 # accept connections only from localhost
  17. #SocksBindAddress 192.168.0.1:9100 # listen on a chosen IP/port too
  18. ## Entry policies to allow/deny SOCKS requests based on IP address.
  19. ## First entry that matches wins. If no SocksPolicy is set, we accept
  20. ## all (and only) requests from SocksBindAddress.
  21. #SocksPolicy accept 192.168.0.1/16
  22. #SocksPolicy reject *
  23. ## Allow no-name routers (ones that the dirserver operators don't
  24. ## know anything about) in only these positions in your circuits.
  25. ## Other choices (not advised) are entry,exit,introduction.
  26. AllowUnverifiedNodes middle,rendezvous
  27. ## Logs go to stdout at level "notice" unless redirected by something
  28. ## else, like one of the below lines. You can have as many log lines as
  29. ## you want.
  30. ##
  31. ## Send all messages of level 'notice' or higher to /var/log/tor/notices.log
  32. #Log notice file /var/log/tor/notices.log
  33. ## Send only debug and info messages to /var/log/tor/debug.log
  34. #Log debug-info file /var/log/tor/debug.log
  35. ## Send ONLY debug messages to /var/log/tor/debug.log
  36. #Log debug-debug file /var/log/tor/debug.log
  37. ## To use the system log instead of Tor's logfiles, uncomment these lines:
  38. #Log notice syslog
  39. ## To send all messages to stderr:
  40. #Log debug stderr
  41. ## Uncomment this to start the process in the background... or use
  42. ## --runasdaemon 1 on the command line.
  43. RunAsDaemon 1
  44. ## Tor only trusts directories signed with one of these keys, and
  45. ## uses the given addresses to connect to the trusted directory
  46. ## servers. If no DirServer lines are specified, Tor uses the built-in
  47. ## defaults (moria1, moria2, tor26), so you can leave this alone unless
  48. ## you need to change it.
  49. #DirServer 18.244.0.188:9031 FFCB 46DB 1339 DA84 674C 70D7 CB58 6434 C437 0441
  50. #DirServer 18.244.0.114:80 719B E45D E224 B607 C537 07D0 E214 3E2D 423E 74CF
  51. #DirServer 62.116.124.106:9030 847B 1F85 0344 D787 6491 A548 92F9 0493 4E4E B85D
  52. ## The directory for keeping all the keys/etc. By default, we store
  53. ## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
  54. #DataDirectory /var/lib/tor
  55. ## The port on which Tor will listen for local connections from Tor controller
  56. ## applications, as documented in control-spec.txt. NB: this feature is
  57. ## currently experimental.
  58. #ControlPort 9051
  59. ############### This section is just for location-hidden services ###
  60. ## Look in .../hidden_service/hostname for the address to tell people.
  61. ## HiddenServicePort x y:z says to redirect a port x request from the
  62. ## client to y:z.
  63. #HiddenServiceDir /var/lib/tor/hidden_service/
  64. #HiddenServicePort 80 127.0.0.1:80
  65. #HiddenServiceDir /var/lib/tor/other_hidden_service/
  66. #HiddenServicePort 80 127.0.0.1:80
  67. #HiddenServicePort 22 127.0.0.1:22
  68. #HiddenServiceNodes moria1,moria2
  69. #HiddenServiceExcludeNodes bad,otherbad
  70. ################ This section is just for servers #####################
  71. ## NOTE: If you enable these, you should consider mailing your identity
  72. ## key fingerprint to the tor-ops, so we can add you to the list of
  73. ## servers that clients will trust. See
  74. ## http://tor.eff.org/doc/tor-doc.html#server for details.
  75. ## Required: A unique handle for this server
  76. #Nickname ididnteditheconfig
  77. ## The IP or fqdn for this server. Leave blank and Tor will guess.
  78. #Address noname.example.com
  79. ## Contact info that will be published in the directory, so we can
  80. ## contact you if you need to upgrade or if something goes wrong.
  81. ## This is optional but recommended.
  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
  89. ## the line below. You'll need to do ipchains or other port forwarding
  90. ## yourself to make this work.
  91. #ORBindAddress 0.0.0.0:9090
  92. ## Uncomment this to mirror the directory for others (please do)
  93. #DirPort 9030 # what port to advertise for directory connections
  94. ## If you want to listen on a port other than the one advertised
  95. ## in DirPort (e.g. to advertise 80 but bind 9091), uncomment the line
  96. ## below. You'll need to do ipchains or other port forwarding yourself
  97. ## to make this work.
  98. #DirBindAddress 0.0.0.0:9091
  99. ## A comma-separated list of exit policies. They're considered first
  100. ## to last, and the first match wins. If you want to *replace*
  101. ## the default exit policy, end this with either a reject *:* or an
  102. ## accept *:*. Otherwise, you're *augmenting* (prepending to) the
  103. ## default exit policy. Leave commented to just use the default, which is
  104. ## available in the man page or at http://tor.eff.org/documentation.html
  105. ##
  106. ## Look at http://wiki.noreply.org/noreply/TheOnionRouter/TorFAQ#Abuse
  107. ## for issues you might encounter if you use the default exit policy.
  108. ##
  109. #ExitPolicy accept *:6660-6667,reject *:* # allow irc ports but no more
  110. #ExitPolicy accept *:119 # accept nntp as well as default exit policy
  111. #ExitPolicy reject *:* # middleman only -- no exits allowed
  112. User tor
  113. Group tor
  114. PidFile /var/run/tor.pid