luci-app-upnp: Revision, new network access control and UCI options…#7822
luci-app-upnp: Revision, new network access control and UCI options…#7822Self-Hosting-Group wants to merge 0 commit intoopenwrt:masterfrom
Conversation
|
Hi - please don't open PRs here until you've finished with the PR in the packages repo first. |
|
Reference to openwrt/packages#24988 |
|
@Self-Hosting-Group: Thanks for this PR! |
a63f4d3 to
56657b2
Compare
5c69300 to
70f10e8
Compare
f7ee946 to
93eac3f
Compare
37b06b0 to
f7ee946
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Hello @1715173329 Thanks for merging the daemon package commit, it worked great ;-) Can we also adopt the first two commits (merged) as a pre-update here (all the rest then through the PR)? This helps to ensure that active port maps are displayed in full and can be deleted after the daemon update/migration, but with a missing LuCI update. Also, a commit has been prepared that manually adapts message IDs to avoid losing translations. For consistency, I would then wait for the next Weblate update and add the translation adaptation commit for early merging. And so as not to translate all new strings at once. Can we do it this way? And can you give me your opinion on this first commit message: Is it good, or too long? As a single commit including translation adaptation? |
|
Unfortunately I don't have access to this repo ;( |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
About all the warnings like here, I have already informed the problem with the author but no changes yet about: 🔶 Author name (Self-Hosting-Group) seems to be a nickname or an alias The problem is same for this PR: |
As this PR is extensive, the descriptions of the individual commits are collapsed here:
1. Improve existing UI
Active Service Port MapstoActive Port Maps, use the same wording for the table headings and ACL as on the overview status pageAdded via / description, always include the protocol and clearer/less redundant protocol labelsipv6_disable): UI option added, UCI existsnotify_intervalminimum to 900 s (default), as recommended by UDA 1.1 (2x=1800 in the standard), because daemon/OpenWrt wrongly suggested 30x less in the past, and to reduce multicast traffic and power consumption in wireless networks, clearer help2. Add `UPnP IGD Adjustments` tab
And rearrange as many options
(to merge with prior)
3. Revision and adapt to new package
The following settings UCI options been added or changed, and the previous options are migrated on updating:
Active Port Mapsif the service is enabled andAccess Control Listif it is usedenable_protocols): Combined UI option addedallow_cgnat): Accept new values for IPv4 CGNAT use (allow-* values), and update help with newer wording of RFC 5780stun_host): Allow port inclusionexternal_ip): UI option added for CGNAT useallow_third_party_mapping): Inverted from secure mode and optionally extended to PCPlog_output): Allow info log level, and rewordedupnp_igd_compat): Reworded/extensibledownload_kbps/upload_kbps): In kbit/s and datatype set, now, interface link speed by defaultfriendly_name): UI option added to set name displayed in Windows Explorer, model/serial number removedinternal_network): Section added to select the enabled networks and their access control. By:interface): UI option added to select the local/internal (LAN) network interface to enable the service foraccess_preset): UI option added to select an access control preset for ports that all devices on the network can mapaccept_ports): UI option added to accept these ports or port ranges on the network as wellreject_ports): UI option added to reject ports on this network; override other settingsignore_acl): UI option added to not check ACL entries before a preset; can extend/override a presetMore details on changed options can be found in the dependent package PR
Depends on: openwrt/packages#24988
4. Rename UCI section to settings v2.0
Rename UCI section
config(v1.0) ->settings(v2.0), helps on migration and to distinguish the updated config from the previous one(to merge with prior)
5. Update ACL options, migrate section
ActionAccess Control Listacl_entryis_port_or_rangefunction instead ofupnpd_get_port_rangeand check if it has a valid range, and removes a shellcheck warningconf_rule_addfunction toupnpd_add_acl_entry(to merge with prior)
(The italic commits are intended to be merged with the prior ones after review)
Screenshots
The new network-wide access control functionality… can best be described using the LuCI screenshots:
Enable Networks / Access Control (new)
Edit Network Access Control Settings (new)
Advanced Settings tab with new CGNAT functionality
UPnP IGD Adjustments tab (new)
LuCI notification if the related package is not updated
Full LuCI screenshot
Depends on packages PR: openwrt/packages#24988
The first two commits here have no dependencies and can be cherry-picked
Tested on: OpenWrt 24.10.5 and 25.12.0
Maintainer: @jow-
Wanted: Microsoft Xbox One/Series console users with OpenWrt to provide UPnP IGD logs as specified in openwrt/packages#24988 (comment) (updated package not necessary).
miniupnpd: Core functionality issues
https://github.com/Self-Hosting-Group/miniupnpd-issues
The Port Control Protocol (PCP) is the successor to NAT-PMP, shares similar protocol concepts and packet formats, but supports IPv6 port mapping and options/extensions. For more information, see:
Port Mapping Protocols Overview and Comparison 2026+: About UPnP IGD & PCP/NAT-PMP
https://github.com/Self-Hosting-Group/wiki/wiki/Port-Mapping-Protocols-Overview