Bug? Interface error? - OPNsense 23.7.3 - Bind and IPV6 both restarting

Started by RamSense, September 02, 2023, 04:43:50 PM

Previous topic - Next topic
Hi,

I have a weird DHCP and BIND problem running on:
OPNsense 23.7.3-amd64
FreeBSD 13.2-RELEASE-p2
OpenSSL 1.1.1v 1 Aug 2023

I see on the main GUI screen of OPNsense about every minute that DHCPv6 Server turns RED and than restarts and is back up to green. After that BIND Daemon turns RED and than restarts.

In the DHCP log i see this every time:
Informational   dhcpd   Server starting service.   
Informational   dhcpd   Sending on Socket/8/igb1/2a10:xxxx:xxxx:1::/64   
Informational   dhcpd   Listening on Socket/8/igb1/2a10:xxxx:xxxx:1::/64   
Informational   dhcpd   Bound to *:547   
Informational   dhcpd   Wrote 0 NA, 0 TA, 0 PD leases to lease file.   
Informational   dhcpd   Wrote 0 new dynamic host decls to leases file.   
Informational   dhcpd   Wrote 0 deleted host decls to leases file.   
Informational   dhcpd   For info, please visit https://www.isc.org/software/dhcp/   
Informational   dhcpd   All rights reserved.   
nformational   dhcpd   Copyright 2004-2022 Internet Systems Consortium.   
Informational   dhcpd   Internet Systems Consortium DHCP Server 4.4.3-P1   
Informational   dhcpd   PID file: /var/run/dhcpdv6.pid   
Informational   dhcpd   Database file: /var/db/dhcpd6.leases   
Informational   dhcpd   Config file: /etc/dhcpdv6.conf

In the BIND log i see this:

general   Notice   running
general   Notice   all zones loaded
zoneload   Informational   zone x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.2.ip6.arpa/IN: loaded serial 2308140935
zoneload   Informational   zone 0.ip6.arpa/IN: loaded serial 42
zoneload   Informational   zone localhost/IN: loaded serial 42
zoneload   Informational   zone mydomain.com/IN: loaded serial 2308182130
zoneload   Informational   zone 1.168.192.in-addr.arpa/IN: loaded serial 2308182144
zoneload   Informational   zone x.x.x.x.x.x.x.x.x.x.x.x.x.x.2.ip6.arpa/IN: loaded serial 2308151502
zoneload   Informational   zone 127.in-addr.arpa/IN: loaded serial 42
zoneload   Informational   zone 10.x.xin-addr.arpa/IN: loaded serial 2308140934
zoneload   Informational   managed-keys-zone: loaded serial 6493
general   Notice   exiting
network   Error   automatic interface scanning terminated: end of file
general   Notice   stopping command channel on 127.0.0.1#9530
general   Informational   shutting down: flushing changes
network   Informational   no longer listening on 127.0.0.1#5354
network   Informational   no longer listening on 2a10:xxxx:xxxx:1::#5354
general   Informational   received control channel command 'stop'

Others having this issue also? Any clues on how to fix this?
Deciso DEC850v2

When I disable ipv6 on LAN, I still see BIND restarting about every minute.
What can I do to investigate this further? in the log i see only it mentioning the restart as shown above

- i have reinstalled the DHCP packages, removed the /var/run/dhcp6c.pid file (there is no dhcp.pid file ??)
and rebooted OPNsense box. Still the same behavior.

[quote]# ps auxwww | grep dhcpd
dhcpd          9784   0.0  0.0   25664   11260  -  Ss   10:07    0:00.00 /usr/local/sbin/dhcpd -user dhcpd -group dhcpd -chroot /var/dhcpd -cf /etc/dhcpd.conf -pf /var/run/dhcpd.pid igb1 igb2
dhcpd         35522   0.0  0.0   22592    8744  -  Ss   10:07    0:00.01 /usr/local/sbin/dhcpd -6 -user dhcpd -group dhcpd -chroot /var/dhcpd -cf /etc/dhcpdv6.conf -pf /var/run/dhcpdv6.pid igb1
root          31332   0.0  0.0   12720    2248  0  S+   10:08    0:00.00 grep dhcpd[/quote]
Deciso DEC850v2

Found it. It was somehow due to the igb2 interface. When I removed this interface all was working again as it should. Strange, nothing have been changed with that config for months.
I will re-add this interface and hope it all keeps working as it should :-)
Deciso DEC850v2

re-added the interface, and the errors are back. Disabling the interface does not help. I have to completely remove this interface for the errors to disappear. Don't know what is causing this.
Deciso DEC850v2

Humm. Don't know if this is a bug in OPNsense, and/or can be reproduced: but when I add a new interface, but have nothing connected to the NIC involved, the bind and DHCPv6 services keeps restarting every minute. When I connect a device, the system keeps running stable.
Deciso DEC850v2