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

    [solved] Unbound restarts every time an OpenVPN user connects

    OpenVPN
    2
    9
    878
    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.
    • m0ursM
      m0urs
      last edited by m0urs

      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
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        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.7.2, 24.11

        1 Reply Last reply Reply Quote 0
        • m0ursM
          m0urs
          last edited by

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

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

            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.7.2, 24.11

            m0ursM 1 Reply Last reply Reply Quote 0
            • m0ursM
              m0urs @johnpoz
              last edited by

              @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
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by johnpoz

                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.7.2, 24.11

                m0ursM 3 Replies Last reply Reply Quote 0
                • m0ursM
                  m0urs @johnpoz
                  last edited by

                  @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
                  • m0ursM
                    m0urs @johnpoz
                    last edited by m0urs

                    @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
                    • m0ursM
                      m0urs @johnpoz
                      last edited by

                      @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
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.