fix(vortex-firewall): Detect BIND RPZ in addition to dnsmasq

RPCD handler now checks for both:
- /etc/dnsmasq.d/vortex-firewall.conf (dnsmasq mode)
- /etc/bind/zones/rpz.vortex.zone (BIND RPZ mode)

This fixes the "0 blocked domains" display when using BIND DNS server.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-02-14 17:31:06 +01:00
parent c3ebb4a42a
commit 1513041d90

View File

@ -12,9 +12,10 @@ SINKHOLE_IP="192.168.255.253"
do_status() {
json_init
# Service status
# Service status - check both dnsmasq and BIND configurations
local active=0
[ -f "/etc/dnsmasq.d/vortex-firewall.conf" ] && active=1
[ -f "/etc/bind/zones/rpz.vortex.zone" ] && active=1
json_add_boolean "active" "$active"
json_add_string "sinkhole_ip" "$SINKHOLE_IP"