single-onion-ipv6-md 1.2 KB

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