Bladeren bron

Add an hs-intro network

This network has different hidden service intro point counts.

Implements #22599.
teor 7 jaren geleden
bovenliggende
commit
cc9de2764a

+ 39 - 0
networks/hs-intro

@@ -0,0 +1,39 @@
+# By default, Authorities are not configured as exits
+Authority = Node(tag="a", authority=1, relay=1, torrc="authority.tmpl")
+NonExitRelay = Node(tag="r", relay=1, torrc="relay-non-exit.tmpl")
+Client = Node(tag="c", torrc="client.tmpl")
+HS0 = Node(tag="h", hs=1, torrc="hs0.tmpl")
+HS1 = Node(tag="h", hs=1, torrc="hs1.tmpl")
+HS2 = Node(tag="h", hs=1, torrc="hs2.tmpl")
+HS3 = Node(tag="h", hs=1, torrc="hs3.tmpl")
+HS4 = Node(tag="h", hs=1, torrc="hs4.tmpl")
+HS5 = Node(tag="h", hs=1, torrc="hs5.tmpl")
+HS6 = Node(tag="h", hs=1, torrc="hs6.tmpl")
+HS7 = Node(tag="h", hs=1, torrc="hs7.tmpl")
+HS8 = Node(tag="h", hs=1, torrc="hs8.tmpl")
+HS9 = Node(tag="h", hs=1, torrc="hs9.tmpl")
+HS10 = Node(tag="h", hs=1, torrc="hs10.tmpl")
+
+# Since only 25% of relays get the guard flag,
+# TestingDirAuthVoteGuard * may need to be used in small networks
+
+# A hidden service needs 5 authorities/relays to ensure it can build HS
+# connections:
+# a minimum path length of 3, plus the client-nominated rendezvous point,
+# plus a seperate introduction point
+# A hidden service with 10 intro points actually tries 12, then repurposes 2
+NODES = Authority.getN(2) + NonExitRelay.getN(10) + \
+        Client.getN(1) + \
+        HS0.getN(2) + \
+        HS1.getN(2) + \
+        HS2.getN(2) + \
+        HS3.getN(2) + \
+        HS4.getN(2) + \
+        HS5.getN(2) + \
+        HS6.getN(2) + \
+        HS7.getN(2) + \
+        HS8.getN(2) + \
+        HS9.getN(2) + \
+        HS10.getN(2)
+
+ConfigureNodes(NODES)

+ 2 - 0
torrc_templates/hs0.tmpl

@@ -0,0 +1,2 @@
+${include:hs.tmpl}
+HiddenServiceNumIntroductionPoints 0

+ 2 - 0
torrc_templates/hs1.tmpl

@@ -0,0 +1,2 @@
+${include:hs.tmpl}
+HiddenServiceNumIntroductionPoints 1

+ 2 - 0
torrc_templates/hs10.tmpl

@@ -0,0 +1,2 @@
+${include:hs.tmpl}
+HiddenServiceNumIntroductionPoints 10

+ 2 - 0
torrc_templates/hs2.tmpl

@@ -0,0 +1,2 @@
+${include:hs.tmpl}
+HiddenServiceNumIntroductionPoints 2

+ 2 - 0
torrc_templates/hs3.tmpl

@@ -0,0 +1,2 @@
+${include:hs.tmpl}
+HiddenServiceNumIntroductionPoints 3

+ 2 - 0
torrc_templates/hs4.tmpl

@@ -0,0 +1,2 @@
+${include:hs.tmpl}
+HiddenServiceNumIntroductionPoints 4

+ 2 - 0
torrc_templates/hs5.tmpl

@@ -0,0 +1,2 @@
+${include:hs.tmpl}
+HiddenServiceNumIntroductionPoints 5

+ 2 - 0
torrc_templates/hs6.tmpl

@@ -0,0 +1,2 @@
+${include:hs.tmpl}
+HiddenServiceNumIntroductionPoints 6

+ 2 - 0
torrc_templates/hs7.tmpl

@@ -0,0 +1,2 @@
+${include:hs.tmpl}
+HiddenServiceNumIntroductionPoints 7

+ 2 - 0
torrc_templates/hs8.tmpl

@@ -0,0 +1,2 @@
+${include:hs.tmpl}
+HiddenServiceNumIntroductionPoints 8

+ 2 - 0
torrc_templates/hs9.tmpl

@@ -0,0 +1,2 @@
+${include:hs.tmpl}
+HiddenServiceNumIntroductionPoints 9