Browse Source

Add HS torrc template and network configuration

This adds a network with an HS service bound to port 6000 that serves
port 22 on your local machine.

The hidden service is node test025h and the hostname can be found in
"$dir/hidden_service/hostname".

To start the network, use the "hs" network.

Fixes #13934

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
David Goulet 9 years ago
parent
commit
a49e68bd0a
2 changed files with 17 additions and 0 deletions
  1. 9 0
      networks/hs
  2. 8 0
      torrc_templates/hs.tmpl

+ 9 - 0
networks/hs

@@ -0,0 +1,9 @@
+Authority = Node(tag="a", authority=1, relay=1, torrc="authority.tmpl")
+Middle = Node(tag="m", relay=1, torrc="relay-non-exit.tmpl")
+Relay = Node(tag="r", relay=1, torrc="relay.tmpl")
+Client = Node(tag="c", torrc="client.tmpl")
+HS = Node(tag="h", torrc="hs.tmpl")
+
+NODES = Authority.getN(4) + Middle.getN(10) + Relay.getN(6) + Client.getN(5) + HS.getN(1)
+
+ConfigureNodes(NODES)

+ 8 - 0
torrc_templates/hs.tmpl

@@ -0,0 +1,8 @@
+${include:common.i}
+SocksPort 0
+Address $ip
+
+HiddenServiceDir ${dir}/hidden_service
+# SSH is usually a popular service that is running. This is really just to make
+# a quick way to test the HS with torsocks and have an app at the other end.
+HiddenServicePort 6000 127.0.0.1:22