diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-11-29 00:57:12 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-11-29 00:57:12 -0200 |
commit | dc0f43a858d4347462d0cfeb217fd8cb6616b174 (patch) | |
tree | 730339ff31620f3fe1b2697145964f8cdd8bc6ea /manifests/subsystems/firewall.pp | |
parent | 5b12d7b5dcf90eff79386c1bdab7de7b027fceec (diff) | |
download | puppet-nodo-dc0f43a858d4347462d0cfeb217fd8cb6616b174.tar.gz puppet-nodo-dc0f43a858d4347462d0cfeb217fd8cb6616b174.tar.bz2 |
Adding firewall::torrent
Diffstat (limited to 'manifests/subsystems/firewall.pp')
-rw-r--r-- | manifests/subsystems/firewall.pp | 22 |
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", + } +} |