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

    "Deny unknown clients" enabled, getting an IP anyway…

    Scheduled Pinned Locked Moved DHCP and DNS
    21 Posts 3 Posters 4.7k 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.
    • 2
      2chemlud Banned
      last edited by

      WAN config: see attached :-)

      Under "System" -> "Routing" this WAN is the only gateway.

      LAN: 10.0.0.0/26 DHCP lease range: 10.0.0.10 to 10.0.0.11 (statics starting from 10.0.0.12 to 10.0.0.40)

      OPT1: 10.0.2.0/28 DHCP lease range: 10.0.2.2 to 10.0.2.3 (static leases from 10.0.2.6 to 10.0.2.14)

      My DHCP setup is the same as yours, only that my static mappings are at the UPPER end of the possible IP range, yours at the lower end…

      Why should that make any difference? (can't change that anyways, would take days, with all configs, firewall rules , links on desktops etc. pp.)

      How can I erase the IP-config of my computer, so that it doesn't actively request this 10.0.2.2 when booting (btw getting the IP lease long before login at the OS level)?

      wan.jpg
      wan.jpg_thumb

      1 Reply Last reply Reply Quote 0
      • 2
        2chemlud Banned
        last edited by

        Next try:

        Client shutdown. Added a pcmcia network interface and rebooted to Win 7 (delete temporary lease for 10.0.2.2 at pfSense in advance). Connected this new interface via RJ45 to the OPT1.

        Same result, get the 10.0.2.2 IP and even worse: The ICMP from my ISP gateway is back!

        I don't really understand what's going on here…

        pcmcia1.jpg
        pcmcia1.jpg_thumb

        1 Reply Last reply Reply Quote 0
        • 2
          2chemlud Banned
          last edited by

          Ok, I have an idea what's going wrong here:

          I recognized that both the fixed network interface of the client notebook AND the pcmcia network interface have a DHCP Static Mapping on the LAN (!!), but not on the OPT1 interface. But apparently pfSense does not differentiate between the interfaces w.r.t. static mappings and provides an IP even when the network interface is added to the WRONG network (here: OPT1 instead of LAN)

          Proof of concept:

          Took a pcmcia network adapter without static mapping, result: No IP was leased to the client(as to be expected), see pic 1

          Next, take another client with a static mapping for LAN (but not OPT1) and connect it to OPT1, result: Get an IP lease (10.0.2.2, as usual) at the wrong interface, see pic 2.

          Can anybody reproduce this?

          pcmsmall.jpg
          pcmsmall.jpg_thumb
          dellco.jpg
          dellco.jpg_thumb

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

            yes this is know thing… The dhcp server shares this database.. So if it knows about a client, its know no matter what interface it connects on.

            There have been many threads about this, would have dig up a few.

            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 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • 2
              2chemlud Banned
              last edited by

              From security point of view this is eeehhhm sub-optimal. Not?

              Did anybody file a bug for that?

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

                Why would it be a security bug… The client is KNOWN to pfsense and the dhcp server..  Just because you move it to a different segment, still known - so why should it not get an IP?  Or why would it not be able to talk to pfsense?

                Look through the bug list, dok is the bug king he like knows them all off the top of his head ;)

                here
                https://redmine.pfsense.org/issues/4584

                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 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • 2
                  2chemlud Banned
                  last edited by

                  Hi John!

                  I highly appreciate your competent comments from the first day I joined this forum, but at certain points we will never share the same opinion.

                  Look, I have different networks at the same pfSense to strictly separate certain resources from each other. These networks have normally no way to communicate with each other BY DESIGN. I don'T want any clients from the dirty network to be active in the other network, to keep it simple.

                  So it definitely IS a security bug if a client not authorized for this network gets an IP and can browse arround .

                  But I guess you see this as "security by obscurity".

                  Let's see it the other way arround: Why has the GUI a static mapping tab for each DHCP server, as this suggests that you can manage access for each network SEPARATELY? Then scrap that and say to the user: "Only one tab here, as there is no way to limit access. Anybody having access to ANY network here has access to ALL networks."

                  That would be fair. But hard so sell for a "security appliance"….

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

                    I am just saying that your security appliance KNOWS about this client, the wording in the setting should be changed for sure.  But its an issue with the wording, and the fact that the known clients is shared in one listing..

                    See the bug..  From 9 months ago..

                    There are many people that might say, hey I know this client - he can connect to any network he wants.  Maybe he changes wifi networks, maybe he plugs into the conf room, and his desk with this laptop, etc.

                    The wording should reflect this issue that its a shared database for known clients, and that if it moves to network B, he would get an IP there if dhcp is on that network since he is known from network A static settings, etc.

                    I don't really see it as a security issue that the wording of static arp and deny "unknown" needs more clarification.

                    And to be honest not sure I would classify security as not giving a client dhcp.. Your firewall rules should prevent what you don't want from any client talking on the network..  MACs can be spoofed for sure..  Limiting communication based on mac is not really good security if you ask me.

                    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 24.11 | Lab VMs 2.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    • 2
                      2chemlud Banned
                      last edited by

                      …had a look now at the bug report, two things come to my mind:

                      1. Thanx to Phil that he gave me the chance to reproduce this and find the same things as he did ;-)

                      2. Typical pfSense: Nobody has taken the slightest notice of this bug report within 9 months... wuuuaaaa. All busy brushing up the GUI, which will not help to improve network security (but has to be done someday, I know)

                      Someday soon I will get Parkinsons from all the head shaking day in and day out...

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

                        Your more than welcome to jump in and fix it ;)

                        I would say the move to 2.3 and yes a new gui is a bit more involved than cosmetics..

                        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 24.11 | Lab VMs 2.8, 24.11

                        1 Reply Last reply Reply Quote 0
                        • 2
                          2chemlud Banned
                          last edited by

                          Ok, I need a crash course in …eeehm ...which language btw? :-D

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