mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
unbound: Move "listen on all" to main configuration file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -61,11 +61,13 @@ server:
|
|||||||
harden-algo-downgrade: no
|
harden-algo-downgrade: no
|
||||||
use-caps-for-id: no
|
use-caps-for-id: no
|
||||||
|
|
||||||
|
# Listen on all interfaces
|
||||||
|
interface: 0.0.0.0
|
||||||
|
|
||||||
# Deny access from everywhere
|
# Deny access from everywhere
|
||||||
access-control: 0.0.0.0/0 refuse
|
access-control: 0.0.0.0/0 refuse
|
||||||
|
|
||||||
# Listen on localhost
|
# Allow access from localhost
|
||||||
interface: 127.0.0.1
|
|
||||||
access-control: 127.0.0.0/8 allow
|
access-control: 127.0.0.0/8 allow
|
||||||
|
|
||||||
# Bootstrap root servers
|
# Bootstrap root servers
|
||||||
|
|||||||
@@ -148,9 +148,6 @@ write_interfaces_conf() {
|
|||||||
(
|
(
|
||||||
config_header
|
config_header
|
||||||
|
|
||||||
echo "# bound to all interfaces"
|
|
||||||
echo "interface: 0.0.0.0"
|
|
||||||
|
|
||||||
# 1.1.1.1 is reserved for unused green
|
# 1.1.1.1 is reserved for unused green
|
||||||
if [ -n "${GREEN_ADDRESS}" -a "${GREEN_ADDRESS}" != "1.1.1.1" ]; then
|
if [ -n "${GREEN_ADDRESS}" -a "${GREEN_ADDRESS}" != "1.1.1.1" ]; then
|
||||||
echo "# allow access from GREEN"
|
echo "# allow access from GREEN"
|
||||||
|
|||||||
Reference in New Issue
Block a user