diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-08-11 14:37:32 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-08-11 14:37:32 -0300 |
commit | 7f7d3cab9c4b4fc1bdc3827e8ea4c680c73da48d (patch) | |
tree | 36d470b1d000b89295c595f8f27d5cc89df46a59 /manifests/subsystems/firewall/printer.pp | |
parent | fb4b9946ac9adeda2da07d80e65b56a0cf897339 (diff) | |
download | puppet-nodo-7f7d3cab9c4b4fc1bdc3827e8ea4c680c73da48d.tar.gz puppet-nodo-7f7d3cab9c4b4fc1bdc3827e8ea4c680c73da48d.tar.bz2 |
Spliting firewall classes along files and separating rules for vservers and routers
Diffstat (limited to 'manifests/subsystems/firewall/printer.pp')
-rw-r--r-- | manifests/subsystems/firewall/printer.pp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/subsystems/firewall/printer.pp b/manifests/subsystems/firewall/printer.pp new file mode 100644 index 0000000..194f281 --- /dev/null +++ b/manifests/subsystems/firewall/printer.pp @@ -0,0 +1,21 @@ +class firewall::printer { + shorewall::rule { "cups-tcp": + action => 'ACCEPT', + source => 'net', + destination => '$FW', + proto => 'tcp', + destinationport => "631", + ratelimit => '-', + order => "200", + } + + shorewall::rule { "cups-udp": + action => 'ACCEPT', + source => 'net', + destination => '$FW', + proto => 'udp', + destinationport => "631", + ratelimit => '-', + order => "201", + } +} |