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

    can pfsense filter isc.org dhcp server traffic?

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 2 Posters 472 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.
    • I
      iwishitwouldwork
      last edited by

      I have my reasons for wanting to preserve the isc.org server that I have running on my file server.

      I read online (somewhere) that, by default, a router would not forward DHCP traffic between interfaces. I further read that this might not work on an isc.org DHCP server because it uses raw packets. I don't know enough to test any of that.

      What I do know is that I have tried two different routers. Let the ISC interface be the one that has my isc.org dhcp server. I claim that that ought to mean that the OTHER interface on the router should not be able to get DHCP packets originating on the ISC interface. But that's not what I observe. i've tried wireshark and such, and I can see packets, but I don't understand them sufficiently. I have tried to prevent the isc.org server from responding to the MAC address -- but both "deny booting" and "ignore booting" do not do what I need.

      So, I'm considering a small PC running pfsense w/ two GBe interfaces. I will need one interface (WAN) to configure itself via DHCP; the other (LAN) I can assign a static IP, but I want it to ignore/drop all DHCP packets, so that the WAN interface can't get its configuration from the LAN side. Is this possible?

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

        @iwishitwouldwork said in can pfsense filter isc.org dhcp server traffic?:

        So, I'm considering a small PC running pfsense w/ two GBe interfaces. I will need one interface (WAN) to configure itself via DHCP; the other (LAN) I can assign a static IP, but I want it to ignore/drop all DHCP packets, so that the WAN interface can't get its configuration from the LAN side. Is this possible?

        My one and only pfSEnse WAN setup :

        5bbd0666-e525-4e62-997d-4d1ea2e284da-image.png

        You saw the (ix3) ? That's the name of the driver that us used for my 'WAN' interface.

        The IPv4 configuration Type is "DHCP".

        So, a process called 'dhclient' is bound to that ix3 or WAN interface to handle DHCP on my WAN interface.
        And no other interface !!

        Let's check :

        [23.01-RELEASE][root@pfSense.local.tld]/root: ps ax | grep 'dhclient'
        43239  -  Is      0:00.00 dhclient: ix3 [priv] (dhclient)
        46094  -  Ss      0:01.72 dhclient: ix3 (dhclient)
        ....
        

        So, yes : dhclient is the process in memory, active, waiting to 'do something' when needed. For example, it will renew my WAN lease against the upstream ISP router (with a DHCP server) when my WAN lease is half way.

        All this has nothing with what you do on your LAN interface.
        By default, the LAN interface uses a DHCP server process.
        A DHCP server works with DHCP clients. On pfSense, these two are complete different processes, with different settings and goals in mind.

        The DHCP server is bound to a (one) interface :

        9854f339-bbd6-49d7-bf8f-0020cec81d97-image.png

        This image shows you that I have one DHCP server process that listens to the LAN interface.
        And one for the PORTAL interface, and another for the IDRAZC interface.

        The dhclient can not - will not - should not listen to packets coming into LAN PORTAL and IDRAC.
        The DHCP server on LAN can not see - hear - notice DHCP traffic that comes in the interface WAN, PORTAL IDRAC.
        Etc.

        All this works out of the box.

        @iwishitwouldwork said in can pfsense filter isc.org dhcp server traffic?:

        my isc.org dhcp server

        That's the one pfSense uses.

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

        I 1 Reply Last reply Reply Quote 1
        • I
          iwishitwouldwork @Gertjan
          last edited by

          @gertjan

          which is what i want, so thanks for confirming that.

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

            @iwishitwouldwork

            pfSense told me :

            79276e31-8545-4ca7-b0ac-bb655ab53733-image.png

            Remember : the logs always contain 'the answer' 😊

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

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