torrc 5.4 KB

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