ClearFoundation Tracker - ClearOS
View Issue Details
0003791ClearOSapp-dhcp - DHCP Serverpublic2015-07-20 07:522015-07-31 13:50
bchambers 
bchambers 
normaltweakalways
closedfixed 
7.1.0 RC1 
7.1.0 RC17.1.0 RC1 
0003791: Minimum 12 hour lease time not always ideal
Some users would like short least times (eg. guest networks) of down to 1 hr. Options should be expanded with some lower lease times.
No tags attached.
Issue History
2015-07-20 07:52bchambersNew Issue
2015-07-20 07:52bchambersStatusnew => assigned
2015-07-20 07:52bchambersAssigned To => bchambers
2015-07-20 07:55bchambersNote Added: 0001721
2015-07-20 08:15bchambersStatusassigned => acknowledged
2015-07-20 08:15bchambersStatusacknowledged => confirmed
2015-07-20 08:15bchambersStatusconfirmed => resolved
2015-07-20 08:15bchambersFixed in Version => 7.1.0 RC1
2015-07-20 08:15bchambersResolutionopen => fixed
2015-07-31 13:50user2Statusresolved => closed

Notes
(0001721)
bchambers   
2015-07-20 07:55   
Temporary 'hack' for v6 users.

Edit:

/usr/clearos/apps/dhcp/controllers/subnets.php

and find the following lines:

$data['lease_times'] = array();
$data['lease_times'][12] = 12 . " " . lang('base_hours');
$data['lease_times'][24] = 24 . " " . lang('base_hours');

Modify this file with editor like 'nano' or 'vi' as follows:

$data['lease_times'] = array();
$data['lease_times'][1] = 1 . " " . lang('base_hour');
$data['lease_times'][2] = 2 . " " . lang('base_hours');
$data['lease_times'][4] = 4 . " " . lang('base_hours');
$data['lease_times'][6] = 6 . " " . lang('base_hours');
$data['lease_times'][12] = 12 . " " . lang('base_hours');
$data['lease_times'][24] = 24 . " " . lang('base_hours');