bridges+ipv6+hs-v23 1.2 KB

12345678910111213141516171819202122232425
  1. Require("IPV6")
  2. # By default, Authorities are not configured as exits
  3. Authority = Node(tag="a", authority=1, relay=1, torrc="authority.tmpl")
  4. ExitRelay = Node(tag="r", relay=1, exit=1, torrc="relay.tmpl")
  5. Client = Node(tag="c", client=1, torrc="client.tmpl")
  6. BridgeAuthority = Node(tag="ba", authority=1, bridgeauthority=1,
  7. relay=1, torrc="bridgeauthority.tmpl")
  8. Bridge = Node(tag="br", bridge=1, relay=1, torrc="bridge.tmpl")
  9. BridgeIPv6 = Node(tag="br", bridge=1, relay=1, ipv6_addr="[::1]", torrc="bridge-v6.tmpl")
  10. BridgeClient = Node(tag="bc", client=1, bridgeclient=1, torrc="bridgeclient.tmpl")
  11. HSv2 = Node(tag="h", hs=1, torrc="hs.tmpl")
  12. HSv3 = Node(tag="h", hs=1, torrc="hs-v3.tmpl")
  13. # We need 5 authorities/relays/exits to ensure we can build HS connections
  14. # We put the IPv6 bridge first to ensure that clients try IPv6 before IPv4
  15. # Unfortunately, this does not prevent clients falling back to IPv4
  16. # bridges+ipv6-min only has IPv6 bridges
  17. NODES = Authority.getN(3) + BridgeAuthority.getN(1) + \
  18. ExitRelay.getN(4) + \
  19. BridgeIPv6.getN(1) + Bridge.getN(1) + \
  20. Client.getN(1) + BridgeClient.getN(1) + \
  21. HSv2.getN(1) + HSv3.getN(1)
  22. ConfigureNodes(NODES)