aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/firewall
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-05 22:31:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-05 22:31:35 -0300
commit44076dd411023c9dbb04441837ad7207640b4101 (patch)
tree72258d31d7a67f5fa85f2beb1cad449892579330 /manifests/subsystems/firewall
parentd37e7e6bedd101cbbb53f83030bcd14cfcbc06d4 (diff)
downloadpuppet-nodo-44076dd411023c9dbb04441837ad7207640b4101.tar.gz
puppet-nodo-44076dd411023c9dbb04441837ad7207640b4101.tar.bz2
Adding firewall::vserver::mdns for avahi support
Diffstat (limited to 'manifests/subsystems/firewall')
-rw-r--r--manifests/subsystems/firewall/vserver.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/subsystems/firewall/vserver.pp b/manifests/subsystems/firewall/vserver.pp
index 97571a9..702acc9 100644
--- a/manifests/subsystems/firewall/vserver.pp
+++ b/manifests/subsystems/firewall/vserver.pp
@@ -510,3 +510,15 @@ class firewall::vserver::rsync($destination, $zone = 'fw') {
order => 2600,
}
}
+
+class firewall::vserver::mdns($destination, $zone = 'fw') {
+ shorewall::rule { 'mdns-0':
+ action => 'DNAT',
+ source => 'net',
+ destination => "$zone:$destination:5353",
+ proto => 'tcp',
+ destinationport => '5353',
+ ratelimit => '-',
+ order => 2700,
+ }
+}