luci icon indicating copy to clipboard operation
luci copied to clipboard

luci-base, luci-app-firewall: enable range of MAC addresses

Open ckorber opened this issue 5 months ago • 0 comments

In order to handle a range of MAC addresses it seems to be useful being able to set it in luci. Therefore these commits use the src_mac field to specify ranges like can be seen in the pictures. Also negation can be used to exclude a certain range for being handled.

This PR depends on openwrt/firewall4#74

  • [x] This PR is not from my main or master branch :poop:, but a separate branch :white_check_mark:
  • [x] Each commit has a valid :black_nib: Signed-off-by: <[email protected]> row (via git commit --signoff)
  • [x] Each commit and PR title has a valid :memo: <package name>: title first line subject for packages
  • [x] Tested on: (x86/64, openwrt-24.10, firefox) :white_check_mark:
  • [x] Screenshot or mp4 of changes:

If a single MAC address is specified, it is validated by macaddr if a range is given it is validated by macrange Screenshot From 2025-10-17 11-14-10 invalid MAC address image valid MAC address Screenshot From 2025-10-17 11-17-00 invalid range image valid range image also negation is possible image upper address is lower than lower macaddr -> error

  • [x] Depends on: e.g. openwrt/firewall4#74 in sister repo
  • [x] Description: (describe the changes proposed in this PR)

ckorber avatar Oct 17 '25 09:10 ckorber