aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-11-29 00:57:12 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-11-29 00:57:12 -0200
commitdc0f43a858d4347462d0cfeb217fd8cb6616b174 (patch)
tree730339ff31620f3fe1b2697145964f8cdd8bc6ea
parent5b12d7b5dcf90eff79386c1bdab7de7b027fceec (diff)
downloadpuppet-nodo-dc0f43a858d4347462d0cfeb217fd8cb6616b174.tar.gz
puppet-nodo-dc0f43a858d4347462d0cfeb217fd8cb6616b174.tar.bz2
Adding firewall::torrent
-rw-r--r--manifests/subsystems/firewall.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/subsystems/firewall.pp b/manifests/subsystems/firewall.pp
index 24d66b8..b2f4383 100644
--- a/manifests/subsystems/firewall.pp
+++ b/manifests/subsystems/firewall.pp
@@ -315,3 +315,25 @@ class firewall::ups {
order => "200",
}
}
+
+class firewall::torrent {
+ shorewall::rule { "torrent-tcp":
+ action => 'ACCEPT',
+ source => 'net',
+ destination => '$FW',
+ proto => 'tcp',
+ destinationport => "6881:6999",
+ ratelimit => '-',
+ order => "200",
+ }
+
+ shorewall::rule { "torrent-udp":
+ action => 'ACCEPT',
+ source => 'net',
+ destination => '$FW',
+ proto => 'udp',
+ destinationport => "6881:6999",
+ ratelimit => '-',
+ order => "201",
+ }
+}