Hi,
I'm running OpenWRT as internet router and an opnSense FW on a Proxmox PVE.
Normally opnSense is serving dhcp and dns.
My goal is to let OpenWRT serve dhcp and dns in case opnSense is down.
Whether opnSense is down can be easily detected by a "ping".
The dhcp server in OpenWRT is enabled with the option:
Force DHCP on this network even if another server is detected = off
In this case the log shows:
user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start,
So far, so good.
When I start an cron-triggered script I must know in which state the dhcp service for the particular IF is at the moment.
Where do I find this information?