From dc0f43a858d4347462d0cfeb217fd8cb6616b174 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 29 Nov 2010 00:57:12 -0200 Subject: Adding firewall::torrent --- manifests/subsystems/firewall.pp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'manifests') 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", + } +} -- cgit v1.2.3