From 15e542bcedb7783bbcfd348618fc85f125b6a0e1 Mon Sep 17 00:00:00 2001
From: Tollef Fog Heen <tfheen@err.no>
Date: Sun, 24 Jun 2012 13:13:57 +0200
Subject: [PATCH] Bacula understands v6 too, so add rule for that

---
 modules/bacula/manifests/client.pp | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/modules/bacula/manifests/client.pp b/modules/bacula/manifests/client.pp
index 879978cf..baf00406 100644
--- a/modules/bacula/manifests/client.pp
+++ b/modules/bacula/manifests/client.pp
@@ -30,9 +30,15 @@ class bacula::client inherits bacula {
       refreshonly => true;
   }
 
-  @ferm::rule { 'dsa-bacula-fd':
+  @ferm::rule { 'dsa-bacula-fd-v4':
     domain      => '(ip)',
     description => 'Allow bacula access from storage and director',
     rule        => "proto tcp mod state state (NEW) dport (bacula-fd) saddr ($bacula_director_address) ACCEPT",
   }
+
+  @ferm::rule { 'dsa-bacula-fd-v6':
+    domain      => '(ip6)',
+    description => 'Allow bacula access from storage and director',
+    rule        => "proto tcp mod state state (NEW) dport (bacula-fd) saddr ($bacula_director_address) ACCEPT",
+  }
 }
-- 
2.39.5