Project

General

Profile

Actions

Bug #662

closed

imwww's base address doesn't match dhcpd.conf.uap0

Added by Hammel over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
-
Target version:
Start date:
12 Aug 2018
Due date:
% Done:

100%

Estimated time:
Severity:
01 - Critical

Description

The /etc/network/dhcpd.conf.uap0 configuration has the following for the network to manage.

subnet 172.21.0.0 netmask 255.255.255.0 {
When the users sets a base address using imwww we need to change this to use the network portion of the address. Since this is point-to-point (Iot device to monitor) we can always uses 24/8 for the network portion. So to fix this problem:
  1. Move /etc/network/dhcpd.conf.uap0 to /etc/network/dhcpd.conf.uap0.template
  2. Change the subnet IP from 172.21.0.0 to [BASENET]
  3. Make php/settings-write.php:saveAccessPoint()
    1. copy the template to /etc/network/dhcpd.conf.uap0
    2. Swap the [BASENET] tag with the base address, sans host octet.

That way the dhcpd daemon can properly assign IPs to the sensor network.

Actions #1

Updated by Hammel over 6 years ago

  • Project changed from Iron Man to Monitor
Actions #2

Updated by Hammel over 6 years ago

  • Category deleted (Monitor)
  • Status changed from New to Closed
  • Target version changed from 0.1.0 - Proof of concept to 0.5.0
  • % Done changed from 0 to 100

This was pretty easy. I moved the static config to a template in the monitor package. Then I updated the specified function in imwww. I pushed both to a test node and verified they worked - which they did on the first try.

I've committed and pushed fixes in both repos.

Closing issue.

Actions

Also available in: Atom PDF