bridges+hs 877 B

123456789101112131415161718192021
  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", 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. BridgeClient = Node(tag="bc", torrc="bridgeclient.tmpl")
  9. HS = Node(tag="h", hs=1, torrc="hs.tmpl")
  10. # We need 8 authorities/relays/exits to ensure at least 2 get the guard flag
  11. # in 0.2.6
  12. # We need 5 authorities/relays/exits to ensure we can build HS connections
  13. NODES = Authority.getN(3) + BridgeAuthority.getN(1) + \
  14. ExitRelay.getN(4) + \
  15. Bridge.getN(1) + \
  16. Client.getN(1) + BridgeClient.getN(1) + \
  17. HS.getN(1)
  18. ConfigureNodes(NODES)