From d221f41fbe38e32afc2fd0bab6ee80aa94b9f1a4 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Wed, 12 Oct 2016 22:41:19 +0200 Subject: [PATCH] unbound: bind to all interfaces this allow to add interfaces without restart unbound. Signed-off-by: Arne Fitzenreiter --- src/initscripts/init.d/unbound | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/initscripts/init.d/unbound b/src/initscripts/init.d/unbound index 3b8beee248..136084458f 100644 --- a/src/initscripts/init.d/unbound +++ b/src/initscripts/init.d/unbound @@ -148,16 +148,17 @@ write_interfaces_conf() { ( config_header + echo "# bound to all interfaces" + echo "interface: 0.0.0.0" + # 1.1.1.1 is reserved for unused green if [ -n "${GREEN_ADDRESS}" -a "${GREEN_ADDRESS}" != "1.1.1.1" ]; then - echo "# GREEN" - echo "interface: ${GREEN_ADDRESS}" + echo "# allow access from GREEN" echo "access-control: $(cidr ${GREEN_NETADDRESS} ${GREEN_NETMASK}) allow" fi if [ -n "${BLUE_ADDRESS}" ]; then - echo "# BLUE" - echo "interface: ${BLUE_ADDRESS}" + echo "# allow access from BLUE" echo "access-control: $(cidr ${BLUE_NETADDRESS} ${BLUE_NETMASK}) allow" fi ) > /etc/unbound/interfaces.conf -- 2.39.2