Project

General

Profile

Actions

Feature #374

closed

Add mac address filtering to hostapd config

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

Status:
Closed
Priority:
Immediate
Assignee:
Category:
04 - Root File System
Target version:
Start date:
10 Aug 2014
Due date:
% Done:

100%

Estimated time:
Severity:
03 - Medium

Description

See this config example and search for macaddr_acl to see how to use it.


Related issues

Related to piboxwww - Bug #409: Missing hostapd values on saveClosedHammel09 Dec 2014

Actions
Actions #1

Updated by Hammel over 9 years ago

  • Priority changed from Urgent to Immediate
Actions #2

Updated by Hammel over 9 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10
Here's what needs to be done.
  1. In bui/web Access Point tab
    1. Add: Enable MAC Filtering checkbutton
      1. If enabled, read accept_mac_file
      2. If disbled, clear input fields
    2. Add: list of 5-8 device input fields (limited to avoid scrolling in the app)
  2. In hostapd.conf, ia MAC Filtering is enabled
    1. Add: macaddr_acl=1 (Deny unless in list)
    2. Add: accept_mac_file=/etc/hostapd.accept
    3. Update: save() tests if filtering enabled
      1. If enabled, rewrite accept_mac_file
      2. If enabled, restart hostapd
Actions #3

Updated by Hammel over 9 years ago

  • % Done changed from 10 to 50

The code is implemented in both javascript/php and in piboxd. The creation of the accept file is working but the macaddr_acl=? change is not because of RM #409. I need to fix that one before I can finish this one.

Actions #4

Updated by Hammel over 9 years ago

  • % Done changed from 50 to 80

RM #409 is fixed and this fixes the problem with the missing macaddr_acl=? line.

Only thing that's missing now is showing the mac address list on entry to the hostap tab if mac acl is already enabled. This would be handled with a modification to the setTab() function in settings.js.

Actions #5

Updated by Hammel over 9 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 80 to 100

Added support for showing the mac acl list on first entry to the access point tab depending on whether or not its currently enabled.
All updates tested on target, committed, and pushed.
That completes this feature. Closing issue.

Actions

Also available in: Atom PDF