SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0003266: Expired Leases - MantisBT
MantisBT - Endian Firewall
View Issue Details
0003266Endian FirewallDHCP Serverpublic2010-11-08 08:312013-09-24 09:04
gmar_87 
simon-endian 
normaltweakalways
resolvedfixed 
2.4 
2.3 
0003266: Expired Leases
Expired DHCP leases are never cleared from Endian Firewall.
I have leases from August 2010 still appearing in the web-interface.
The only way i can clear them is to edit or delete the dhcpd.leases file in /var/efw/dhcp

Can a feature be added so that we can choose how long to keep expired leases (1 week, 2 weeks, etc..)?
No tags attached.
duplicate of 0001100closed simon-endian label change in proxy settings 
jpg Endian_2.4.1_DHCP_ExpiredLease.jpg (22,123) 2010-11-24 09:20
http://bugs.endian.it/file_download.php?file_id=549&type=bug
jpg
Issue History
2010-11-08 08:31gmar_87New Issue
2010-11-23 07:06lorenzo-endianAssigned To => lorenzo-endian
2010-11-23 07:06lorenzo-endianStatusnew => acknowledged
2010-11-23 07:34gmar_87Note Added: 0005181
2010-11-23 10:06lorenzo-endianNote Added: 0005183
2010-11-23 10:06lorenzo-endianStatusacknowledged => feedback
2010-11-24 09:19gmar_87Note Added: 0005190
2010-11-24 09:20gmar_87File Added: Endian_2.4.1_DHCP_ExpiredLease.jpg
2010-12-03 13:27lorenzo-endianNote Added: 0005293
2010-12-03 13:27lorenzo-endianAssigned Tolorenzo-endian => simon-endian
2010-12-03 13:27lorenzo-endianStatusfeedback => confirmed
2011-02-17 09:31lorenzo-endianCustomer Occurencies => 0
2011-02-17 09:31lorenzo-endianSeverityfeature => minor
2011-02-18 17:09ra-endianSeverityminor => tweak
2013-09-24 09:04AnonymousNote Added: 0008535
2013-09-24 09:04AnonymousRelationship addedduplicate of 0001100
2013-09-24 09:04AnonymousStatusconfirmed => resolved
2013-09-24 09:04AnonymousFixed in Version => 2.3
2013-09-24 09:04AnonymousResolutionopen => fixed

Notes
(0005181)
gmar_87   
2010-11-23 07:34   
An option to clear all dynamic leases regardless of age would also be much appreciated.
(0005183)
lorenzo-endian   
2010-11-23 10:06   
Hi gmar_87,

In "Services" >> "DHCP serer", if you click on the "+" sign, you should be able to set the leases for the DHCP ...

Does a reconfiguration of these setup solve the problem?

Thanks in advance!

Lo
(0005190)
gmar_87   
2010-11-24 09:19   
Hi Lo,

I have tried re-entering the configuration and saving settings but an old lease is still shown. Here is my dhcpd.conf, minus the fixed leases i have setup:

******dhcpd.conf******

ddns-update-style none;
deny bootp;
authoritative;
option wpad code 252 = text;



shared-network GREEN {
    interface br0;
    server-identifier 10.1.1.1;
    subnet 10.1.1.0 netmask 255.255.255.0 {
        pool {
            deny dynamic bootp clients;
            range 10.1.1.50 10.1.1.60;
        }
        default-lease-time 3600;
        max-lease-time 7200;
        option subnet-mask 255.255.255.0;
          option domain-name "GMAR";
          option routers 10.1.1.1;
          option wpad "http://10.1.1.1/proxy.pac"; [^]
          option domain-name-servers 10.1.1.1;

******dhcpd.conf******

As you can see, the max lease time is 120 minutes. After 120 minutes the lease still appears on this page, but the "Lease expires (local time d/m/y)" column shows and strike through the time stamp. See screenshot attached.
(0005293)
lorenzo-endian   
2010-12-03 13:27   
Hi gmar_87,

I can confirm that the leases stay there even when expired; I think that this aspect should be improved :-)

Thanks for providing this hint to us!

Lo
(0008535)
Anonymous   
2013-09-24 09:04   
Hi guys to clear the dhcp lease information just remove the file "dhcp lease" and "dhcp lease~" in "/var/lib/dhcp". And refresh the web interface....