mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 10:31:51 +00:00
Set unbound to only listen on loopback
This commit is contained in:
parent
6f17814f05
commit
50bbc50263
1 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,14 @@ if [ -z "$(uci -q get unbound.ub_main)" ]; then
|
|||
rename unbound.@unbound[-1]=ub_main
|
||||
commit unbound
|
||||
EOF
|
||||
fi
|
||||
# Make unbound listen on loopback only
|
||||
if [ -z "$(uci -q get unbound.ub_main.interface)" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set unbound.ub_main.interface_auto='0'
|
||||
set unbound.ub_main.interface='loopback'
|
||||
commit unbound
|
||||
EOF
|
||||
|
||||
fi
|
||||
if [ "$(uci -q show dhcp | grep 'use-application-dns.net')" = "" ]; then
|
||||
|
|
Loading…
Reference in a new issue