summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/daemon.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp
index ac8529c..0778bce 100644
--- a/manifests/daemon.pp
+++ b/manifests/daemon.pp
@@ -204,5 +204,18 @@ class tor::daemon inherits tor {
}
}
+ # Transparent proxy definition
+ define transparent( $port = 0,
+ $listen_addresses = [],
+ $ensure = present ) {
+
+ concatenated_file_part { "09.transparent.${name}":
+ dir => $tor::daemon::snippet_dir,
+ content => template('tor/torrc.transparent.erb'),
+ owner => 'debian-tor', group => 'debian-tor', mode => 0644,
+ ensure => $ensure,
+ }
+ }
+
}