Repository navigation
feat(firewall): traffic rules editor with visual policy list - #540
Merged
Merged
Conversation
UniFi-style traffic rules on native fw4 UCI sections, replacing the old zone-card rule editor (the new editor is the only writer of firewall.rule, with named netgrip_fw_N sections instead of anonymous ones): - Rules scoped by action (ACCEPT/DROP/REJECT), source and destination IP/CIDR (or any), port range, protocol (tcp/udp/any) and schedule using firewall4's real start_time/stop_time/weekdays/utc_time options. No DPI/application categories: stock OpenWrt has none. - Probe reports the UCI ruleset with managed/system marking and the management CIDR, so the UI shows what actually landed. - Lock-out guard: a deny/reject rule whose source covers the management network with unbounded destination raises a warning in the editor before saving (computed client-side, revalidated server-side). - Add/delete go through the executor with snapshot, firewall reload healthcheck and rollback; delete refuses non-managed sections. - New Traffic Rules page (connection group, gateway-only) with the zone diagram kept as a read-only card; i18n ES/EN and demo updated.
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.
UniFi-style traffic rules editor on native fw4 UCI sections, replacing the old zone-card rule editor:
Live-verified on a lab router: an added rule lands in UCI and is rendered by fw4 into the real nft ruleset; delete cleans both; deleting a system rule is refused.
Closes #444