1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Set unbound to only listen on loopback

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-05-29 19:56:14 +02:00
parent 6f17814f05
commit 50bbc50263

View file

@ -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