client-ipv6-only-md 1005 B

12345678910111213141516171819202122
  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. ExitRelay6 = Node(tag="r", relay=1, exit=1,
  9. ipv6_addr=os.environ.get('CHUTNEY_LISTEN_ADDRESS_V6',
  10. '[::1]'),
  11. torrc="relay-orport-v6-exit.tmpl")
  12. HS = Node(tag="h", hs=1, torrc="hs.tmpl")
  13. Client6 = Node(tag="c", client=1, torrc="client-only-v6-md.tmpl")
  14. # Since only 25% of relays get the guard flag,
  15. # TestingDirAuthVoteGuard * may need to be used in small networks
  16. # The minimum number of authorities/relays/exits is 3, the minimum path length
  17. # But for some reason, Tor wants 4 "acceptable routers" (Tor bug #20071)
  18. NODES = Authority6.getN(3) + ExitRelay6.getN(1) + HS.getN(1) + Client6.getN(1)
  19. ConfigureNodes(NODES)