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

    DHCP Server leases time

    DHCP and DNS
    3
    5
    10.8k
    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.
    • F
      fr0t
      last edited by

      Hi All,

      Just quick question because I am not sure either I am doing something wrong or I missed something ?!

      I am using pfSense as Captive Portal with vouchers authentication (I mention about this because I may have to change something in there).

      In Captive Portal Status menu I see all active users and vouchers etc - all works fine, but when I go to [Status] -> [DHCP Leases] I can see all leases are 24hrs. I checked in [Services] -> [DHCP Server] "Lease Time" box was empty and described that default value is 7200 seconds (5 days ?). And now - doesn't matter what I type in and save changes, reload DHCP, reconnect user - its lease time is always 24hrs ?!

      What I am doing wrong or what else should I do?

      Its pain in the back because if some user will not get back to system within 24hrs is getting another IP and then system doesn't want to accept his voucher (which is valid for week or month). When I temporary add this user into static DHCP entries (IP + MAC) then his voucher is accepted and all works fine.

      In [Services] -> [DHCP Server]:
      "Deny unknown clients" is unticked
      "Enable Static ARP Entries" is unticked
      "Change DHCP display lease time from UTC to local time" is unticked
      All text boxes are empty by default except IP pool range which is almost full subnet (big enough for all users in total).

      Any Idea?
      I can provide more info if I missed something.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        @fr0t:

        default value is 7200 seconds (5 days ?)

        Mathematics clearly isn't your forte…  :o

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

          heheheheeh… Oh dok, you make me laugh..

          Frot -- how many seconds in a minute?

          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.7.2, 24.11

          1 Reply Last reply Reply Quote 0
          • F
            fr0t
            last edited by

            Yeah… sorry, I can't even member how did I count it, in rush I calculated something and without thinking wrote result here :)

            Any way its 2 hrs which is not what I see on [Status] -> [DHCP Leases]

            Any ideas?

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

              You do understand that is if the client doesn't ask for a specific lease.. If they ask for 24 hours, unless you change the max to something below that then dhcpd would give them a 24 hours lease.

              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.7.2, 24.11

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