summaryrefslogtreecommitdiff
path: root/manifests/mpd.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-12 17:12:53 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-12 17:12:53 -0300
commit1c9be45e18faf86aaaa5c29879514e3d29b559a1 (patch)
treecbd86a243791640faa20adad6706bd57ba3abfd9 /manifests/mpd.pp
downloadpuppet-firewall-1c9be45e18faf86aaaa5c29879514e3d29b559a1.tar.gz
puppet-firewall-1c9be45e18faf86aaaa5c29879514e3d29b559a1.tar.bz2
Initial import
Diffstat (limited to 'manifests/mpd.pp')
-rw-r--r--manifests/mpd.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/mpd.pp b/manifests/mpd.pp
new file mode 100644
index 0000000..5724952
--- /dev/null
+++ b/manifests/mpd.pp
@@ -0,0 +1,21 @@
+class firewall::mpd {
+ # MPD http stream
+ shorewall::rule { 'mpd-http-stream':
+ source => 'net',
+ destination => '$FW',
+ proto => 'tcp',
+ destinationport => '8000',
+ order => 200,
+ action => 'ACCEPT';
+ }
+
+ # MPD client access
+ shorewall::rule { 'mpd-daemon':
+ source => 'net',
+ destination => '$FW',
+ proto => 'tcp',
+ destinationport => '6600',
+ order => 200,
+ action => 'ACCEPT';
+ }
+}