single-onion-indirect 959 B

1234567891011121314151617181920
  1. # Check that a single onion service makes 3-hop connections to
  2. # unreachable intro points and rend points, by forcing it to connect
  3. # through only one guard
  4. # It should act exactly like a hidden service, except that it might make
  5. # direct connections to that one guard if that guard is also intro or rend
  6. # By default, Authorities are not configured as exits
  7. Authority = Node(tag="a", authority=1, relay=1, torrc="authority.tmpl")
  8. NonExitRelay = Node(tag="r", relay=1, torrc="relay-non-exit.tmpl")
  9. Client = Node(tag="c", client=1, torrc="client.tmpl")
  10. SingleOnionIndirect = Node(tag="h", hs=1, torrc="single-onion-indirect.tmpl")
  11. # A hidden service needs 5 authorities/relays to ensure it can build HS
  12. # connections:
  13. # a minimum path length of 3, plus the client-nominated rendezvous point,
  14. # plus a seperate introduction point
  15. NODES = Authority.getN(2) + NonExitRelay.getN(3) + \
  16. Client.getN(1) + SingleOnionIndirect.getN(1)
  17. ConfigureNodes(NODES)