hs-min 828 B

12345678910111213141516171819
  1. # By default, Authorities are not configured as exits
  2. Authority = Node(tag="a", authority=1, relay=1, torrc="authority.tmpl")
  3. NonExitRelay = Node(tag="r", relay=1, torrc="relay-non-exit.tmpl")
  4. Client = Node(tag="c", torrc="client.tmpl")
  5. HS = Node(tag="h", hs=1, torrc="hs.tmpl")
  6. # Since only 25% of relays get the guard flag,
  7. # TestingDirAuthVoteGuard * may need to be used in small networks
  8. # A hidden service needs 5 authorities/relays to ensure it can build HS
  9. # connections:
  10. # a minimum path length of 3, plus the client-nominated rendezvous point,
  11. # plus a seperate introduction point
  12. # But we use 6 HSDirs: when the hidden service is not up, the client fails to
  13. # find the descriptor at the first 3-5 HSDirs
  14. NODES = Authority.getN(3) + NonExitRelay.getN(3) + \
  15. Client.getN(1) + HS.getN(1)
  16. ConfigureNodes(NODES)