From: Silvio Rhatto Date: Mon, 29 Nov 2010 02:57:12 +0000 (-0200) Subject: Adding firewall::torrent X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=dc0f43a858d4347462d0cfeb217fd8cb6616b174;p=puppet-nodo.git Adding firewall::torrent --- 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", + } +}