[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [chutney/master] Add a minimal network with a hidden service and an exit



commit 72fa2618de0f40eab0ef15e6eca6d642c073c0db
Author: teor <teor2345@xxxxxxxxx>
Date:   Mon Jun 19 17:01:00 2017 +1000

    Add a minimal network with a hidden service and an exit
    
    Implements #22667.
---
 networks/hs-exit-min | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/networks/hs-exit-min b/networks/hs-exit-min
new file mode 100644
index 0000000..4a1705e
--- /dev/null
+++ b/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)

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits