diff --git a/daemon/lua/config.lua b/daemon/lua/config.lua index 7abf181845cad1a975e6e8c1d7633b3806dbeaf9..be414a7cd861d98aa6ca3b3dd76eb52e9bd3f341 100644 --- a/daemon/lua/config.lua +++ b/daemon/lua/config.lua @@ -9,6 +9,10 @@ if not next(net.list()) and not env.KRESD_NO_LISTEN then if not ok and verbose() then print('bind to ::1@53 '..err) end + -- Exit when kresd isn't listening on any interfaces + if not next(net.list()) then + panic('not listening on any interface, exiting...') + end end -- Open cache if not set/disabled if not cache.current_size then diff --git a/etc/config.cluster b/etc/config.cluster index bc1cf60a5bb64258f398bf2fb281ac7f46c3eacc..584837922b0a47e3a1e1df6a6b151a61a46289d9 100644 --- a/etc/config.cluster +++ b/etc/config.cluster @@ -42,4 +42,3 @@ policy.add(policy.rpz(policy.DENY, 'blacklist.rpz')) -- Optional: use Redis/Memcached as a cache backend which may be distributed between nodes -- cache.storage = 'redis://127.0.0.1:6398' - diff --git a/etc/config.isp b/etc/config.isp index f050bd883f0f410c55135092d6ccf632e4a8eac7..c5ba83004bab4e142a9cff10a6150eff32a4ded4 100644 --- a/etc/config.isp +++ b/etc/config.isp @@ -35,4 +35,3 @@ view:addr('10.0.0.0/24', policy.suffix(policy.DROP, {todname('site.nl')})) view:addr('192.168.2.0/24', policy.all(policy.TC)) -- Apply RPZ for all clients, default rule is DENY policy.add(policy.rpz(policy.DENY, 'blacklist.rpz')) -