From c35fc271d2e0c2817407d48721debbb29a94705f Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 22 Oct 2003 07:56:11 +0000 Subject: [PATCH] move default exit policy into config files svn:r654 --- src/config/moria1-orrc | 2 ++ src/config/moria2-orrc | 2 ++ src/config/moria3-orrc | 2 ++ src/config/sample-server-torrc.in | 16 ++++++++++------ 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/config/moria1-orrc b/src/config/moria1-orrc index 8ba5ad45a4..3e9ed00956 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 aa956c0a12..cec77d67d1 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 3610cd28a5..1b23f0c8df 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 59a88460a1..eef8c5573c 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 +