diff options
Diffstat (limited to 'manifests/torrent.pp')
-rw-r--r-- | manifests/torrent.pp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/torrent.pp b/manifests/torrent.pp new file mode 100644 index 0000000..2dc8451 --- /dev/null +++ b/manifests/torrent.pp @@ -0,0 +1,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, + } +} |