summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2016-12-18 15:04:34 +0100
committerGitHub <noreply@github.com>2016-12-18 15:04:34 +0100
commit6a827f6959fc34972e532516a6a414e1cdf87714 (patch)
treebb3a89db723390b072038faf39e95021ba3e37fa /src/etc
parentac90c9012453c7e81ff0d0b472a55b116866c56e (diff)
downloadpfsense-6a827f6959fc34972e532516a6a414e1cdf87714.zip
pfsense-6a827f6959fc34972e532516a6a414e1cdf87714.tar.gz
Unbound - add support for "deny_non_local" and "refuse_non_local" ACLs (Feature #6914)
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/unbound.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/inc/unbound.inc b/src/etc/inc/unbound.inc
index 02b2901..f073acf 100644
--- a/src/etc/inc/unbound.inc
+++ b/src/etc/inc/unbound.inc
@@ -740,6 +740,10 @@ function unbound_acls_config($cfgsubdir = "") {
foreach ($unbound_acl['row'] as $network) {
if ($unbound_acl['aclaction'] == "allow snoop") {
$unbound_acl['aclaction'] = "allow_snoop";
+ } elseif ($unbound_acl['aclaction'] == "deny nonlocal") {
+ $unbound_acl['aclaction'] = "deny_non_local";
+ } elseif ($unbound_acl['aclaction'] == "refuse nonlocal") {
+ $unbound_acl['aclaction'] = "refuse_non_local";
}
$aclcfg .= "access-control: {$network['acl_network']}/{$network['mask']} {$unbound_acl['aclaction']}\n";
}
OpenPOWER on IntegriCloud