[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [chutney/master] Make non-exit relays actually not be exits



commit 12eceea1e080b8dfcdc5d4f7edf76c641f1c78ea
Author: teor <teor2345@xxxxxxxxx>
Date:   Thu Feb 23 16:57:49 2017 +1100

    Make non-exit relays actually not be exits
    
    Tor's default is to exit based on the exit policy, but log a warning if
    ExitRelay is not set. (Chutney also had some configs using the default exit
    policy, which does not exit to localhost, so chutney could not use it to
    verify.)
    
    Fixes #17090.
---
 torrc_templates/exit-v4.i           | 2 ++
 torrc_templates/exit-v6.i           | 2 ++
 torrc_templates/relay-non-exit.tmpl | 3 +++
 3 files changed, 7 insertions(+)

diff --git a/torrc_templates/exit-v4.i b/torrc_templates/exit-v4.i
index 1c33a83..caec030 100644
--- a/torrc_templates/exit-v4.i
+++ b/torrc_templates/exit-v4.i
@@ -1,3 +1,5 @@
+# Must be included after relay-non-exit.tmpl
+ExitRelay 1
 
 # 1. Allow exiting to IPv4 localhost and private networks by default
 # -------------------------------------------------------------
diff --git a/torrc_templates/exit-v6.i b/torrc_templates/exit-v6.i
index 8ba76a3..bac1ba6 100644
--- a/torrc_templates/exit-v6.i
+++ b/torrc_templates/exit-v6.i
@@ -1,3 +1,5 @@
+# Must be included after relay-non-exit.tmpl
+ExitRelay 1
 
 # 1. Allow exiting to IPv6 localhost and private networks by default
 # ------------------------------------------------------------------
diff --git a/torrc_templates/relay-non-exit.tmpl b/torrc_templates/relay-non-exit.tmpl
index bf870a6..b19b155 100644
--- a/torrc_templates/relay-non-exit.tmpl
+++ b/torrc_templates/relay-non-exit.tmpl
@@ -4,6 +4,9 @@ OrPort $orport
 Address $ip
 DirPort $dirport
 
+# Must be included before exit-v{4,6}.i
+ExitRelay 0
+
 #NOTE: Setting TestingServerConsensusDownloadSchedule doesn't
 #      help -- dl_stats.schedule is not DL_SCHED_CONSENSUS
 #      at boostrap time.



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits