common.i 2.1 KB

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