From 865173d7a126c242f2c2120e0fe95a675d171998 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 13 Dec 2003 02:52:54 +0000 Subject: [PATCH] put the default exit policy in place svn:r900 --- src/config/moria1-orrc | 2 +- src/config/moria2-orrc | 2 +- src/config/moria3-orrc | 2 +- src/config/torrc.in | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config/moria1-orrc b/src/config/moria1-orrc index 5504aae92d..f20f5f4e69 100644 --- a/src/config/moria1-orrc +++ b/src/config/moria1-orrc @@ -8,5 +8,5 @@ DirPort 9031 # List of routers RouterFile ../config/dirservers -ExitPolicy reject 127.0.0.1:*,reject 18.244.0.188:25,accept *:* +ExitPolicy reject 127.0.0.0/8,reject 192.168.0.0/16,reject 10.0.0.0/8,reject 172.16.0.0/12,accept *:20-22,accept *:53,accept *:79-80,accept *:110,accept *:143,accept *:443,accept *:873,accept *:1024-65535,reject *:* diff --git a/src/config/moria2-orrc b/src/config/moria2-orrc index 2d8303efbe..be53688007 100644 --- a/src/config/moria2-orrc +++ b/src/config/moria2-orrc @@ -8,5 +8,5 @@ DirPort 9032 # List of routers RouterFile ../config/dirservers -ExitPolicy reject 127.0.0.1:*,reject 18.244.0.188:25,accept *:* +ExitPolicy reject 127.0.0.0/8,reject 192.168.0.0/16,reject 10.0.0.0/8,reject 172.16.0.0/12,accept *:20-22,accept *:53,accept *:79-80,accept *:110,accept *:143,accept *:443,accept *:873,accept *:1024-65535,reject *:* diff --git a/src/config/moria3-orrc b/src/config/moria3-orrc index da4ed37167..b80fe2f23a 100644 --- a/src/config/moria3-orrc +++ b/src/config/moria3-orrc @@ -8,5 +8,5 @@ DirPort 9033 # List of routers RouterFile ../config/dirservers -ExitPolicy reject 127.0.0.1:*,reject 18.244.0.188:25,accept *:* +ExitPolicy reject 127.0.0.0/8,reject 192.168.0.0/16,reject 10.0.0.0/8,reject 172.16.0.0/12,accept *:20-22,accept *:53,accept *:79-80,accept *:110,accept *:143,accept *:443,accept *:873,accept *:1024-65535,reject *:* diff --git a/src/config/torrc.in b/src/config/torrc.in index f3b63efa0a..4409f1c3fd 100644 --- a/src/config/torrc.in +++ b/src/config/torrc.in @@ -21,5 +21,5 @@ SocksBindAddress 127.0.0.1 # accept connections only from localhost ## A comma-separated list of exit policies. They're considered in ## order, first match wins. -#ExitPolicy reject 127.0.0.1:*,accept *:* +#ExitPolicy reject 127.0.0.0/8,reject 192.168.0.0/16,reject 10.0.0.0/8,reject 172.16.0.0/12,accept *:20-22,accept *:53,accept *:79-80,accept *:110,accept *:143,accept *:443,accept *:873,accept *:1024-65535,reject *:*