diff options
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, } |