hs-client-ipv6-md 1.0 KB

123456789101112131415161718192021222324
  1. import os
  2. # By default, Authorities are not configured as exits
  3. Authority6 = Node(tag="a", authority=1, relay=1,
  4. ipv6_addr=os.environ.get('CHUTNEY_LISTEN_ADDRESS_V6',
  5. '[::1]'),
  6. torrc="authority-orport-v6.tmpl")
  7. NonExitRelay6 = Node(tag="r", relay=1,
  8. ipv6_addr=os.environ.get('CHUTNEY_LISTEN_ADDRESS_V6',
  9. '[::1]'),
  10. torrc="relay-orport-v6-non-exit.tmpl")
  11. Client6 = Node(tag="c", client=1, torrc="client-only-v6-md.tmpl")
  12. HS = Node(tag="h", hs=1, torrc="hs.tmpl")
  13. # Since only 25% of relays get the guard flag,
  14. # TestingDirAuthVoteGuard * may need to be used in small networks
  15. # A hidden service needs 5 authorities/relays to ensure it can build HS
  16. # connections:
  17. # a minimum path length of 3, plus the client-nominated rendezvous point,
  18. # plus a seperate introduction point
  19. NODES = Authority6.getN(2) + NonExitRelay6.getN(3) + \
  20. Client6.getN(1) + HS.getN(1)
  21. ConfigureNodes(NODES)