diff options
author | intrigeri <intrigeri@boum.org> | 2010-12-17 19:39:44 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-12-17 19:39:44 +0100 |
commit | b39b5c24910f8816c3b9e6d2a0211ad892b36aa6 (patch) | |
tree | e0b7d6044597a4dc4a70c377274bc0075667ea21 /manifests/rules/torify.pp | |
parent | 3691f9c09adbb9dbde9bb945b0f4da0e5a525ced (diff) | |
download | puppet-shorewall-b39b5c24910f8816c3b9e6d2a0211ad892b36aa6.tar.gz puppet-shorewall-b39b5c24910f8816c3b9e6d2a0211ad892b36aa6.tar.bz2 |
Add support for Tor-ified traffic.
Diffstat (limited to 'manifests/rules/torify.pp')
-rw-r--r-- | manifests/rules/torify.pp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/manifests/rules/torify.pp b/manifests/rules/torify.pp new file mode 100644 index 0000000..f6e62d8 --- /dev/null +++ b/manifests/rules/torify.pp @@ -0,0 +1,29 @@ +# shorewall::rules::torify +# +# Note: shorewall::rules::torify cannot be used several times with the +# same user listed in the $users array. This restriction applies to +# using this define multiple times without providing a $users +# parameter. +# +# Parameters: +# +# - users: every element of this array must be valid in shorewall +# rules user/group column. +# - destinations: every element of this array must be valid in +# shorewall rules original destination column. + +define shorewall::rules::torify( + $users = ['-'], + $destinations = ['-'], + $allow_rfc1918 = true +){ + + $originaldest = join($destinations,',') + + shorewall::rules::torify::user { + $users: + originaldest => $originaldest, + allow_rfc1918 => $allow_rfc1918; + } + +} |