luci-base, luci-app-firewall: enable range of MAC addresses#8017
Draft
ckorber wants to merge 2 commits intoopenwrt:masterfrom
Draft
luci-base, luci-app-firewall: enable range of MAC addresses#8017ckorber wants to merge 2 commits intoopenwrt:masterfrom
ckorber wants to merge 2 commits intoopenwrt:masterfrom
Conversation
added 2 commits
December 10, 2025 10:43
This commit is a preparation to add the possibility to block or accept a range of MAC addresses int they syntax of: ''' 00:11:22:00:00:00-00:11:22:ff:ff:ff ''' The commit depends on the PR openwrt/firewall4#74 being merged first. Signed-off-by: Christian Korber <ck@dev.tdt.de>
This commit adds the feature to handle mac ranges to `luci-app-firewall` Signed-off-by: Christian Korber <ck@dev.tdt.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_macfield 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
Signed-off-by: <my@email.address>row (viagit commit --signoff)<package name>: titlefirst line subject for packagesIf a single MAC address is specified, it is validated by






macaddrif a range is given it is validated bymacrangeinvalid MAC address
valid MAC address
invalid range
valid range
also negation is possible
upper address is lower than lower macaddr -> error