GraseHotspot / grase-www-portal

Grase WWW Portal (Main Package)
51 stars 20 forks source link

Ability to set DHCP range (Trac #85) #85

Closed ghost closed 10 years ago

ghost commented 10 years ago

We realy would like to have the ability to set the dhcp-scope by the admin interface, because we want to add devices with static ip-addresses in the network.

The dhcp-scope can be set by adding the lines dhcpstart X (for example 10) dhcpend Y (for example 220)

to the /etc/chilli/local.conf file. Only now this file will be overwritten by grase.

Migrated from http://trac.grasehotspot.org/ticket/85

{
    "status": "closed", 
    "changetime": "2013-05-10T03:38:16", 
    "description": "We realy would like to have the ability to set the dhcp-scope by the admin interface, because we want to add devices with static ip-addresses in the network. \n\nThe dhcp-scope can be set by adding the lines\ndhcpstart X (for example 10)\ndhcpend   Y (for example 220) \n\nto the /etc/chilli/local.conf file.\nOnly now this file will be overwritten by grase.\n\n", 
    "reporter": "peter boon", 
    "cc": "dokumentasidulido@gmail.com", 
    "resolution": "fixed", 
    "_ts": "1368157096793681", 
    "component": "Coova Chilli", 
    "summary": "Ability to set DHCP range", 
    "priority": "critical", 
    "keywords": "", 
    "version": "3.7", 
    "time": "2012-09-27T12:44:38", 
    "milestone": "3.9", 
    "owner": "tim", 
    "type": "enhancement"
}
ghost commented 10 years ago

Trac update at 20121009T13:11:54:

Like ticket #26, we changed the /usr/share/grase/www/radmin/chilliconfig.php After saving the settings from the admin-portal, this adds the lines

xx CoovaChilli ChilliSpot-Config += dhcpstart=20 xx CoovaChilli ChilliSpot-Config += dhcpend=220

to the radreply table in the radius database

file: /usr/share/grase/www/radmin/chilliconfig.php

58 "type" => "int"), // added the comma // 59 'dhcpstart' => array( 60 "label" => T("DHCP Start"), 61 description" => T("DHCP start."), 62 "type" => "int"), 63 'dhcpend' => array( 64 "label" => T("DHCP end"), 65 "description" => T("DHCP end."), 66 "type" => "int") 67 );

Tested is and it works.

to:

1349788529852852

  • peter boon changed _comment1 from:

Like ticket #26, we changed the /usr/share/grase/www/radmin/chilliconfig.php After saving the settings from the admin-portal, this adds the lines

xx CoovaChilli ChilliSpot-Config += dhcpstart=20 xx CoovaChilli ChilliSpot-Config += dhcpend=220

to the radreply table in the radius database

file: /usr/share/grase/www/radmin/chilliconfig.php

58 "type" => "int"), --- //added the comma // 59 'dhcpstart' => array( 60 "label" => T("DHCP Start"), 61 description" => T("DHCP start."), 62 "type" => "int"), 63 'dhcpend' => array( 64 "label" => T("DHCP end"), 65 "description" => T("DHCP end."), 66 "type" => "int") 67 );

Tested is and it works.

to:

1349790688277152

  • peter boon commented:

Like ticket #26, we changed the /usr/share/grase/www/radmin/chilliconfig.php After saving the settings from the admin-portal, this adds the lines

xx CoovaChilli ChilliSpot-Config += dhcpstart=20 xx CoovaChilli ChilliSpot-Config += dhcpend=220

to the radreply table in the radius database

file: /usr/share/grase/www/radmin/chilliconfig.php

58 "type" => "int"), --- //added the comma // 59 'dhcpstart' => array( 60 "label" => T("DHCP Start"), 61 description" => T("DHCP start."), 62 "type" => "int"), 63 'dhcpend' => array( 64 "label" => T("DHCP end"), 65 "description" => T("DHCP end."), 66 "type" => "int") 67 );

Tested it and it works.

ghost commented 10 years ago

Trac update at 20121011T00:10:49:

Thanks Peter, fixed in r295

  • tim changed resolution from "" to "fixed"
  • tim changed status from "new" to "closed"
ghost commented 10 years ago

Trac update at 20130510T03:34:27:

could i specific ip range per group. ? example for group Student 10.0.1.50 - 10.0.1.100 teacher 10.0.1.101 - 10.0.1.200 etc.

  • daarul uluum lido changed priority from "minor" to "critical"
ghost commented 10 years ago

Trac update at 20130510T03:38:16: tim commented:

Replying to [comment:3 daarul uluum lido]:

could i specific ip range per group. ? example for group Student 10.0.1.50 - 10.0.1.100 teacher 10.0.1.101 - 10.0.1.200 etc. This isn't possible because IP addresses are handed out before the client logs in so no group information is available. And you can't change a clients IP at login.