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

    "Static" DHCP addresses need individually assigned DNS Servers

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 3 Posters 2.3k 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.
    • E Offline
      echobinary
      last edited by

      Ok - bit of a noob. Trying to search for dynamically assigning DNS servers gave me lots of info on DynDNS stuff. NOT what I need :)

      In my DHCP Server Page I have a bunch of MAC Addresses assigned to always get the same IP Address from the DHCP Server.

      Is there a way to assign DNS Servers based on IP/MAC address as well such that I can point my children's devices to OpenDNS's FamilyShield DNS Servers:
      208.67.222.123
      208.67.220.123

      But on the devices owned by myself and my wife I want the DNS Servers to point to OpenDNS's Home (and unblocked) Servers:
      208.67.222.222
      208.67.220.220

      Or even Google's DNS Servers; or heck - even the DNS servers for my ISP (gasp!)

      Any pointers in the right direction?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • K Offline
        KineticPro
        last edited by

        there is probably another way to do this but setup 2 lan gateways

        192.168.1.200 for kids make default and open to all
        192.168.1.201 for you and wife then enable Static ARP and give your mac ip ectra

        this way you and only the MAC addresses you approve will have unlimited access but any new devices will be forced to use the default gateway until you give them access to the other gateway

        so 1 wan coming in and 2 lan gateways doing the regulation you are looking for

        1 Reply Last reply Reply Quote 0
        • E Offline
          echobinary
          last edited by

          @KineticPro:

          there is probably another way to do this but setup 2 lan gateways

          192.168.1.200 for kids make default and open to all
          192.168.1.201 for you and wife then enable Static ARP and give your mac ip ectra

          this way you and only the MAC addresses you approve will have unlimited access but any new devices will be forced to use the default gateway until you give them access to the other gateway

          so 1 wan coming in and 2 lan gateways doing the regulation you are looking for

          This is interesting - I actually kind of like this solution better for a lot of reasons. The next question is:
          How do I set up 2 LAN Gateways?  (Doh! lol)

          1 Reply Last reply Reply Quote 0
          • K Offline
            KineticPro
            last edited by

            first you need a total of 3 Nic as i said 1 WAN, 2 Lan
            you will probably need to buy another card even a cheap PCI will work

            boot into the web interface of PFSense > Interfaces >
            Assign WAN {probably have}, Lan {Probably have}, Lan2 {New} <pfsense will="" probably="" name="" it="" opt1="">then assign what ever the new interface is for example re1 or em1

            then go to interface and make the settings the same as your current lan

            Services > DHCP Server > LAN2
            use same settings as lan 1 tell you get to Static ARP then enable it
            Make the Gateway an unused ip that will not be assigned by dhcp
            change the DNS servers to full access
            in the bottom of that page enter the device MAC info
            <note 2="" you="" will="" probably="" need="" to="" set="" any="" lan="" device="" static="" keep="" them="" on="" the="" lan2="" gateway="">Services > DHCP Server > LAN1
            change DNS servers to limited access</note></pfsense>

            1 Reply Last reply Reply Quote 0
            • jimpJ Offline
              jimp Rebel Alliance Developer Netgate
              last edited by

              On 2.1 you could (though it would be a bit cumbersome) setup separate DHCP pools and put in the list of MACs on one to allow and deny on the other, and they can have unique DNS servers that way.

              Of course that would only last until the kids figure out they can hardcode an IP/DNS or spoof their MAC and get around the restrictions. Separating them onto a distinct network is best, assuming they don't have physical access to the gear to switch themselves over to the other network…

              How much you need to worry about that stuff really depends on how smart/sneaky/crafty the kids are :-)

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

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