-
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
After reboot of OPNsense Unbound is not working for OpenVPN clients only #2828
Comments
|
Hi @JasMan78, Labelling this support for now until we know what's going on. Would you mind comparing /var/unbound/access_lists.conf when working and when not working? Thanks, |
|
Just for information: I've installed 18.7.6 today. It has the same (both) issue(s). |
|
FYI: 18.7.7, still the same issues. |
|
FYI: Same at 18.7.8 Something new about this issue? |
|
the same issue with 18.7.8, please look at this thread on OPNsense Forum (on German): https://forum.opnsense.org/index.php?topic=10404.0 Everything has well worked after the Installation of the new virtuall OpenVPN Interface of ExpressVPN without any issue, but after reboot, DNS resolver of OPNsense & Pi-hole has stopped working! |
|
Ok, so how about the always restart Unbound after VPN startup during boot sequence? |
|
@fichtner: it didn't work... |
|
Too bad. I'm out of ideas for the moment. |
|
@fichtner : The patch works for me. My OpenVPN clients can resolve DNS names right after a reboot of OPNsense without restarting Unbound first. It seems that @karl047 has another problem. But also the issue with the DNS record of my OPNsense, which contains the IP address of the OPNsense management interface and the virtual OpenVPN interface, is immediately present after the reboot. |
|
@JasMan78 meh, sorry, please explain your second sentence... I really can't keep up with "ok now but" as it makes working on tickets frustrating. |
|
@fichtner : I'd noticed two problems with Unbound/OpenVPN and I thought the reason for both are the same main issue. Because the second problem occurs only after I've restarted the Unbound service manually to solve the first problem.
Sorry for the confusion. Should I open an new issue for the second problem? |
|
@JasMan78 it's ok, now I understand. I thought we were moving sideways, sorry! What did you set for active_interface under Unbound general options? |
|
@fichtner |
|
That's a bit unlucky having OpenVPN high up the list... |
|
Shouldn't the order be OpenVPN last? |
|
Oh, I didn't know that the order is important. I wrote them down in a random order. LAN_Guests (hn1_vlan100, 192.168.100.1/24) |
|
Sorry, it's 333dc0f actually |
|
@fichtner I've installed the patch and it resolved the issue :-) |
|
Thanks! I don't expect any related breakage. :) |
|
for every one which have problem with Unbound service on opnsense 1: vi /usr/local/etc/rc.syshook.d/start/50-dnsrestarter now it should be working after reboot |
for every one which have problem with Unbound service on opnsense 1: vi /usr/local/etc/rc.syshook.d/start/50-dnsrestarter now it should be working after reboot |
|
This is a common thing for me. Every time I update the firmare, the Unbound service is stopped, so after the update I have to login back to press the "Play" button from the Dashboard. This always happend to me, even when I have recently updated to "OPNsense 22.7_4-amd64". |
|
@Rourke101 just make sure not to bind in or outbound interfaces manually, 9 out of 10 people having issues of unbound not being able to start, try to bind it manually to a non static interface like openvpn (same as #6028 (comment)). |
Version
OPNsense 18.7.5_1-amd64
Installed on self-configured hardware (Intel(R) Celeron(R) CPU J1900 @ 1.99GHz (4 cores)) and as fresh Hyper-V VM installation for tests.
Issue appears
after each reboot of OPNsense
Issue
After rebooting OPNsense the DNS resolving for OpenVPN clients only is not working. LAN clients in three different VLANs are not affected. They can resolve internal and exteranl DNS names as well. So I guess Unbound is not completly hanging or stopped. After restarting the Unbound service DNS resolving for the OpenVPN clients works fine again.
After the restart of the service the DNS record for my OPNsense management interface (re1) contains of course the IP address of the management interface itself (192.168.1.1/24), but also the IP address of the virtual OpenVPN interface (192.168.15.1/24). Therefore when I try to access the WebGUI and my client gets the OpenVPN interface IP from Unbound I get timeouts and a lot of deny entrys in the firewall logs because this interface is not allowed for WebGUI access.
NSLOOKUP from Client VLAN (192.168.10.0/24) after restart of OPNsense, but before restart of Unbound service
NSLOOKUP from Client VLAN (192.168.10.0/24) after restart of Unbound service
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.
The text was updated successfully, but these errors were encountered: