From 911cc18e594bb5a3ab642ebb24615a0447050c32 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 20 Jun 2012 14:24:54 -0400 Subject: Revert "Support exempting some users from torification measures." This reverts commit 6cb88973f53aa7d92414797dd21952c1c1d5da98. --- manifests/rules/torify/allow_tor_user.pp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 manifests/rules/torify/allow_tor_user.pp (limited to 'manifests/rules/torify/allow_tor_user.pp') diff --git a/manifests/rules/torify/allow_tor_user.pp b/manifests/rules/torify/allow_tor_user.pp new file mode 100644 index 0000000..f44c1f0 --- /dev/null +++ b/manifests/rules/torify/allow_tor_user.pp @@ -0,0 +1,15 @@ +class shorewall::rules::torify::allow_tor_user { + + $whitelist_rule = "allow-from-tor-user" + if !defined(Shorewall::Rule["$whitelist_rule"]) { + shorewall::rule { + "$whitelist_rule": + source => '$FW', + destination => 'all', + user => $shorewall::tor_user, + order => 101, + action => 'ACCEPT'; + } + } + +} -- cgit v1.2.3