aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-07-17 14:00:05 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-07-17 14:00:05 -0300
commitac2b50aa082441580b099c7628770e36741d7637 (patch)
tree1bb3e75c7ef423826f5665331dad01dfc51d458e
parentfed86b7a1fad79f06601f52bdc81cbfadb5f18d4 (diff)
downloadpuppet-nodo-ac2b50aa082441580b099c7628770e36741d7637.tar.gz
puppet-nodo-ac2b50aa082441580b099c7628770e36741d7637.tar.bz2
Renaming firewall::cups to firewall::printer and adding hplip rules
-rw-r--r--manifests/subsystems/firewall.pp22
1 files changed, 21 insertions, 1 deletions
diff --git a/manifests/subsystems/firewall.pp b/manifests/subsystems/firewall.pp
index 5938500..759562b 100644
--- a/manifests/subsystems/firewall.pp
+++ b/manifests/subsystems/firewall.pp
@@ -282,7 +282,7 @@ class firewall::wifi {
}
}
-class firewall::cups {
+class firewall::printer {
shorewall::rule { "cups-tcp":
action => 'ACCEPT',
source => 'net',
@@ -302,4 +302,24 @@ class firewall::cups {
ratelimit => '-',
order => "201",
}
+
+ shorewall::rule { "hp-pdl-datastr-tcp":
+ action => 'ACCEPT',
+ source => 'net',
+ destination => '$FW',
+ proto => 'tcp',
+ destinationport => "9100",
+ ratelimit => '-',
+ order => "200",
+ }
+
+ shorewall::rule { "hp-pdl-datastr-udp":
+ action => 'ACCEPT',
+ source => 'net',
+ destination => '$FW',
+ proto => 'udp',
+ destinationport => "9100",
+ ratelimit => '-',
+ order => "201",
+ }
}