summaryrefslogtreecommitdiff
path: root/puppet/modules/tor/templates/torrc.exit_policy.erb
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/tor/templates/torrc.exit_policy.erb')
-rw-r--r--puppet/modules/tor/templates/torrc.exit_policy.erb11
1 files changed, 11 insertions, 0 deletions
diff --git a/puppet/modules/tor/templates/torrc.exit_policy.erb b/puppet/modules/tor/templates/torrc.exit_policy.erb
new file mode 100644
index 00000000..a30d43b8
--- /dev/null
+++ b/puppet/modules/tor/templates/torrc.exit_policy.erb
@@ -0,0 +1,11 @@
+# exit policies: <%= @name %>
+<% if @reject_private != '1' -%>
+ExitPolicyRejectPrivate <%= @reject_private %>
+<% end -%>
+<% @accept.each do |policy| -%>
+ExitPolicy accept <%= policy %>
+<% end -%>
+<% @reject.each do |policy| -%>
+ExitPolicy reject <%= policy %>
+<% end -%>
+