bridges+ipv6+hs 1.1 KB

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