TestingTorNetwork 1

## Comprehensive Bootstrap Testing Options ##
# These typically launch a working minimal Tor network in 25s-30s,
# and a working HS Tor network in 40-45s.
# See authority.tmpl for a partial explanation
#AssumeReachable 0
#Default PathsNeededToBuildCircuits 0.6
#Disable TestingDirAuthVoteExit
#Disable TestingDirAuthVoteHSDir
#Default V3AuthNIntervalsValid 3

## Rapid Bootstrap Testing Options ##
# These typically launch a working minimal Tor network in 6s-10s
# These parameters make tor networks bootstrap fast,
# but can cause consensus instability and network unreliability
# (Some are also bad for security.)
AssumeReachable 1
PathsNeededToBuildCircuits 0.25
TestingDirAuthVoteExit *
TestingDirAuthVoteHSDir *
V3AuthNIntervalsValid 2

## Always On Testing Options ##
# We enable TestingDirAuthVoteGuard to avoid Guard stability requirements
TestingDirAuthVoteGuard *
# We set TestingMinExitFlagThreshold to 0 to avoid Exit bandwidth requirements
TestingMinExitFlagThreshold 0
# VoteOnHidServDirectoriesV2 needs to be set for HSDirs to get the HSDir flag
#Default VoteOnHidServDirectoriesV2 1

## Options that we always want to test ##
Sandbox 1

DataDirectory /Users/base/chutney/net/nodes/002r
RunAsDaemon 1
ConnLimit 60
Nickname test002r
# Let tor close connections gracefully before exiting
ShutdownWaitLength 2
DisableDebuggerAttachment 0

ControlPort 8002
# Use ControlSocket rather than ControlPort unix: to support older tors
ControlSocket /Users/base/chutney/net/nodes/002r/control
CookieAuthentication 1
PidFile /Users/base/chutney/net/nodes/002r/pid
# Ask all child tor processes to exit when chutney's test-network.sh exits
# (if the CHUTNEY_*_TIME options leave the network running, this option is
# disabled)
__OwningControllerProcess 48303

Log notice file /Users/base/chutney/net/nodes/002r/notice.log
Log info file /Users/base/chutney/net/nodes/002r/info.log
# Turn this off to save space
#Log debug file /Users/base/chutney/net/nodes/002r/debug.log
ProtocolWarnings 1
SafeLogging 0
LogTimeGranularity 1

DirAuthority test000a orport=5000 no-v2 hs v3ident=9CE11A0F579156B6FC546B9EA9AFA27F9115EE77 127.0.0.1:7000 BCB3E1921440FFD6AC331A2A3357F28CF059A774
DirAuthority test001a orport=5001 no-v2 hs v3ident=1B67170959D641A52D8D65F786560AC910C5445C 127.0.0.1:7001 5D80D3F833EC89C1607B6B4EA4439CF3873FEBE5


SocksPort 0
OrPort 5002
Address 127.0.0.1

# Must be included before exit-v{4,6}.i
ExitRelay 0

# These options are set here so they apply to IPv4 and IPv6 Exits
#
# Tell Exits to avoid using DNS: otherwise, chutney will fail if DNS fails
# (Chutney only accesses 127.0.0.1 and ::1, so it doesn't need DNS)
ServerDNSDetectHijacking 0
ServerDNSTestAddresses
# If this option is /dev/null, or any other empty or unreadable file, tor exits
# will not use DNS. Otherwise, DNS is enabled with this config.
# (If the following line is commented out, tor uses /etc/resolv.conf.)
ServerDNSResolvConfFile /dev/null

DirPort 7002


# An exit relay that can exit to IPv6 localhost only
# (newer versions of tor need this to be explicitly configured)

# Must be included after relay-non-exit.tmpl
ExitRelay 1

# 1. Allow exiting to IPv4 localhost and private networks by default
# -------------------------------------------------------------

# Each IPv4 tor instance is configured with Address 127.0.0.1 by default
ExitPolicy accept 127.0.0.0/8:*

# If you only want tor to connect to localhost, disable these lines:
# This may cause network failures in some circumstances
ExitPolicyRejectPrivate 0
ExitPolicy accept private:*

# 2. Optionally: Allow exiting to the entire IPv4 internet on HTTP(S)
# -------------------------------------------------------------------

# 2. or 3. are required to work around #11264 with microdescriptors enabled
# "The core of this issue appears to be that the Exit flag code is
#  optimistic (just needs a /8 and 2 ports), but the microdescriptor
#  exit policy summary code is pessimistic (needs the entire internet)."
# An alternative is to disable microdescriptors and use regular
# descriptors, as they do not suffer from this issue.
#ExitPolicy accept *:80
#ExitPolicy accept *:443

# 3. Optionally: Accept all IPv4 addresses, that is, the public internet
# ----------------------------------------------------------------------
ExitPolicy accept *:*

# 4. Finally, reject all IPv4 addresses which haven't been permitted
# ------------------------------------------------------------------
ExitPolicy reject *:*

