single-onion-v23 836 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", client=1, torrc="client.tmpl")
  5. SingleOnionv2 = Node(tag="h", hs=1, torrc="single-onion.tmpl")
  6. SingleOnionv3 = Node(tag="h", hs=1, torrc="single-onion-v3.tmpl")
  7. # Since only 25% of relays get the guard flag,
  8. # TestingDirAuthVoteGuard * may need to be used in small networks
  9. # A hidden service needs 5 authorities/relays to ensure it can build HS
  10. # connections:
  11. # a minimum path length of 3, plus the client-nominated rendezvous point,
  12. # plus a seperate introduction point
  13. NODES = Authority.getN(2) + NonExitRelay.getN(3) + \
  14. Client.getN(1) + SingleOnionv2.getN(1) + SingleOnionv3.getN(1)
  15. ConfigureNodes(NODES)