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

    Invalid DHCP pool - for LAN subnet 192.168.xx.0/23 detected. Please correct the settings in Services, DHCP Server

    Scheduled Pinned Locked Moved DHCP and DNS
    24 Posts 4 Posters 5.5k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by johnpoz

      @pyrodex said in Invalid DHCP pool - for LAN subnet 192.168.xx.0/23 detected. Please correct the settings in Services, DHCP Server:

      firewall php-fpm[350]: /services_dhcp.php

      There is where the error is coming from.. Not actually dhcpd, but why have no idea... Do you have any vips or anything.. You didn't set your own odd rules for dhcp on lan did you?

      Only thing off the top would be to get rid of all settings and start over.. Changing the range if you need to, and then moving it back to the /23 you want... For the life of me can not understand why your using /23 in the first place... Why would you not just use a /24? You don't seem to have that many clients that /24 would not be enough space.

      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

      P 1 Reply Last reply Reply Quote 0
      • P
        pyrodex @johnpoz
        last edited by

        @johnpoz said in Invalid DHCP pool - for LAN subnet 192.168.xx.0/23 detected. Please correct the settings in Services, DHCP Server:

        @pyrodex said in Invalid DHCP pool - for LAN subnet 192.168.xx.0/23 detected. Please correct the settings in Services, DHCP Server:

        firewall php-fpm[350]: /services_dhcp.php

        There is where the error is coming from.. Not actually dhcpd, but why have no idea... Do you have any vips or anything.. You didn't set your own odd rules for dhcp on lan did you?

        Only thing off the top would be to get rid of all settings and start over.. Changing the range if you need to, and then moving it back to the /23 you want... For the life of me can not understand why your using /23 in the first place... Why would you not just use a /24? You don't seem to have that many clients that /24 would not be enough space.

        Size of the subnet is irrelevant since I have an IoT without the issue setup the same way. But in lieu of testing I disabled DHCP on the LAN, adjusted the RANGE first for a /24 and then when I saved it no error. I changed LAN from /23 to /24, went back in and enabled DHCP which showed the proper /24 subnet mask and all and the same error occurred but for the /24....

        Dec 23 18:35:51 firewall php-fpm[49585]: /services_dhcp.php: New alert found: Invalid DHCP pool  -  for LAN subnet 192.168.14.0/24 detected. Please correct the settings in Services, DHCP Server
        

        What is going on with this?

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

          I agree the /23 is irrelevant, just a really ODD choice ;) You can not possible have that many devices on each segment that a /23 is called for - do you? ;)

          Yes the error is odd, have never seen it in the 10 some years using pfsense..

          You don't have any vips or anything setup? Try moving away to a different range completely.. It doesn't say overlap any tunnels or remote networks for say openvpn? You don't have any routes setup for that range or overlap?

          Lets call in the big guns @jimp and @Derelict and see if they have any ideas..

          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

          P 1 Reply Last reply Reply Quote 0
          • P
            pyrodex @johnpoz
            last edited by

            @johnpoz said in Invalid DHCP pool - for LAN subnet 192.168.xx.0/23 detected. Please correct the settings in Services, DHCP Server:

            I agree the /23 is irrelevant, just a really ODD choice ;) You can not possible have that many devices on each segment that a /23 is called for - do you? ;)

            Yes the error is odd, have never seen it in the 10 some years using pfsense..

            You don't have any vips or anything setup? Try moving away to a different range completely..

            Lets call in the big guns @jimp and @Derelict and see if they have any ideas..

            I've got a pfblockerng VIP but the issue occurred even before the VIP was in place.

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

              That normally defaults to 10.10.10 or something that shouldn't be a issue.. I was thinking something is overlapping... I did a query on the code for services_dhcp.php and I don't even see where that error would be called out..

              Do you have anything else that could be possible overlapping that range in someway, a vpn tunnel network or remote, or something else... Is it possible to change it so something completely different say 192.168.100 or something that doesn't overlap any of your other networks.

              If that works fine without any errors we can put it back to the 192.168.14, for sure we need to figure out what exactly is causing it.. Even if cosmetic which it seems to be since your saying dhcp is working. The error being generated is not all that helpful.. It sure is valid from a range point of view from what you have posted.

              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
              • GertjanG
                Gertjan
                last edited by

                These are in comment lines before the error is spit out :

                                                // If the user has changed the subnet from the interfaces page and applied,
                                                // but has not updated the DHCP range, then the range to/from of the pool can be outside the subnet.
                                                // This can also happen when implementing the batch of changes when the setup wizard reloads the new settings.
                
                .... some tests ...
                
                                                                // Even though the running interface subnet does not match the pool range,
                                                                // the interface subnet in the config file contains the pool range.
                                                                // We are somewhere part-way through a settings reload, e.g. after running the setup wizard.
                                                                // services_dhcpdv4_configure will be called again later when the new interface settings from
                                                                // the config are applied and at that time everything will match up.
                                                                // Ignore this pool on this interface for now and just log the error to the system log.
                
                
                

                Btw : /etc/inc/services.inc

                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 1
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by johnpoz

                  So shouldn't error have gone away after he changed it to /24, etc.. ?

                  Good trackdown! I didn't think to look there ;)

                  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
                  • GertjanG
                    Gertjan
                    last edited by Gertjan

                    An error like this

                    Dec 23 08:47:35 firewall php-fpm[28463]: /services_unbound.php: New alert found: Invalid DHCP pool  -  for LAN subnet 192.168.14.0/23 detected. Please correct the settings in Services, DHCP Server
                    

                    misses nearly half the information - and that why it's triggered.

                    Compare this to the actual error text string :

                    $error_msg = sprintf(gettext('Invalid DHCP pool %1$s - %2$s for %3$s subnet %4$s/%5$s detected. Please correct the settings in Services, DHCP Server'), $poolconf['range']['from'], $poolconf['range']['to'], convert_real_interface_to_friendly_descr($dhcpif), $subnet, $ifcfgsn);
                    

                    Only variables %3$s - %4$s %5$ = 3, 4 and 5 print useful text, which are convert_real_interface_to_friendly_descr($dhcpif), $subnet and $ifcfgsn

                    These become 'LAN', '192.168.14.0' and '23' in your case.

                    Variable 1 and 2, in that pool, $poolconf['range']['from'] and $poolconf['range']['to'] are probably not defined and/or empty.
                    That triggers the error.

                    @pyrodex : check you config.xml and compare good relation between :

                    	<interfaces>
                    ....		<lan>
                    			<if>fxp0</if>
                    ....
                    			<enable></enable>
                    ....
                    			<ipaddr>192.168.1.1</ipaddr>
                    			<subnet>24</subnet>
                    

                    and

                    	<dhcpd>
                    		<lan>
                    			<range>
                    				<from>192.168.1.70</from>
                    				<to>192.168.1.253</to>
                    			</range>
                    ....
                    

                    Also, are there any 'sub' <pool> in :

                    	<dhcpd>
                    		<lan>
                    ....
                    			<pool>
                    				<range>
                    					<from>192.168.1.210</from>
                    					<to>192.168.1.220</to>
                    				</range>
                    

                    ?

                    Probably not related :
                    Take also a look at this :

                    @pyrodex said in Invalid DHCP pool - for LAN subnet 192.168.xx.0/23 detected. Please correct the settings in Services, DHCP Server:

                    Dec 23 14:18:16 firewall dhcpleases: Sending HUP signal to dns daemon(46048)

                    one second later :

                    Dec 23 14:18:17 firewall dhcpleases: Sending HUP signal to dns daemon(46048)
                    Dec 23 14:18:17 firewall dhcpleases: Sending HUP signal to dns daemon(46048)

                    Check your syslog for more "Sending HUP signal to dns daemon".
                    Unbound being restarted many times per minute is not good at all.

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

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      pyrodex @Gertjan
                      last edited by

                      @Gertjan

                      <lan>
                                              <descr><![CDATA[LAN]]></descr>
                                              <if>vmx1</if>
                                              <enable></enable>
                                              <spoofmac></spoofmac>
                                              <ipaddr>192.168.14.1</ipaddr>
                                              <subnet>23</subnet>
                                              <ipaddrv6>track6</ipaddrv6>
                                              <track6-interface>wan</track6-interface>
                                              <track6-prefix-id>1</track6-prefix-id>
                                      </lan>
                      
                       <lan>
                                              <range>
                                                      <from>192.168.15.220</from>
                                                      <to>192.168.15.240</to>
                                              </range>
                                              <enable></enable>
                                              <failover_peerip></failover_peerip>
                                              <defaultleasetime>86400</defaultleasetime>
                                              <maxleasetime></maxleasetime>                                                                                                      
                                              <netmask></netmask>
                                              <gateway></gateway>                                                                                                                          
                                              <domain>lan</domain>                                                                                                                         
                                              <domainsearchlist>lan;iot;dmz</domainsearchlist>                                                                                             
                                              <ddnsdomain></ddnsdomain>                                                                                                                    
                                              <ddnsdomainprimary></ddnsdomainprimary>                                                                                                      
                                              <ddnsdomainkeyname></ddnsdomainkeyname>                                                                                                      
                                              <ddnsdomainkeyalgorithm>hmac-md5</ddnsdomainkeyalgorithm>                                                                                    
                                              <ddnsdomainkey></ddnsdomainkey>                                                                                                              
                                              <mac_allow></mac_allow>                                                                                                                      
                                              <mac_deny></mac_deny>                                                                                                                        
                                              <ddnsclientupdates>allow</ddnsclientupdates>                                                                                                 
                                              <tftp>192.168.14.31</tftp>                                                                                                                   
                                              <ldap></ldap>                                                                                                                                
                                              <nextserver>192.168.14.31</nextserver>                                                                                                       
                                              <filename>pxelinux.0</filename>                                                                                                              
                                              <filename32>syslinux32.efi</filename32>                                                                                                      
                                              <filename64>syslinux64.efi</filename64>                                                                                                      
                                              <rootpath></rootpath>                                                                                                                        
                                              <numberoptions></numberoptions>  
                      

                      I fixed it myself by removing all my static maps and re-adding...

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

                        So what what wrong with the statics? I looked through them I didn't see anything that was out of scope..

                        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
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.