From 00d6d904dc26592553ba93710c205603757e3faf Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 3 Jun 2015 21:13:10 +0200 Subject: Configure Bacula File Daemon / Storage Daemon / Director. Using client-side data signing/encryption and wrapping inter-host communication into stunnel. --- roles/common/templates/etc/iptables/services.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'roles/common/templates/etc/iptables/services.j2') diff --git a/roles/common/templates/etc/iptables/services.j2 b/roles/common/templates/etc/iptables/services.j2 index 187e588..a0bb714 100644 --- a/roles/common/templates/etc/iptables/services.j2 +++ b/roles/common/templates/etc/iptables/services.j2 @@ -59,6 +59,16 @@ in tcp 80,443 # HTTP/HTTPS out tcp 993 # IMAP out tcp 4190 # MANAGESIEVE {% endif %} +{% if 'bacula-dir' in group_names and groups.all | difference(groups['bacula-dir']) %} +out tcp 9102 # BACULA-FD +{% elif groups['bacula-dir'] | difference([inventory_hostname]) %} +in tcp 9102 # BACULA-FD +{% endif %} +{% if 'bacula-sd' in group_names and groups.all | difference(groups['bacula-sd']) %} +in tcp 9103 # BACULA-SD +{% elif groups['bacula-sd'] | difference([inventory_hostname]) %} +out tcp 9103 # BACULA-SD +{% endif %} {% if 'LDAP-provider' in group_names %} out tcp 11371 # HKP -- cgit v1.2.3