aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-10-22 07:56:11 +0000
committerRoger Dingledine <arma@torproject.org>2003-10-22 07:56:11 +0000
commitc35fc271d2e0c2817407d48721debbb29a94705f (patch)
tree614982f85ff9913ad5704e4891f94f0648f75aa0 /src/config
parentc6b442a346ac7e096198b9f89368239820290acd (diff)
downloadtor-c35fc271d2e0c2817407d48721debbb29a94705f.tar
tor-c35fc271d2e0c2817407d48721debbb29a94705f.tar.gz
move default exit policy into config files
svn:r654
Diffstat (limited to 'src/config')
-rw-r--r--src/config/moria1-orrc2
-rw-r--r--src/config/moria2-orrc2
-rw-r--r--src/config/moria3-orrc2
-rw-r--r--src/config/sample-server-torrc.in16
4 files changed, 16 insertions, 6 deletions
diff --git a/src/config/moria1-orrc b/src/config/moria1-orrc
index 8ba5ad45a..3e9ed0095 100644
--- a/src/config/moria1-orrc
+++ b/src/config/moria1-orrc
@@ -10,3 +10,5 @@ OnionRouter 1
# List of routers
RouterFile ../config/dirservers
+ExitPolicy reject 127.0.0.1:*,reject 18.244.0.188:25,accept *:*
+
diff --git a/src/config/moria2-orrc b/src/config/moria2-orrc
index aa956c0a1..cec77d67d 100644
--- a/src/config/moria2-orrc
+++ b/src/config/moria2-orrc
@@ -10,3 +10,5 @@ OnionRouter 1
# List of routers
RouterFile ../config/dirservers
+ExitPolicy reject 127.0.0.1:*,reject 18.244.0.188:25,accept *:*
+
diff --git a/src/config/moria3-orrc b/src/config/moria3-orrc
index 3610cd28a..1b23f0c8d 100644
--- a/src/config/moria3-orrc
+++ b/src/config/moria3-orrc
@@ -10,3 +10,5 @@ OnionRouter 1
# List of routers
RouterFile ../config/dirservers
+ExitPolicy reject 127.0.0.1:*,reject 18.244.0.188:25,accept *:*
+
diff --git a/src/config/sample-server-torrc.in b/src/config/sample-server-torrc.in
index 59a88460a..eef8c5573 100644
--- a/src/config/sample-server-torrc.in
+++ b/src/config/sample-server-torrc.in
@@ -3,20 +3,24 @@
# The directory for keeping all the config/data for this node
DataDirectory @LOCALSTATEDIR@/lib/tor
# A unique handle for this node
-Nickname moria4
+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 9004 # listening for cell-speaking connections
-SocksPort 9024 # listening for socks-speaking connections
+ORPort 9001 # listening for cell-speaking connections
+SocksPort 9050 # listening for socks-speaking connections
#DirPort 0
-# Leave this set, or we'll be treated like a client.
-OnionRouter 1
-
# 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
+