summaryrefslogtreecommitdiff
path: root/manifests/torrent.pp
blob: e7eb02a29ed2593875005c30a1ab012bbc8bd25e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class firewall::torrent(
  $range = hiera('firewall::torrent::range', '6881:6999')
) {
  shorewall::rule { "torrent-tcp":
    action          => 'ACCEPT',
    source          => 'net',
    destination     => '$FW',
    proto           => 'tcp',
    destinationport => "$range",
    ratelimit       => '-',
    order           => 200,
  }

  shorewall::rule { "torrent-udp":
    action          => 'ACCEPT',
    source          => 'net',
    destination     => '$FW',
    proto           => 'udp',
    destinationport => "$range",
    ratelimit       => '-',
    order           => 201,
  }
}