Browse Source

merge torrc.in and sample-server-torrc.in

svn:r858
Roger Dingledine 20 years ago
parent
commit
f53fe3cd7f
2 changed files with 18 additions and 31 deletions
  1. 0 26
      src/config/sample-server-torrc.in
  2. 18 5
      src/config/torrc.in

+ 0 - 26
src/config/sample-server-torrc.in

@@ -1,26 +0,0 @@
-# Configuration file for a typical tor node
-
-# The directory for keeping all the config/data for this node
-DataDirectory @LOCALSTATEDIR@/lib/tor
-# A unique handle for this node
-Nickname moria
-# The fqdn for this node
-Address moria.seul.org
-
-# Ports for various services. Comment out or set to 0 if you're not
-# offering that service.
-ORPort 9001 # listening for cell-speaking connections
-SocksPort 9050 # listening for socks-speaking connections
-#DirPort 0
-
-# List of routers. Tor nodes start out knowing about the directory
-# servers, and from them they get a list of currently up nodes.
-RouterFile @CONFDIR@/dirservers
-
-# A comma-separated list of exit policies. They're considered in
-# order, first match wins.
-ExitPolicy reject 127.0.0.1:*,reject 18.244.0.188:25,accept *:*
-
-# Leave this set, or we'll be treated like a client.
-OnionRouter 1
-

+ 18 - 5
src/config/torrc.in

@@ -1,12 +1,25 @@
-# Configuration file for a typical tor client
-# (listen for applications only)
+# Configuration file for a typical tor user
 
 # List of routers. Tor nodes start out knowing about the directory
 # servers, and from them they get a list of currently up nodes.
 RouterFile @CONFDIR@/dirservers
 
-# Ports for various services. Comment out if you're not running that
-# service.
-#ORPort 9001
+# Comment out if you don't want to allow applications to connect.
 SocksPort 9050
+SocksBindAddress 127.0.0.1 # accept connections only from localhost
+
+##################### Below is just for servers #####################
+
+## The directory for keeping all the keys/etc for this server
+#DataDirectory @LOCALSTATEDIR@/lib/tor
+
+#Nickname moria # A unique handle for this server
+#Address moria.seul.org # The fqdn for this server
+
+#ORPort 9001 # where to listen for cell-speaking connections
+#ORBindAddress 0.0.0.0 # accept connections from anywhere
+
+## A comma-separated list of exit policies. They're considered in
+## order, first match wins.
+#ExitPolicy reject 127.0.0.1:*,accept *:*