single-onion-ipv6 1.1 KB

12345678910111213141516171819202122232425
  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. Client = Node(tag="c", torrc="client.tmpl")
  12. Client6 = Node(tag="c", torrc="client-only-v6.tmpl")
  13. SingleOnion6 = Node(tag="h", hs=1, torrc="single-onion-only-v6.tmpl")
  14. # Since only 25% of relays get the guard flag,
  15. # TestingDirAuthVoteGuard * may need to be used in small networks
  16. # A hidden service needs 5 authorities/relays to ensure it can build HS
  17. # connections:
  18. # a minimum path length of 3, plus the client-nominated rendezvous point,
  19. # plus a seperate introduction point
  20. NODES = Authority6.getN(2) + NonExitRelay6.getN(3) + \
  21. Client.getN(1) + Client6.getN(1) + SingleOnion6.getN(1)
  22. ConfigureNodes(NODES)