]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
unbound: bind to all interfaces
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 12 Oct 2016 20:41:19 +0000 (22:41 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 12 Oct 2016 20:43:21 +0000 (22:43 +0200)
this allow to add interfaces without restart unbound.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/initscripts/init.d/unbound

index 3b8beee24826526de78aa81f44bed3151aaa673a..136084458f3ea8a8ab709d4839fff6485d316b47 100644 (file)
@@ -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