hs-v3-intro 792 B

123456789101112131415161718
  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. HS10 = Node(tag="h", hs=1, torrc="hs-v3-10.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. # A hidden service with 10 intro points actually tries 12, then repurposes 2
  13. NODES = Authority.getN(2) + NonExitRelay.getN(10) + \
  14. Client.getN(1) + HS10.getN(2)
  15. ConfigureNodes(NODES)