Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Firewall for DHCP requests

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 2 Posters 2.0k 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.
    • S Offline
      Synack 0
      last edited by

      Hi everybody :)

      I have multiple interfaces with separate VLANs on my pfSense router :

      • wan

      • dmz

      • servers

      • workstations

      I'd like the workstations to obtain IP addresses from the DHCP server (behind the "servers" interface).

      I added a firewall rule on the workstations interface : Pass UDP (67,68) from any source to the servers subnet
      But DHCP requests are broadcasted (255.255.255.255) so my rule won't let them through the interface.
      If I put "any" as a destination, I'm afraid a server located in the DMZ zone could answer the request.
      So, how could I allow only the DHCP server behind the "servers" interface to answer DHCP queries from workstations?

      Thanks.

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

        via dhcp relay under services.

        Does not matter what rules you put in, your not going to pass broadcast traffic across segments..  If you want to have some other dhcp server hand out IPs for a segment then use the dhcp relay option.  You can not be running a dhcp server on pfsense to use this feature.

        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 26.03 | Lab VMs 2.8.1, 26.03

        1 Reply Last reply Reply Quote 0
        • S Offline
          Synack 0
          last edited by

          Thank you very much ! This is exactly what I wanted and I was missing it…
          There's a problem though : my "workstations" interface isn't shown in the list (it has an IP address assigned to it), but I can see every other interface.

          Edit : whoops, my bad.

          1 Reply Last reply Reply Quote 0
          • S Offline
            Synack 0
            last edited by

            There's one thing I don't understand :

            If I want to enable DHCP relaying from workstations to servers AND from wan to DMZ, how would I do this? (I know this is dumb, but it's just an example).

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

              Why would you do such a thing?  You use dhcp relay because you want to leverage 1 dhcp server for all you networks  Why would you want to send a different segment to a different dhcp?

              If you have a segment that you don't want it to use your relay - run a dhcp server on that segment for that segment.

              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 26.03 | Lab VMs 2.8.1, 26.03

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