DNS breaks after installing pfBlockerNG?
-
If you are able to simply restart Unbound without disabling DNSBL first then it's probably not that. Sounds more like a timing issue.
However it's easy to test adding an alternative DNS server in general setup so you might as well try it.
Steve
-
If you are able to simply restart Unbound without disabling DNSBL first then it's probably not that. Sounds more like a timing issue.
However it's easy to test adding an alternative DNS server in general setup so you might as well try it.
Steve
You are right. It didn't work by adding an alternative DNS server, always got the error when IPs got renewed/any changes made under the System menu(ie. DNS servers changed and applied…): "/system.php: The command '/usr/local/sbin/unbound -c /var/unbound/unbound.conf' returned exit code '1', the output was '[1483291498] unbound[77155:0] error: bind: address already in use [1483291498] unbound[77155:0] fatal error: could not open ports'"
It is currently a nightmare to us. Manually restart Unbound is not an option. we have to disable DNSBL until this is addressed by pfSense dev teams.
-
Ok, that's something else. It implies either Unbound isn't stopping correctly or something else is already listening on port 53.
If you can trigger that again try running:
sockstat|grep :53
If nothing shows it could still be a timing issue in restarting Unbound.
Steve
-
Also, if you have Services Watchdog package installed, make sure you did NOT add Unbound to it. (That causes race conditions and wreaks complete havoc on DNS when pfBNG updates the DNSBLs.)
-
Might just be that unbound take a long time to start (mine take up to 3 minutes)
When it boots unbound starts more than once, so while one instance is starting, a restart/reload happens and it can not bind to the port of the previous unfinished unbound. -
Also, if you have Services Watchdog package installed, make sure you did NOT add Unbound to it. (That causes race conditions and wreaks complete havoc on DNS when pfBNG updates the DNSBLs.)
No, I don't have Watchdog package installed.
-
Just wondering, Whats the difference between manually restart Unbound vs. Auto restart Unbound by pfSense? I'm really confused since the start process should be the same, manually restart works but auto restart doesn't work.
-
note my thread in the pfsense 2.4 forum, my unbound doesnt start on boot if I do not select the default ALL interfaces, when specific interfaces are chosen the bootup script gets all confused and breaks, although I can always start it fine from the gui.
So if you got specific network interfaces selected. change it to ALL to see if it fixes the boot problem.
-
I haven't had a chance to dig thru the Unbound/pfSense code to figure out this issue… but there definitely is an issue when utilizing DHCP... Hopefully one of the pfSense devs get a chance to improve that part of the code. I am unable to replicate in my environment as I am static...
-
Ah that's interesting. Do you know how that applies if you are using DHCP, as I am?
Like, DHCP WAN?
Steve
-
I have dhcp wan for ipv4 and ipv6.
On my setup there seems to be no ipv4 renewals been logged and as such no affect on unbound, but the dhcp wan ipv6 renews twice an hour and will restart unbound, I fixed it by manually patching the services.inc file to stop the configure_unbound function from restarting unbound.
Pfblockerng doesnt use that function so it can still restart unbound when it does its dnsbl updates.
-
I have dhcp wan for ipv4 and ipv6.
On my setup there seems to be no ipv4 renewals been logged and as such no affect on unbound, but the dhcp wan ipv6 renews twice an hour and will restart unbound, I fixed it by manually patching the services.inc file to stop the configure_unbound function from restarting unbound.
Pfblockerng doesnt use that function so it can still restart unbound when it does its dnsbl updates.
May I know what/how you fixed in services.inc?
-
sure
I used SECOIT GmbH's solution (crediting the original guy).
His post is here.
https://forum.pfsense.org/index.php?topic=89589.msg517047#msg517047
Be aware with this solution, if you do an action that requires a unbound restart/configure, you will manually need to stop and then start in the gui. pfblockerng will still be fine tho.