From: Peter Palfrader Date: Wed, 2 Mar 2011 18:30:12 +0000 (+0100) Subject: we pass lists of ranges to ferm X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a45e9562bc9908f929b81efe532d64f20c03242a;p=dsa-puppet.git we pass lists of ranges to ferm --- diff --git a/modules/unbound/manifests/init.pp b/modules/unbound/manifests/init.pp index 7fca15ee..9ef5d9da 100644 --- a/modules/unbound/manifests/init.pp +++ b/modules/unbound/manifests/init.pp @@ -51,12 +51,12 @@ class unbound { @ferm::rule { "dsa-dns": domain => "ip", description => "Allow nameserver access", - rule => sprintf("&TCP_UDP_SERVICE_RANGE(53, %s)", join_spc(filter_ipv4(getfromhash($nodeinfo, 'hoster', 'allow_dns_query')))), + rule => sprintf("&TCP_UDP_SERVICE_RANGE(53, (%s))", join_spc(filter_ipv4(getfromhash($nodeinfo, 'hoster', 'allow_dns_query')))), } @ferm::rule { "dsa-dns6": domain => "ip6", description => "Allow nameserver access", - rule => sprintf("&TCP_UDP_SERVICE_RANGE(53, %s)", join_spc(filter_ipv6(getfromhash($nodeinfo, 'hoster', 'allow_dns_query')))), + rule => sprintf("&TCP_UDP_SERVICE_RANGE(53, (%s))", join_spc(filter_ipv6(getfromhash($nodeinfo, 'hoster', 'allow_dns_query')))), } } }