Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    No startup Unbound

    Scheduled Pinned Locked Moved DHCP and DNS
    17 Posts 4 Posters 4.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      @qinn said in No startup Unbound:

      Address already in use for 127.0.0.1 port 953

      My take is you have a issue with bind also running they like to use the same control port 953. You can change the control port in the bind gui!

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      1 Reply Last reply Reply Quote 0
      • QinnQ
        Qinn
        last edited by

        Thanks for the reply John, but bind is not installed, it there anyway to find out why during booting pfSense Unbound won't come up?

        0_1549960946690_ScreenHunter_183 Feb. 12 09.40.png

        Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
        Firmware: Latest-stable-pfSense CE (amd64)
        Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by johnpoz

          Well look to see what else is using 953 then.

          Do a simple sockstat when unbound is not running

          [2.4.4-RELEASE][root@sg4860.local.lan]/: sockstat | grep :953
          unbound  unbound    49220 27 tcp4   127.0.0.1:953         *:*
          [2.4.4-RELEASE][root@sg4860.local.lan]/: 
          

          You can see that unbound is using 953, your error is saying it can not use that port.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • QinnQ
            Qinn
            last edited by Qinn

            Good idea

            With Unbound running, result:

            [2.4.4-RELEASE][root@pfSense.localdomain]/root: sockstat | grep :953
            unbound  unbound    63945 22 tcp4   127.0.0.1:953         *:*
            ?        ?          ?     ?  tcp4   127.0.0.1:953         127.0.0.1:57064
            ?        ?          ?     ?  tcp4   127.0.0.1:953         127.0.0.1:1987
            ?        ?          ?     ?  tcp4   127.0.0.1:953         127.0.0.1:33822
            ?        ?          ?     ?  tcp4   127.0.0.1:953         127.0.0.1:33089
            ?        ?          ?     ?  tcp4   127.0.0.1:953         127.0.0.1:64753
            ?        ?          ?     ?  tcp4   127.0.0.1:953         127.0.0.1:18454
            ?        ?          ?     ?  tcp4   127.0.0.1:953         127.0.0.1:43445
            

            Then a reboot from the console (option 5) below the result in the GUI:

            0_1549989280822_ScreenHunter_183 Feb. 12 17.09.png

            Then:

            2.4.4-RELEASE][root@pfSense.localdomain]/root: sockstat | grep :953
            [2.4.4-RELEASE][root@pfSense.localdomain]/root:
            

            ...but nothing running on 953?

            In the General log

            General log
            Feb 12 16:59:00 	sshd 	17591 	Accepted keyboard-interactive/pam for root from 192.168.1.100 port 14375 ssh2
            Feb 12 16:58:59 	php-fpm 	340 	/rc.newwanip: Creating rrd update script
            Feb 12 16:58:59 	php-fpm 	340 	/rc.newwanip: Resyncing OpenVPN instances for interface WAN.
            Feb 12 16:58:57 	php-fpm 	340 	/rc.newwanip: The command '/usr/local/sbin/unbound -c /var/unbound/unbound.conf' returned exit code '1', the output was '[1549987137] unbound[17312:0] error: can't bind socket: Address already in use for 127.0.0.1 port 953 [1549987137] unbound[17312:0] error: cannot open control interface 127.0.0.1 953 [1549987137] unbound[17312:0] fatal error: could not open ports'
            Feb 12 16:58:57 	sshd 	17591 	user root login class [preauth] 
            

            In the DNS resolver log

            Feb 12 16:58:16 	unbound 	72813:0 	debug: duplicate acl address ignored.
            Feb 12 16:58:16 	unbound 	72813:0 	debug: drop user privileges, run as unbound
            Feb 12 16:58:16 	unbound 	72813:0 	debug: chroot to /var/unbound
            Feb 12 16:58:16 	unbound 	72813:0 	debug: chdir to /var/unbound
            Feb 12 16:56:55 	unbound 	63945:0 	info: service stopped (unbound 1.8.1).
            Feb 12 16:56:47 	unbound 	63945:0 	info: control cmd: stats_noreset
            Feb 12 16:56:46 	unbound 	63945:0 	debug: new control connection from 127.0.0.1 port 35665
            Feb 12 16:56:46 	unbound 	63945:0 	debug: cache memory msg=1903288 rrset=3843972 infra=2490483 val=635129 
            

            There is something else maybe worth mentioning, it's not every time that Unbound won't start after a reboot, but it's a 50-50 with 3 other services

            avahi
            pfb_dnsbl
            pfb_filter

            So the one time Unbound is up and those 3 are down and the other time, it's the other way around?🤔

            Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
            Firmware: Latest-stable-pfSense CE (amd64)
            Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              My guess would be something with your pfblocker.. It restarts unbound when it updates - its possible that unbound is not actually stopping and left running..

              What is this?

              ?        ?          ?     ?  tcp4   127.0.0.1:953         127.0.0.1:57064
              ?        ?          ?     ?  tcp4   127.0.0.1:953         127.0.0.1:1987
              ?        ?          ?     ?  tcp4   127.0.0.1:953         127.0.0.1:33822
              ?        ?          ?     ?  tcp4   127.0.0.1:953         127.0.0.1:33089
              

              You can not see the pid of what is bound to 953?

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              QinnQ 1 Reply Last reply Reply Quote 1
              • RonpfSR
                RonpfS
                last edited by RonpfS

                When the widget send an unbound-control stats_noreset during an unbound reload, unbound may hang and may need to be kill -9 .

                Change the pfblockerNG Widget DNSBL Resolver Query frequency from 5 sec to 60 or 120 sec.

                You can also try to enable DNSBL Live Reload Resync so pfblockerNG wont reload unbound.

                2.4.5-RELEASE-p1 (amd64)
                Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                QinnQ 1 Reply Last reply Reply Quote 1
                • QinnQ
                  Qinn @johnpoz
                  last edited by Qinn

                  [2.4.4-RELEASE][root@pfSense.localdomain]/root: sockstat | grep :953
                  unbound  unbound    63945 22 tcp4   127.0.0.1:953         *:*
                  ?        ?          ?     ?  tcp4   127.0.0.1:953         127.0.0.1:57064
                  

                  @johnpoz Your guess is as good as mine , only the first line is unbound?

                  Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                  Firmware: Latest-stable-pfSense CE (amd64)
                  Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                  1 Reply Last reply Reply Quote 0
                  • QinnQ
                    Qinn @RonpfS
                    last edited by

                    @ronpfs said in No startup Unbound:

                    DNSBL Resolver Query frequency

                    Thanks RonpfS for stepping in, I can't seem to locate the;

                    "Change the pfblockerNG Widget DNSBL Resolver Query frequency from 5 sec to 60 or 120 sec."

                    You've mentioned, of course I will try to enable DNSBL Live Reload Resync and report back.

                    Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                    Firmware: Latest-stable-pfSense CE (amd64)
                    Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                    RonpfSR 1 Reply Last reply Reply Quote 0
                    • RonpfSR
                      RonpfS @Qinn
                      last edited by

                      @qinn said in No startup Unbound:

                      Thanks RonpfS for stepping in, I can't seem to locate the;
                      "Change the pfblockerNG Widget DNSBL Resolver Query frequency from 5 sec to 60 or 120 sec."

                      Click on the Wrench Icon on the pfBlockerNG widget

                      2.4.5-RELEASE-p1 (amd64)
                      Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                      Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                      QinnQ 1 Reply Last reply Reply Quote 1
                      • QinnQ
                        Qinn @RonpfS
                        last edited by

                        @ronpfs said in No startup Unbound:

                        @qinn said in No startup Unbound:

                        Thanks RonpfS for stepping in, I can't seem to locate the;
                        "Change the pfblockerNG Widget DNSBL Resolver Query frequency from 5 sec to 60 or 120 sec."

                        Click on the Wrench Icon on the pfBlockerNG widget

                        Thanks, duhhhh, missed out that one, stupid me. I will try that first and if that don't work the
                        enable DNSBL Live Reload Resync, but it has to wait for tomorrow as some rsync's are running and after that backups are kickin in, so tomorrow I will try and report back!

                        Thanks again 👍

                        Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                        Firmware: Latest-stable-pfSense CE (amd64)
                        Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                        1 Reply Last reply Reply Quote 0
                        • QinnQ
                          Qinn
                          last edited by Qinn

                          @RonpfS setting DNSBL Resolver Query frequency to 60 sec, didn't do much. Next tried the *DNSBL Live Reload Resync, but unfortunately it did not do much either. Still unbound is not running after a reboot...

                          Anyone any idea's?

                          Cheers Qinn

                          Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                          Firmware: Latest-stable-pfSense CE (amd64)
                          Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                          GertjanG 1 Reply Last reply Reply Quote 0
                          • GertjanG
                            Gertjan @Qinn
                            last edited by Gertjan

                            @qinn said in No startup Unbound:

                            Anyone any idea's?

                            Yep.
                            If you can works a day or two without DNSBL , disable it all together.
                            Reboot pfSense.
                            Check.

                            Doing so will rule out any problems related to DNSBL - or not ....

                            @qinn said in No startup Unbound:

                            Still unbound is not running after a reboot...

                            That is, it should start after a boot. The logs do shows this.
                            But shortly after that it gets probably restarted, so it stops, and then can't start again.

                            No "help me" PM's please. Use the forum, the community will thank you.
                            Edit : and where are the logs ??

                            QinnQ 1 Reply Last reply Reply Quote 0
                            • QinnQ
                              Qinn @Gertjan
                              last edited by Qinn

                              @gertjan I stopped and disabled pfb_dnsbl and pfb_filter and rebooted 3 times, on all of them unbound was running and there were no errors in the General Log concerning Unbound and accessing the GUI/Dashboard after reboot now took a few seconds, instead of minutes. It seems very likely that the culprit has found, pfb_dnsbl and pfb_filter and Unbound don't play well , but now to a solution. I hope that @BBcan177 can shed some light on it.

                              Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                              Firmware: Latest-stable-pfSense CE (amd64)
                              Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                              1 Reply Last reply Reply Quote 0
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator
                                last edited by

                                @qinn said in No startup Unbound:

                                pfb_dnsbl and pfb_filter and Unbound don't play well

                                I would concur on this ;) no offense to BBcan177 great work on the package.. But it has become lets call it very complex ;)

                                An intelligent man is sometimes forced to be drunk to spend time with his fools
                                If you get confused: Listen to the Music Play
                                Please don't Chat/PM me for help, unless mod related
                                SG-4860 24.11 | Lab VMs 2.8, 24.11

                                1 Reply Last reply Reply Quote 0
                                • GertjanG
                                  Gertjan
                                  last edited by Gertjan

                                  @johnpoz said in No startup Unbound:

                                  @qinn said in No startup Unbound:

                                  pfb_dnsbl and pfb_filter and Unbound don't play well

                                  I would concur on this ;) no offense to BBcan177 great work on the package.. But it has become lets call it very complex ;)

                                  @metoo

                                  But the fact is :
                                  pfb_dnsbl import big or can I call them huge - lists.
                                  And when he set them up, it kicks unbound, who starts to parse all these lists using. This needs a lot resources.
                                  I do think a 'correct' setup of pfb_dnsbl would be a good solution.

                                  No "help me" PM's please. Use the forum, the community will thank you.
                                  Edit : and where are the logs ??

                                  1 Reply Last reply Reply Quote 0
                                  • johnpozJ
                                    johnpoz LAYER 8 Global Moderator
                                    last edited by

                                    @gertjan said in No startup Unbound:

                                    pfb_dnsbl import big or can I call them huge - lists.

                                    Yup would concur there as well ;)

                                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                                    If you get confused: Listen to the Music Play
                                    Please don't Chat/PM me for help, unless mod related
                                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.