GraseHotspot / grase-www-portal

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

Change network settings from GRASE Interface (Trac #16) #16

Closed ghost closed 10 years ago

ghost commented 10 years ago

We need to be able to change network settings from the web interface. This needs to include DNS settings, and ip addresses/netmasks.

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

{
    "status": "closed", 
    "changetime": "2011-10-10T05:49:41", 
    "description": "We need to be able to change network settings from the web interface. This needs to include DNS settings, and ip addresses/netmasks.", 
    "reporter": "tim", 
    "cc": "", 
    "resolution": "fixed", 
    "_ts": "1318225781609439", 
    "component": "Other Backend", 
    "summary": "Change network settings from GRASE Interface", 
    "priority": "major", 
    "keywords": "dns, network, ip address, dnsmasq", 
    "version": "3.4", 
    "time": "2011-08-22T06:04:59", 
    "milestone": "3.6", 
    "owner": "tim", 
    "type": "defect"
}
ghost commented 10 years ago

Trac update at 20110907T23:48:25:

Similar to how we run a shell command in the main config file to get the right ethernet interface, we can run a wget/curl command to fetch a radmin page that outputs the correct settings (ip address, netmask) so we don't need a runner script to try and modify the output of the files. Still need method to restart chilli from web interface then. Can monit help?

  • tim changed status from "new" to "accepted"
ghost commented 10 years ago

Trac update at 20111009T22:40:06:

Cron runner script fetches changes from php script, and only restarts dnsmasq and coova-chilli if the config changes. (There is a last changed timestamp, so if you resave the same settings, it will restart on the 5 minute mark regardless).

Coova-Chilli gets the network settings in /etc/chilli/config as options from radius arrive too late to change network settings.

Dnsmasq gets settings from /etc/dnsmasq.d/01-grasehotspot which is created by the cron runner script

  • tim changed keywords from "" to "dns, network, ip address, dnsmasq"
  • tim changed milestone from "3.9" to "3.6"
ghost commented 10 years ago

Trac update at 20111010T05:49:41:

Fixed from revision r155 See the 3.6 release for complete implementation. Any more network settings that need to be changed should be easily added through this mechanism now.

  • tim changed resolution from "" to "fixed"
  • tim changed status from "accepted" to "closed"