summaryrefslogtreecommitdiff
path: root/puppet/modules/site_tor/manifests/disable_exit.pp
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/site_tor/manifests/disable_exit.pp')
-rw-r--r--puppet/modules/site_tor/manifests/disable_exit.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/puppet/modules/site_tor/manifests/disable_exit.pp b/puppet/modules/site_tor/manifests/disable_exit.pp
index 078f80ae..85c24bfc 100644
--- a/puppet/modules/site_tor/manifests/disable_exit.pp
+++ b/puppet/modules/site_tor/manifests/disable_exit.pp
@@ -1,7 +1,13 @@
+# ensure that the tor relay is not configured as an exit node
class site_tor::disable_exit {
tor::daemon::exit_policy {
'no_exit_at_all':
reject => [ '*:*' ];
}
+# In a future version of Tor, ExitRelay 0 may become the default when no ExitPolicy is given.
+ tor::daemon::snippet {
+ 'disable_exit':
+ content => 'ExitRelay 0';
+ }
}