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

    OpenVPN works but no local DNS

    Scheduled Pinned Locked Moved OpenVPN
    49 Posts 18 Posters 34.6k 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.
    • Mr. WasteM
      Mr. Waste @x2rl
      last edited by Mr. Waste

      @x3rl

      Go to Firewall/pfBlockerNG/IP
      IP Interface/Rules Configuration:

      Inbound Firewall Rules:
      Wan

      Outbound Firewall Rules:
      Lan
      OpenVpn Server interface

      Make sure you have that interface highlighted. This might be the problem.
      Make sure you have the dns resolver on as well. Local DNS Resolver to up stream DNS Server/ like cloud flare or google.

      DNS.png

      2.png

      Make sure everything else are all GREEN/ ON or it will not work. - (Resolver)
      pfb_dnsbl is down something isn't right. Like with the first picture. - (The interfaces)

      Mr. Waste

      1 Reply Last reply Reply Quote 1
      • x2rlX
        x2rl
        last edited by

        My dns is set to 127.0.0.1 I have all the rules and everything is active.

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

          Side note :
          @Mr-Waste :

          475df355-93f5-4a3d-8aae-aac5e4a06030-image.png

          ☺

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

          x2rlX 1 Reply Last reply Reply Quote 1
          • x2rlX
            x2rl @Gertjan
            last edited by

            @Gertjan pfsense does the resloving.

            J 1 Reply Last reply Reply Quote 0
            • J
              Jochim @x2rl
              last edited by

              @x3rl
              Try resetting everything to the way it was in your screenshot, then change the option "DNS Default Domain" to just "localdomain". Next add the tunnel network (10.0.1.0/24 in your case) to the DNS Resolver access list by going to Services > DNS Resolver > Access Lists and adding a new entry for the tunnel network.

              Hopefully that solves the issue.

              Jochim

              x2rlX 1 Reply Last reply Reply Quote 1
              • x2rlX
                x2rl @Jochim
                last edited by

                @Jochim nope still does not use piholes adblocker via pfsense DNS.

                1 Reply Last reply Reply Quote 0
                • R
                  renegade
                  last edited by

                  Same here.
                  It seems the set DNS Server is only used for the set domain name.
                  In my case it‘s home and everything ending with .home is resolved and available in my OpenVPN Split Tunnel. But other name resolution seems to happen with any other DNS Server (unknown).

                  1 Reply Last reply Reply Quote 0
                  • S
                    soutruth
                    last edited by

                    Had same issue. Unticked: "Provide a DNS server list to clients. Addresses may be IPv4 or IPv6."

                    Fixed :)

                    N 1 Reply Last reply Reply Quote 0
                    • B
                      Byter @john_galt
                      last edited by

                      @john_galt

                      @john_galt said in OpenVPN works but no local DNS:

                      @johnpoz

                      I can now get local DNS over OpenVPN but I don't know why. I would like to if anyone can explain.

                      In Services > DNS Resolver > General Settings I changed the Network Interfaces from "All" to selecting all the interfaces and saving.

                      I've spent a lot of time trying to figure this out and really would like to understand why one setting
                      doesn't work but the other does when essentially they are both the same?

                      Thanks,

                      Doug

                      // Edit//

                      Here's the forum thread that gave me this fix.

                      alt text

                      Actually I had an issue using another router behind a PFsense, with full functionalities. I just wanted to have a separeted network without using VLAN and I wanted to preserve the reserved IP addresses, long sotry... Anyway, I couldn't figure out why on earth I can't get the clients behind the second router to properly resolve DNS. I used the same trick as you selecting every interface by hand rather than using the "ALL" option. IT SOLVED finally my issue. I definitely think there is a glitch somewhere.

                      1 Reply Last reply Reply Quote 0
                      • N
                        nonyhaha @soutruth
                        last edited by

                        @soutruth how on earth did that go ok for you? What dns is your client using then?

                        Other than that, I am having the same issue and am trying to solve it.
                        the problem for me is that I am not even trying to user pfblockerng, only use the local acl to access local assets.

                        1 Reply Last reply Reply Quote 0
                        • A
                          Allistah @john_galt
                          last edited by

                          @john_galt

                          I made an account here just to say that this resolved my issue as well. I am running pfSense 2.5.2-RELEASE (amd64) and I could connect to VPN without any trouble but any local DNS wouldn't work to the site I was connected to. Once I removed the DNS Resolver from "All" to manually choosing all of the IPv4 interfaces on the "Network Interfaces" and "Outgoing Network Interfaces" within the DNS Resolver, it just started to work as I would expect.

                          Maybe there is a bug or something there.

                          Thanks for listening - hope this can help improve pfSense!

                          1 Reply Last reply Reply Quote 0
                          • S
                            Schuby @john_galt
                            last edited by

                            @john_galt This also worked for me. Very strange.

                            Z 1 Reply Last reply Reply Quote 0
                            • Z
                              Zoltrix @Schuby
                              last edited by

                              @johnpoz can confirm the same issue here. Once I changed the Network Interfaces from "All" to selecting all the interfaces and saving, presto! Working.

                              Time for a bug report I guess.

                              F 1 Reply Last reply Reply Quote 0
                              • F
                                fadushin @john_galt
                                last edited by

                                @john_galt Works for me, too. Very strange. (I did find that I had to log out of the VPN and log back in, to see the effect of the changes. And I selected all the devices, except “All”, for just Network Interfaces.)

                                🤷

                                Z 1 Reply Last reply Reply Quote 0
                                • Z
                                  Zoltrix @fadushin
                                  last edited by

                                  @fadushin very strange.

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    fadushin @Zoltrix
                                    last edited by

                                    @zoltrix Were you able to submit a bug report? I tried but redmine won’t let me log in, depsite password resets.

                                    Z 1 Reply Last reply Reply Quote 0
                                    • Z
                                      Zoltrix @fadushin
                                      last edited by

                                      @fadushin I've moved on to using ZeroTier, so not so much of a concern for me now...

                                      F 1 Reply Last reply Reply Quote 0
                                      • F
                                        fadushin @Zoltrix
                                        last edited by fadushin

                                        @zoltrix I submitted Issue 13041, but it appears that the issue is actually due to the DNS resolver (unbound) not getting updated when an OpenVPN entry is added (See Issue 12991).

                                        I was able to revert Network Interfaces back to "All", and internal DNS resolution is working.

                                        So for anyone out there experiencing this issue, simply try to restart the DNS resolver, and see if that works.

                                        C 1 Reply Last reply Reply Quote 2
                                        • N
                                          NRgia
                                          last edited by

                                          Still present. Thanks for the above info. It helped me to resolve the DNS issue.

                                          Z 1 Reply Last reply Reply Quote 1
                                          • Z
                                            Zoltrix @NRgia
                                            last edited by

                                            @nrgia bit of a shame hey...

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