summaryrefslogtreecommitdiff
path: root/puppet/modules/site_tor/manifests/disable_exit.pp
blob: 85c24bfcf9a384d9e1804b351dda18f14524e6ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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';
  }
}