From f862af97eae1c9f0708588a5e6695804ca7feee4 Mon Sep 17 00:00:00 2001 From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de> Date: Sat, 21 Oct 2017 18:41:48 +0200 Subject: [PATCH] Allow clients to access the server Signed-off-by: Thomas Schneider <thomas@fsmpi.rwth-aachen.de> --- unbound/templates/unbound.conf.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/unbound/templates/unbound.conf.j2 b/unbound/templates/unbound.conf.j2 index 2eb1341..3c40228 100644 --- a/unbound/templates/unbound.conf.j2 +++ b/unbound/templates/unbound.conf.j2 @@ -2,9 +2,12 @@ server: interface: 0.0.0.0 interface: :: prefetch: yes + {% for i in unbound_allowed_hosts %} + access-control: {{i}} allow + {% endfor %} forward-zone: name: "." - {% for i in nameservers %} + {% for i in unbound_upstream_hosts %} forward-addr: {{i}} {% endfor %} -- GitLab