aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/firewall/torrent.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystems/firewall/torrent.pp')
-rw-r--r--manifests/subsystems/firewall/torrent.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/subsystems/firewall/torrent.pp b/manifests/subsystems/firewall/torrent.pp
new file mode 100644
index 0000000..954c71f
--- /dev/null
+++ b/manifests/subsystems/firewall/torrent.pp
@@ -0,0 +1,21 @@
+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",
+ }
+}