From 44076dd411023c9dbb04441837ad7207640b4101 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 5 Apr 2013 22:31:35 -0300 Subject: Adding firewall::vserver::mdns for avahi support --- manifests/subsystems/firewall/vserver.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'manifests/subsystems') 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, + } +} -- cgit v1.2.3