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

Unbound TCP buffer settings not sticky

Scheduled Pinned Locked Moved pfSense Packages
85 Posts 5 Posters 23.7k 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.
  • B
    bryan.paradis
    last edited by Feb 26, 2014, 7:46 PM Feb 26, 2014, 7:39 PM

    @shinzo:

    #########################

    Unbound configuration

    #########################

    snip

    thats how my file looks like when its working.  Some of those options are doubled because they weren't there before or i didn't want to manually change the values every time the package was updated.  If i put them in the custom options window, then it will overwrite the default value to what ever i wanted since the custom options are read last

    Check my update attachement. I think it is because the custom options are getting put in after the server: clause has been finished because the forward-zones clause has started. Can you test it out to see if it works properly with my changes?

    1 Reply Last reply Reply Quote 0
    • S
      shinzo
      last edited by Feb 26, 2014, 7:45 PM

      sure just need a minute

      1 Reply Last reply Reply Quote 0
      • S
        shinzo
        last edited by Feb 26, 2014, 7:53 PM

        @bryan.paradis:

        @shinzo:

        #########################

        Unbound configuration

        #########################

        snip

        thats how my file looks like when its working.  Some of those options are doubled because they weren't there before or i didn't want to manually change the values every time the package was updated.  If i put them in the custom options window, then it will overwrite the default value to what ever i wanted since the custom options are read last

        Check my update attachement. I think it is because the custom options are getting put in after the server: clause has been finished because the forward-zones clause has started. Can you test it out to see if it works properly with my changes?

        yeah that did fix it.

        it looks like

        Unbound Custom options

        msg-cache-slabs: 1
        rrset-cache-slabs: 1
        infra-cache-slabs: 1
        key-cache-slabs: 1
        val-clean-additional: yes
        harden-glue: yes
        do-not-query-localhost: yes
        do-ip6: no
        use-caps-for-id: no
        hide-identity: yes
        hide-version: yes
        forward-zone:
        name: "."
        forward-addr: 75.75.75.75
        forward-addr: 75.75.76.76

        1 Reply Last reply Reply Quote 0
        • B
          bryan.paradis
          last edited by Feb 26, 2014, 8:10 PM

          So all the options work correctly now?

          1 Reply Last reply Reply Quote 0
          • M
            markn62
            last edited by Feb 26, 2014, 8:20 PM

            I've never had an issue with forward zones taking.  Bryan, where did you get the syntax document?  Is it for the unbound package or unbound stand-alone, two different animals.  And your work begs another question.  Do the custom options override the GUI settings or cause unbound to not start?

            Guess I'll have to do some testing myself.  Looks like forward zones no longer make it from the GUI to the config file.  If so, the GUI notes below the custom options box is in need of editing to clarify the syntax required.

            1 Reply Last reply Reply Quote 0
            • S
              shinzo
              last edited by Feb 26, 2014, 8:22 PM

              @bryan.paradis:

              So all the options work correctly now?

              yes its working correctly, thank you

              1 Reply Last reply Reply Quote 0
              • W
                wagonza
                last edited by Feb 26, 2014, 8:36 PM

                Yes that was a mistake. Thanks @bryan.paradis. Fix pushed.

                Follow me on twitter http://twitter.com/wagonza
                http://www.thepackethub.co.za

                1 Reply Last reply Reply Quote 0
                • M
                  markn62
                  last edited by Feb 26, 2014, 8:49 PM

                  I stand corrected, the old syntax is still putting forward zones in the config file.  Options are pushed way down with the recent expansion of reserve leases and hostnames.  Thanks for clarifying the syntax bryan.

                  1 Reply Last reply Reply Quote 0
                  • B
                    bryan.paradis
                    last edited by Feb 26, 2014, 8:54 PM

                    @markn62:

                    I've never had an issue with forward zones taking.  Bryan, where did you get the syntax document?  Is it for the unbound package or unbound stand-alone, two different animals.  And your work begs another question.  Do the custom options override the GUI settings or cause unbound to not start?

                    Guess I'll have to do some testing myself.  Looks like forward zones no longer make it from the GUI to the config file.  If so, the GUI notes below the custom options box is in need of editing to clarify the syntax required.

                    Forward zones would take but the custom options are being put in the forward zones clause area and not in the server clause area causing errors if you add any.

                    @markn62:

                    I stand corrected, the old syntax is still putting forward zones in the config file.  Options are pushed way down with the recent expansion of reserve leases and hostnames.  Thanks for clarifying the syntax bryan.

                    GUI generates a config file in unbound.inc out of what you fill out which is then what unbound uses. Just like the standalone.

                    @wagonza:

                    Yes that was a mistake. Thanks @bryan.paradis. Fix pushed.

                    :) Your welcome

                    1 Reply Last reply Reply Quote 0
                    • M
                      markn62
                      last edited by Feb 28, 2014, 5:47 PM

                      Thanks for clarifying Bryan.  Wagonza, either it's not installing correctly or the unbound fix broke the service. When I install the package it always fails the first time and shows installed but won't run.  Reboot and reinstall pkg, then unbound starts but doesn't resolve 100%.  Hit'n'miss on the queries.  Some webpages load, via google links all connections would fail.  Had to point router to backup Unbound service on another box.

                      When I finally get it to install it shows in GUI as 1.4.21_3 just as it does in the available packages list. When I uninstall it the script reports it's uninstalling 1.4.21_1.  Leaving remnants behind?  Also notice watchdog leaves unbound in it's list and fills the log.  Maybe its normal the uninstall wouldn't remove a watchdog entry.

                      And I'm still not clear when it can't install the unbound pkg from pfsense server that it doesn't use a cached copy of the package from local drive like the pkg installer says it will do.  When unbound acts up its very hard to fix PfSense since all web updates are reliant on it.  I'm going to look into putting unbound on an embedded linux box and forget it as a PfSense package at least until such time as it gets a thorough looking over.

                      On the bright side, outgoing-num-tcp & incoming-num-tcp GUI entries are now sticky.

                      1 Reply Last reply Reply Quote 0
                      • W
                        wagonza
                        last edited by Feb 28, 2014, 6:12 PM

                        Interesting…looks like you may have remnants of an old package lying around which might be the cause of your problems.
                        The fact that Watchdog still has it in its list is a good indicator of this.

                        Sorry you have had problems with the package its been kind(er) to others.
                        Its going into 2.2 as a replacement for DNSMasq so no longer will it be a package. Might be a better experience for you then.

                        Follow me on twitter http://twitter.com/wagonza
                        http://www.thepackethub.co.za

                        1 Reply Last reply Reply Quote 0
                        • D
                          doktornotor Banned
                          last edited by Feb 28, 2014, 6:26 PM

                          Just noting that I reinstalled unbound multiple times on multiple boxes without any problems whatsoever after the latest batch of commits… So yeah, you probably have some state junk leftovers on your box.

                          1 Reply Last reply Reply Quote 0
                          • M
                            markn62
                            last edited by Feb 28, 2014, 6:40 PM

                            States get reset on reboot, no?  Don't think it's states unless only a state reset will do.  So I should console ipkg list then ipkg remove package.name?  Or is more cleanup needed?

                            1 Reply Last reply Reply Quote 0
                            • W
                              wagonza
                              last edited by Feb 28, 2014, 6:44 PM

                              Check your config.xml for multiple entries for Unbound.
                              Look between <installedpackages>xml tags.</installedpackages>

                              Follow me on twitter http://twitter.com/wagonza
                              http://www.thepackethub.co.za

                              1 Reply Last reply Reply Quote 0
                              • M
                                markn62
                                last edited by Feb 28, 2014, 7:00 PM

                                ./conf.default/config.xml or ./cf/conf/config.xml?

                                1 Reply Last reply Reply Quote 0
                                • W
                                  wagonza
                                  last edited by Feb 28, 2014, 7:08 PM

                                  The latter one.

                                  Follow me on twitter http://twitter.com/wagonza
                                  http://www.thepackethub.co.za

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    bryan.paradis
                                    last edited by Feb 28, 2014, 7:46 PM

                                    @markn62:

                                    ./conf.default/config.xml or ./cf/conf/config.xml?

                                    Same thing /conf is a link of /cf/conf

                                    mark62 are you running pfsense 2.1 that has been upgraded? Likely you need to manually clean out unbound.

                                    Uninstall unbound
                                    Turn on rw
                                    Find / -name *unbound*
                                    Delete everything you can find
                                    /conf/config.XML clear out all everything to do with unbound. Backup first maybe.
                                    Once you are sure you have killed everything reinstall.
                                    If you have problems with internet try adding a DNS to resolv.conf

                                    1 Reply Last reply Reply Quote 0
                                    • W
                                      wagonza
                                      last edited by Feb 28, 2014, 8:17 PM

                                      @bryan.paradis:

                                      @markn62:

                                      ./conf.default/config.xml or ./cf/conf/config.xml?

                                      Same thing /conf is a link of /cf/conf

                                      Yeah but /conf.default is not the same thing thats used, as an example, for reverting to factory defaults.

                                      Follow me on twitter http://twitter.com/wagonza
                                      http://www.thepackethub.co.za

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        bryan.paradis
                                        last edited by Feb 28, 2014, 8:19 PM

                                        @wagonza:

                                        @bryan.paradis:

                                        @markn62:

                                        ./conf.default/config.xml or ./cf/conf/config.xml?

                                        Same thing /conf is a link of /cf/conf

                                        Yeah but /conf.default is not the same thing thats used for factory defaults.

                                        Haha whoops Justin woke UP didn't notice default

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          markn62
                                          last edited by Feb 28, 2014, 8:39 PM

                                          Thanks guys.  Where are the firmware upgrades and package upgrades hosted to do a DNS resolve on?  Same for both?  Do I just need pfsense.com.  Suppose a netstat during a temp pkg install might answer for one of the two.  Hope the host IP doesn't change often.  Good suggestion to locally resolve should happen to scramble Unbound again.

                                          I find one unbound install in the xml after I had uninstalled the pkg by GUI this morning.  As well, two unbound files remain.  I'll clean these up tonight, cron a reboot, and report back.

                                          Really appreciate your help…

                                          1 Reply Last reply Reply Quote 0
                                          34 out of 85
                                          • First post
                                            34/85
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received