-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unbound issue with logging and OpenVPN after rebooting OPNsense #2791
Comments
|
@JasMan78 let's start with the verbosity issue. can you verify that /var/unbound/unbound.conf verbosity changes back to 1 after reboot? |
|
@fichtner The verbosity level is still 2 after a reboot. It looks like the logging of at least Unbound has completely stopped. |
|
does this only happen with verbosity 2 or also 1 ? after reboot+in conjunction with OpenVPN I mean |
|
Also with verbosity 1. |
|
Unbound chroot is not so nice, I've changed it to what dhcpd is getting... Try the patch. It requires a reboot to take full effect: Cheers, |
|
I've installed the patch on my VM OPNsense, but same issue after rebooting it. |
|
Indeed, system.inc needs patching. Sorry about the hiccup. Can you manually change it and do another reboot? 2d5d392#diff-460dfc2bc3262765b55473c6f9b38003R696 Use this after edit to make sure it boots ok: |
|
No problem, but I don't understand what I should do now or what I should "manually change". |
|
I can send you a working patch if you tell me which version that patch needs. |
|
Oh, stupid me. |
|
No worries, thanks for your help. |
|
I've changed the files but the issue remains after reboot. |
|
Sorry, I made a mistake. I tried to resolve a domain via the WebGUIs interface diagnostic tools this time. But as I just noticed those requests are not logged by the Unbound log. I guess they're directly forwarded to the external DNS resolver. The Unbound logging is fine now after I've changed the files and rebooted OPNsense. EDIT: The change had no impact to the other problems: right after the reboot DNS for my OpenVPN clients is not working, and the DNS record for the FQDN of my OPNsense contains only the management IP address. When I restart the Unbound service, DNS for my OpenVPN clients is working again, but the IP address of the virtual OpenVPN interface is added to the DNS record of my OPNsense. |
|
hold on, the subject says "Unbound issue with logging and OpenVPN after rebooting" and that's what was worked on. Did the previous fix it? If yes, what is the second problem in an isolated manner and wouldn't it be better to create a separate ticket for this to avoid "endless" tickets? :) |
|
Yes, changing the two files fixed the Unbound logging issue. 👍 OK, I understand. |
|
Thanks, then I will close and ship the logging fix in 18.7.6 and will take the other issue as soon as it's there :) |
Introduction: First I thought I've a problem with Unbound combined with OpenVPN. But after some tests with a completly fresh installed OPNsense in Hyper-V I think this is only an Unbound issue which effects OpenVPN too. Therefore I renamed this opened issue. Sorry for the confusion.
Some basic informations.
Version: 18.7.4
Installed on self-configured hardware (Intel(R) Celeron(R) CPU J1900 @ 1.99GHz (4 cores)) and as Hyper-V VM for tests with an fresh installation
Issue appears: after each reboot of OPNsense
Issue:
I raised the log level verbosity of Unbound from 1 to 2 to get every DNS query logged. I've noticed that when I restart my OPNsense, the logging stoppes or falles back to log level verbosity 1. DNS querys are not logged anymore.
I've to restart the Unbound service to get the logging working as configured in the log level verbosity settings of Unbound.
If this issue happens the DNS resolving for OpenVPN clients only is not working. LAN clients are not affected. They can resolve internal and exteranl DNS names. So I guess Unbound is not completly hanging or stopped. After restarting Unbound the DNS resolving for the OpenVPN clients works fine again.
I've also noticed that after restarting the service the FQDN DNS record of my OPNsense contains the IP address of the management interface, and the IP address of the virtual OpenVPN interface. Therefore when I try to access the WebGUI, and my client resolves the OpenVPN IP for the OPNsense FQDN, I get timeouts and of course a lot of deny entrys in the firewall logs because this interface is not configured for the WebGUI access.
The fresh installed OPNsense VM is configured with the basic settings like WAN and LAN interface only. No additional plugins or services are running. But it shows the same behaviour as my productive OPNsense.
I'm not sure if this are two completly different problems, or if an Unbound issue causes this behaviours.
The text was updated successfully, but these errors were encountered: