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

[solved] Unbound restarts every time an OpenVPN user connects

Scheduled Pinned Locked Moved OpenVPN
9 Posts 2 Posters 914 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.
  • M
    m0urs
    last edited by m0urs Jan 13, 2019, 8:05 PM Jan 13, 2019, 11:34 AM

    Is it normal that Unbound is restarting every time an OpenVPN user connects to the system? I thought it might be because of the option "Register connected OpenVPN clients in the DNS Resolver" in Unbound, but I disabled that option and still Unbound restarts every time?

    The restart makes the system unusable for some time as because of pfblocker-ng Unbound needs some time to restart.

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Jan 13, 2019, 12:33 PM

      Do you have it listen on all interfaces and use all interfaces for outbound?

      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
      • M
        m0urs
        last edited by Jan 13, 2019, 3:51 PM

        Yes, both "Network Interfaces" and "Outgoing Network Interfaces" are configured to the default "All".

        1 Reply Last reply Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by Jan 13, 2019, 3:52 PM

          Set them only to the interfaces you need, and see if that fixes your problem... Its possible that unbound is restarting on seeing a interface go up/down??

          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

          M 1 Reply Last reply Jan 13, 2019, 3:54 PM Reply Quote 0
          • M
            m0urs @johnpoz
            last edited by Jan 13, 2019, 3:54 PM

            @johnpoz I just tried to set the listen interfaces to only my local ones and the outgoing interface to "WAN". However that did not help. The OpenVPN interface is not in the list so I cannot exclude that.

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by johnpoz Jan 13, 2019, 3:57 PM Jan 13, 2019, 3:56 PM

              Let me connect in real quick from phone to vpn..

              Yeah just connected, no restart of unbound..

              You sure your uncheck of register vpn users took? Look in your conf

              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

              M 3 Replies Last reply Jan 13, 2019, 4:07 PM Reply Quote 0
              • M
                m0urs @johnpoz
                last edited by Jan 13, 2019, 4:07 PM

                @johnpoz That is what I would expect. For me it seems that it still tries to register the hostname of the VPN client. However, I can confirm, if I disable that option a "dig <hostname>" does not resolve the name but enabling that option does. However, in both cases, Unbound is restarting as soon as the VPN connection has been established.

                1 Reply Last reply Reply Quote 0
                • M
                  m0urs @johnpoz
                  last edited by m0urs Jan 13, 2019, 4:09 PM Jan 13, 2019, 4:09 PM

                  @johnpoz Can I verify somewhere directly in a config file, if the option has been disabled? For what should I look for? In the GUI it is disabled.

                  1 Reply Last reply Reply Quote 0
                  • M
                    m0urs @johnpoz
                    last edited by Jan 13, 2019, 8:04 PM

                    @johnpoz I needed to reboot the pfSense box today for another reason, and it seems that Unbound now no longer restarts if an OpenVPN connections is established. So I guess that was only a temporary issue. Thanks for your help!

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