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

pfSense with CloudFlare (and WireGuard - soon) - setup AD DS

General pfSense Questions
3
49
9.1k
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
    bearhntr @bmeeks
    last edited by Jun 8, 2022, 8:05 PM

    @bmeeks

    login-to-view

    login-to-view

    WireGuard is there - but it has not been setup yet or configured. Just the PACKAGE installed.

    login-to-view

    B 1 Reply Last reply Jun 8, 2022, 8:14 PM Reply Quote 0
    • B
      bmeeks @bearhntr
      last edited by bmeeks Jun 8, 2022, 8:16 PM Jun 8, 2022, 8:14 PM

      @bearhntr said in pfSense with CloudFlare (and WireGuard - soon) - setup AD DS:

      @bmeeks

      login-to-view

      login-to-view

      WireGuard is there - but it has not been setup yet or configured. Just the PACKAGE installed.

      login-to-view

      Okay, I don't see any DNS redirect rules.

      Let's do this step-by-step.

      1. Turn off the DNS Resolver on pfSense (disable it for now).
      2. Open a command prompt session on a Windows client on your LAN (use either a laptop or desktop PC).
      3. Execute this command:
      nslookup cnn.com
      

      Post what comes back from that command. What should happen is your AD DNS server should go out and resolve that domain name to several IPv4 and IPv6 addresses. Here is what that looks like on my desktop Windows PC.

      login-to-view

      You can see in the above screen shot that the DNS lookup request was handled by one of my domain controllers (redmond1 is the machine name) at IP address 192.168.10.4. It resolved the domain "cnn.com" to that list of IP addresses.

      1. If the above steps don't work, then let's first figure out why and get that working.
      B 1 Reply Last reply Jun 9, 2022, 12:35 PM Reply Quote 0
      • B
        bearhntr @bmeeks
        last edited by Jun 9, 2022, 12:35 PM

        @bmeeks

        login-to-view

        B 1 Reply Last reply Jun 9, 2022, 1:05 PM Reply Quote 0
        • B
          bearhntr @bmeeks
          last edited by Jun 9, 2022, 12:46 PM

          @bmeeks said in pfSense with CloudFlare (and WireGuard - soon) - setup AD DS:

          I wanted to say thank you again for your assist with this.

          IPv6 on your LAN
          You did not state initially state you wanted to use IPv6. That is possibly going to be problematic if you do not have a static IPv6 subnet to work with (meaning NOT one configured by tracking your WAN IPv6 delegation).

          Before I decided to move to the AD DS to handle DNS and DHCP, pfSense was my DNS and DHCP/DHCPv6 -- using those same settings I showed earlier...WAN (DHCP / DHCPv6 from my ISP) and LAN (Track Interface = WAN). I would get an IPv6 address for both of them - and I watched them for weeks - they never changed....and my devices were indeed getting v6 addresses.

          Did you configure a DHCPv6 setup in the Active Directory DHCP server? If so, realize that unless you have a true static IPv6 prefix, you will have to change the DHCPv6 scope every time your WAN prefix changes.

          No - not yet...that is what I meant when I mentioned that I wanted to set that up. I just find it strange as there are no v6 Root Hints configured - but the Best Practices Analyzer in Windows shows them.

          login-to-view login-to-view

          If IPv6 is available, Windows will default to using it first. So that means the IPv6 configuration must be fully functional.

          You can, of course, let pfSense be the DHCPv6 server (or use something like SLAAC). But if you do that, local clients will not have their IPv6 address registered in the Active Directory DNS.

          B B 2 Replies Last reply Jun 9, 2022, 12:52 PM Reply Quote 0
          • B
            bearhntr @bearhntr
            last edited by Jun 9, 2022, 12:52 PM

            @bmeeks

            I have also noticed that only a few of my devices when they get a DHCP address - - are registering in the DNS. Before I made this change -- none of them were doing this.

            So when I ping a device by name - I get no response (no resolution). Same if I ping the IP.

            login-to-view

            Does not make any sense why DNS records are not getting created for my network in DNS.

            B 1 Reply Last reply Jun 9, 2022, 12:59 PM Reply Quote 0
            • B
              bmeeks @bearhntr
              last edited by bmeeks Jun 9, 2022, 1:00 PM Jun 9, 2022, 12:59 PM

              @bearhntr said in pfSense with CloudFlare (and WireGuard - soon) - setup AD DS:

              @bmeeks

              I have also noticed that only a few of my devices when they get a DHCP address - - are registering in the DNS. Before I made this change -- none of them were doing this.

              So when I ping a device by name - I get no response (no resolution). Same if I ping the IP.

              login-to-view

              Does not make any sense why DNS records are not getting created for my network in DNS.

              Checking that option just tells the DHCP server to always update DNS. This is sometimes required for dumb devices like IoT stuff. But in order for this to actually work, the DHCP client on the device requesting an IP address has to have some kind of hostname to start with that it can give to the DHCP server when asking for an IP. Otherwise there is nothing for the DHCP server to put into DNS. It can't pull the hostname out of the ether. The requesting device must offer it first.

              1 Reply Last reply Reply Quote 0
              • B
                bmeeks @bearhntr
                last edited by bmeeks Jun 9, 2022, 1:02 PM Jun 9, 2022, 1:01 PM

                @bearhntr said in pfSense with CloudFlare (and WireGuard - soon) - setup AD DS:

                @bmeeks said in pfSense with CloudFlare (and WireGuard - soon) - setup AD DS:

                I wanted to say thank you again for your assist with this.

                IPv6 on your LAN
                You did not state initially state you wanted to use IPv6. That is possibly going to be problematic if you do not have a static IPv6 subnet to work with (meaning NOT one configured by tracking your WAN IPv6 delegation).

                Before I decided to move to the AD DS to handle DNS and DHCP, pfSense was my DNS and DHCP/DHCPv6 -- using those same settings I showed earlier...WAN (DHCP / DHCPv6 from my ISP) and LAN (Track Interface = WAN). I would get an IPv6 address for both of them - and I watched them for weeks - they never changed....and my devices were indeed getting v6 addresses.

                Did you configure a DHCPv6 setup in the Active Directory DHCP server? If so, realize that unless you have a true static IPv6 prefix, you will have to change the DHCPv6 scope every time your WAN prefix changes.

                No - not yet...that is what I meant when I mentioned that I wanted to set that up. I just find it strange as there are no v6 Root Hints configured - but the Best Practices Analyzer in Windows shows them.

                login-to-view login-to-view

                If IPv6 is available, Windows will default to using it first. So that means the IPv6 configuration must be fully functional.

                You can, of course, let pfSense be the DHCPv6 server (or use something like SLAAC). But if you do that, local clients will not have their IPv6 address registered in the Active Directory DNS.

                You will likely want to update the list of root servers by clicking the Copy from Server button and putting the IP address of one of the root servers in the box within the dialog that pops up. Use 191.41.0.4. That will pull in a fresh list and you should then see several IPv6 servers.

                1 Reply Last reply Reply Quote 0
                • B
                  bmeeks @bearhntr
                  last edited by bmeeks Jun 9, 2022, 1:06 PM Jun 9, 2022, 1:05 PM

                  @bearhntr said in pfSense with CloudFlare (and WireGuard - soon) - setup AD DS:

                  @bmeeks

                  login-to-view

                  In your screenshot above, notice that your AD DNS server does not have a hostname shown. It says "Unknown".

                  Did you create a proper static hostname entry for it in the forward lookup zone in DNS? Also, do you have a proper reverse pointer lookup zone defined and is there a record there pointing to the hostname for the static IP of the AD DNS server?

                  Refer back to my example and you will see that nslookup should be able to resolve a valid hostname for your AD DNS server. Mine was "redmond1.themeeks.net", for example.

                  B 1 Reply Last reply Jun 9, 2022, 1:38 PM Reply Quote 0
                  • B
                    bearhntr @bmeeks
                    last edited by Jun 9, 2022, 1:38 PM

                    @bmeeks

                    That was the first thing that I did when I setup the DNS.

                    See entry for 192.168.10.250

                    login-to-view

                    the PTR record is also there for it

                    login-to-view

                    Notice that only the OP7010-BEAR created a DNS record when DHCP gave it an address...the 2x entries for it in the REV LOOKUP are from a reboot where I had the WiFi turned on...it got .26....wired is .33. The last entry in the reverse lookup is my work laptop which is on another VPN accessed Domain.

                    I also just noticed that the NETWORK is no longer showing as a DOMAIN - but as PRIVATE:

                    login-to-view

                    ---this is apparently a known "BUG" in Windows 2019.

                    B 1 Reply Last reply Jun 9, 2022, 5:55 PM Reply Quote 0
                    • B
                      bearhntr @bearhntr
                      last edited by Jun 9, 2022, 5:55 PM

                      @bmeeks

                      I think I may have it all working. pfSense has the DOMAIN overrides in place for the ipv4 and v6 addresses.

                      There are no DNS severs in pfSense GENERAL setup area.

                      There are no FORWARDERS in AD DNS. All root hints (v4 and v6) are populated and resolve. Some of my devices are picking up IPv6 addresses on reboot.

                      Still not getting things added to DNS for DHCP reservations...but I am gonna watch it and see how it goes as they start expiring.

                      NSLookup is now showing IPv6 address for DNS/DC - but not the IPv4 (on the AD DS server).

                      login-to-view

                      AGAIN - Much appreciate for the help. I will update as I learn more.

                      B 1 Reply Last reply Jun 9, 2022, 6:56 PM Reply Quote 0
                      • B
                        bmeeks @bearhntr
                        last edited by Jun 9, 2022, 6:56 PM

                        @bearhntr said in pfSense with CloudFlare (and WireGuard - soon) - setup AD DS:

                        @bmeeks

                        I think I may have it all working. pfSense has the DOMAIN overrides in place for the ipv4 and v6 addresses.

                        There are no DNS severs in pfSense GENERAL setup area.

                        There are no FORWARDERS in AD DNS. All root hints (v4 and v6) are populated and resolve. Some of my devices are picking up IPv6 addresses on reboot.

                        Still not getting things added to DNS for DHCP reservations...but I am gonna watch it and see how it goes as they start expiring.

                        NSLookup is now showing IPv6 address for DNS/DC - but not the IPv4 (on the AD DS server).

                        login-to-view

                        AGAIN - Much appreciate for the help. I will update as I learn more.

                        Glad it is working better. Windows prefers IPv6 when available, so no surprise about how the IP addresses are showing up.

                        As for DNS registration of local hosts, that is highly dependent on the dhcp client app on the local host. Things like Windows and most Linux desktops will either by default supply a desired hostname when requesting a DHCP address, or they can be configured to do so. Some Linux operating systems don't do that by default, but can easily be configured to supply a desired hostname with the DHCP request.

                        IoT devices are a toss up, though. Some may, but I suspect most won't, supply a desired hostname when requesting an address via DHCP. For those devices, you either need to do static IP assignments via MAC reservations in DHCP and manually provide static DNS names, or just forgo that feature for some devices.

                        IPv6 can also be a hinderance here because devices can and will have multiple IPv6 addresses by default (privacy extensions, for example). All of those may not get DNS registration. That's one of my beefs with IPv6 -- it seems referring to devices by a hostname was not fully thought through when it comes to all the multiple IPv6 addresses a client might have.

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