common.i 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. TestingTorNetwork 1
  2. ## Comprehensive Bootstrap Testing Options ##
  3. # These typically launch a working minimal Tor network in 25s-30s,
  4. # and a working HS Tor network in 40-45s.
  5. # See authority.tmpl for a partial explanation
  6. #AssumeReachable 0
  7. #Default PathsNeededToBuildCircuits 0.6
  8. #Disable TestingDirAuthVoteExit
  9. #Disable TestingDirAuthVoteHSDir
  10. #Default V3AuthNIntervalsValid 3
  11. ## Rapid Bootstrap Testing Options ##
  12. # These typically launch a working minimal Tor network in 6s-10s
  13. # These parameters make tor networks bootstrap fast,
  14. # but can cause consensus instability and network unreliability
  15. # (Some are also bad for security.)
  16. AssumeReachable 1
  17. # We need at least 3 descriptors to build circuits.
  18. # In a 3 relay network, 0.67 > 2/3, so we try hard to get 3 descriptors.
  19. # In larger networks, 0.67 > 2/N, so we try hard to get >=3 descriptors.
  20. PathsNeededToBuildCircuits 0.67
  21. TestingDirAuthVoteExit *
  22. TestingDirAuthVoteHSDir *
  23. V3AuthNIntervalsValid 2
  24. ## Always On Testing Options ##
  25. # We enable TestingDirAuthVoteGuard to avoid Guard stability requirements
  26. TestingDirAuthVoteGuard *
  27. # We set TestingMinExitFlagThreshold to 0 to avoid Exit bandwidth requirements
  28. TestingMinExitFlagThreshold 0
  29. # VoteOnHidServDirectoriesV2 needs to be set for HSDirs to get the HSDir flag
  30. #Default VoteOnHidServDirectoriesV2 1
  31. ## Options that we always want to test ##
  32. Sandbox 1
  33. DataDirectory $dir
  34. RunAsDaemon 1
  35. ConnLimit $connlimit
  36. Nickname $nick
  37. # Let tor close connections gracefully before exiting
  38. ShutdownWaitLength 2
  39. DisableDebuggerAttachment 0
  40. ControlPort $controlport
  41. # Use ControlSocket rather than ControlPort unix: to support older tors
  42. ControlSocket ${dir}/control
  43. CookieAuthentication 1
  44. PidFile ${dir}/pid
  45. # Ask all child tor processes to exit when chutney's test-network.sh exits
  46. # (if the CHUTNEY_*_TIME options leave the network running, this option is
  47. # disabled)
  48. ${owning_controller_process}
  49. Log notice file ${dir}/notice.log
  50. Log info file ${dir}/info.log
  51. # Turn this off to save space
  52. #Log debug file ${dir}/debug.log
  53. ProtocolWarnings 1
  54. SafeLogging 0
  55. LogTimeGranularity 1
  56. ${authorities}