diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-01-01 15:37:34 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-01-01 15:37:34 -0200 |
commit | 487d9ab65058b48c068e0e39e0e121f4449f1a4d (patch) | |
tree | b7804d6d118c62c77e6fda96d24fce8f390e2fce /manifests/torrent.pp | |
parent | 0e40ed44c423db9717493860da64ed216c47d0e6 (diff) | |
download | puppet-firewall-487d9ab65058b48c068e0e39e0e121f4449f1a4d.tar.gz puppet-firewall-487d9ab65058b48c068e0e39e0e121f4449f1a4d.tar.bz2 |
Allow non-standard torrent ports
Diffstat (limited to 'manifests/torrent.pp')
-rw-r--r-- | manifests/torrent.pp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/manifests/torrent.pp b/manifests/torrent.pp index 2dc8451..e7eb02a 100644 --- a/manifests/torrent.pp +++ b/manifests/torrent.pp @@ -1,10 +1,12 @@ -class firewall::torrent { +class firewall::torrent( + $range = hiera('firewall::torrent::range', '6881:6999') +) { shorewall::rule { "torrent-tcp": action => 'ACCEPT', source => 'net', destination => '$FW', proto => 'tcp', - destinationport => "6881:6999", + destinationport => "$range", ratelimit => '-', order => 200, } @@ -14,7 +16,7 @@ class firewall::torrent { source => 'net', destination => '$FW', proto => 'udp', - destinationport => "6881:6999", + destinationport => "$range", ratelimit => '-', order => 201, } |