aboutsummaryrefslogtreecommitdiff
path: root/torrc_templates
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-02-27 21:13:25 -0500
committerNick Mathewson <nickm@torproject.org>2011-02-27 21:13:25 -0500
commit92c590397d7df286370ca30a78bfe4c69e5eff4b (patch)
treebfa6aa3b69c92ee33c1978a5e016b10b3a099bfe /torrc_templates
downloadchutney-92c590397d7df286370ca30a78bfe4c69e5eff4b.tar
chutney-92c590397d7df286370ca30a78bfe4c69e5eff4b.tar.gz
Initial commit for 5th-gen tor privnet script
Diffstat (limited to 'torrc_templates')
-rw-r--r--torrc_templates/authority.tmpl5
-rw-r--r--torrc_templates/client.tmpl2
-rw-r--r--torrc_templates/common.i11
-rw-r--r--torrc_templates/relay.tmpl5
4 files changed, 23 insertions, 0 deletions
diff --git a/torrc_templates/authority.tmpl b/torrc_templates/authority.tmpl
new file mode 100644
index 0000000..6e18d86
--- /dev/null
+++ b/torrc_templates/authority.tmpl
@@ -0,0 +1,5 @@
+${include:relay.tmpl}
+AuthoritativeDirectory 1
+V3AuthoritativeDirectory 1
+ContactInfo auth${nodenum}@test.test
+ExitPolicy reject *:*
diff --git a/torrc_templates/client.tmpl b/torrc_templates/client.tmpl
new file mode 100644
index 0000000..aa86c01
--- /dev/null
+++ b/torrc_templates/client.tmpl
@@ -0,0 +1,2 @@
+${include:common.i}
+SocksPort $socksport
diff --git a/torrc_templates/common.i b/torrc_templates/common.i
new file mode 100644
index 0000000..3a50f3a
--- /dev/null
+++ b/torrc_templates/common.i
@@ -0,0 +1,11 @@
+TestingTorNetwork 1
+DataDirectory $dir
+RunAsDaemon 1
+ConnLimit $connlimit
+Nickname $nick
+ShutdownWaitLength 0
+PidFile pid
+Log notice file ${dir}/notice.log
+ControlPort $controlport
+${dirservers}
+
diff --git a/torrc_templates/relay.tmpl b/torrc_templates/relay.tmpl
new file mode 100644
index 0000000..09dd1f0
--- /dev/null
+++ b/torrc_templates/relay.tmpl
@@ -0,0 +1,5 @@
+${include:common.i}
+SocksPort 0
+OrPort $orport
+Address $ip
+DirPort $dirport