Explorar o código

Add a minimal network with a hidden service and an exit

Implements #22667.
teor %!s(int64=7) %!d(string=hai) anos
pai
achega
72fa2618de
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      networks/hs-exit-min

+ 13 - 0
networks/hs-exit-min

@@ -0,0 +1,13 @@
+# By default, Authorities are not configured as exits
+Authority = Node(tag="a", authority=1, relay=1, torrc="authority.tmpl")
+ExitRelay = Node(tag="r", relay=1, exit=1, torrc="relay.tmpl")
+Client = Node(tag="c", torrc="client.tmpl")
+HS = Node(tag="h", hs=1, torrc="hs.tmpl")
+
+# We need 8 authorities/relays/exits to ensure at least 2 get the guard flag
+# in 0.2.6
+# We need 5 authorities/relays/exits to ensure we can build HS connections
+NODES = Authority.getN(2) + ExitRelay.getN(3) + \
+        Client.getN(1) + HS.getN(1)
+
+ConfigureNodes(NODES)