aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/firewall/torrent.pp
blob: 2dc84519dc1e31ad61f6dab0ea78c25aa8bcff0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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,
  }
}