torrc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ## Logs go to stdout at level "notice" unless redirected by something
  2. ## else, like one of the below lines. You can have as many Log lines as
  3. ## you want.
  4. ##
  5. ## We advise using "notice" in most cases, since anything more verbose
  6. ## may provide sensitive information to an attacker who obtains the logs.
  7. ##
  8. ## Send all messages of level 'notice' or higher to /var/log/tor/notices.log
  9. # Log notice file /var/log/tor/notices.log
  10. Log notice file /dev/stdout
  11. ## Send every possible message to /var/log/tor/debug.log
  12. #Log debug file /var/log/tor/debug.log
  13. ## Use the system log instead of Tor's logfiles
  14. #Log notice syslog
  15. ## To send all messages to stderr:
  16. #Log debug stderr
  17. ## The directory for keeping all the keys/etc. By default, we store
  18. ## things in $HOME/.tor on Unix, and in Application Data\tor on Windows.
  19. DataDirectory /var/lib/tor
  20. ## The port on which Tor will listen for local connections from Tor
  21. ## controller applications, as documented in control-spec.txt.
  22. #ControlPort 9051
  23. ## If you enable the controlport, be sure to enable one of these
  24. ## authentication methods, to prevent attackers from accessing it.
  25. #HashedControlPassword 16:872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C
  26. #CookieAuthentication 1
  27. ############### This section is just for location-hidden services ###
  28. ## Once you have configured a hidden service, you can look at the
  29. ## contents of the file ".../hidden_service/hostname" for the address
  30. ## to tell people.
  31. ##
  32. ## HiddenServicePort x y:z says to redirect requests on port x to the
  33. ## address y:z.
  34. #HiddenServiceDir /var/lib/tor/hidden_service/
  35. #HiddenServicePort 80 127.0.0.1:80
  36. #HiddenServiceDir /var/lib/tor/other_hidden_service/
  37. #HiddenServicePort 80 127.0.0.1:80
  38. #HiddenServicePort 22 127.0.0.1:22
  39. HiddenServiceDir /var/lib/tor/web/
  40. HiddenServiceVersion 3
  41. HiddenServicePort 80 web:80
  42. ## Configuration options can be imported from files or folders using the %include
  43. ## option with the value being a path. If the path is a file, the options from the
  44. ## file will be parsed as if they were written where the %include option is. If
  45. ## the path is a folder, all files on that folder will be parsed following lexical
  46. ## order. Files starting with a dot are ignored. Files on subfolders are ignored.
  47. ## The %include option can be used recursively.
  48. #%include /etc/torrc.d/
  49. #%include /etc/torrc.custom