-
Notifications
You must be signed in to change notification settings - Fork 3.8k
miniupnpd: Update, revision, new network access control and UCI options… #24988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
miniupnpd: Update, revision, new network access control and UCI options… #24988
Conversation
618ed1f to
6da251a
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
6da251a to
173ee62
Compare
cfbf68e to
cb7a02d
Compare
cc180f0 to
86f6935
Compare
upnpd UCI configuration options and defaultsupnpd UCI config options
|
A downgrade included in a patchset won't get accepted, since a downgrade may subtly reintroducing bugs for existing users, if we assume that point releases fix bugs only. Better to wait for a new release, and bump to that version. Migrations are probably a more serious matter: those must be carried basically 'forever'. The best way is simply to avoid those. One might introduce a new setting, and deprecate the old one, and change the UI over to use the new one. Still a bit of a bumpy road. I think personally this is minor in the grand scheme of things (rather unimportant settings), but other reviewers may take a much firmer stance on it since you are, after all, changing setting names. |
Acceptable. It just breaks compile at the next release bump when it no longer applies. Minor, I guess. |
86f6935 to
124dd12
Compare
|
Every single test-build failed: Dirty patches detected, please refresh and review the diff |
6eaafdb to
50eda40
Compare
in openwrt/packages#24988 Signed-off-by: Self-Hosting-Group <155233284+Self-Hosting-Group@users.noreply.github.com>
in openwrt/packages#24988 Signed-off-by: Self-Hosting-Group <selfhostinggroup-git+openwrt@shost.ing>
fd269ad to
c82fdbc
Compare
|
I reported this to GitHub: https://github.com/openwrt/luci/pull/7822#issuecomment-3731725055 Update: New bloated comment: Is this an repeating/off-topic/abusing SPAM bot???? ;-( Can we do something about that? E.g. @GeorgeSapkin. Could you help? |
This comment was marked as spam.
This comment was marked as spam.
|
|
@Self-Hosting-Group I pinged some people for assistance, but I don't have access to anything, so can't do much. Sorry. |
|
Thanks. I can also justify my request with examples. However, I do not want to draw any more attention to this cold wind if this is not necessary. I see someone here who is offended. And who is also spreading falsehoods (e.g. there's no miniupnp team, only single maintainer with repo privileges, and no ToS missuse...). Note: We have 8 off-topic/abusive/zero-content comments from this user on this PR alone (+2 on LuCI, +2 new issues)
? |
This comment was marked as spam.
This comment was marked as spam.
|
@Neustradamus you are not contributing anything to this PR besides noise. In fact I don't see you contributing anything to OpenWrt in general. I would think your comments being marked as spam and hidden would be signal enough, but no. Please stop. |
This comment was marked as spam.
This comment was marked as spam.
|
I have enough with this, honestly. Let's back to the code, any more changes needed before we merging this? LuCI changes? @Self-Hosting-Group I hope you can still reply this thread ;) |
a55aab6 to
b728d06
Compare
Commits
As this PR is extensive, the descriptions of the individual commits are collapsed here:
0. Update to 2.3.9 to fix issues, refresh building (merged 70ce349 2025-12-24, in 24.10/25.12 packages 2025-12-30)
upnp_forwardand return the correct internal port; also resulted in the excessive opening of new ports. Accept interface names starting with digitsProject main download mirror
miniupnp.free.frwas down for 20 days miniupnp/miniupnp#770https://stats.uptimerobot.com/DwGDxUB914
--disable-pppconnto remove the old/IGDv1-only extra WANPPPConnection SSDP announcements workaround not included in other implementations since >15y--vendorcfgto allow customisation of the router/friendly name (+5 potential options) displayed in Windows Explorer, 384 bytes extra required on ARMv7 (binary)clean_ruleset_interval/thresholdUCI config options as not standard/working since OpenWrt 22.03, as nftables not supportedFixes: openwrt/openwrt#18011
Fixes: openwrt/luci#7759
Fixes: #26352
1. Patch for UPnP IGDv2 Microsoft/Apple compat
(to merge with prior)
Link: https://github.com/Self-Hosting-Group/miniupnp/tree/upnp-igdv2-compat
2. Patch to fix description filter option
To fix the non-working description regex filter option
(to merge with prior)
Link: miniupnp/miniupnp#853
3. Patch to improve startup banner and logging
(to be expanded, to merge with prior)
Link: https://github.com/Self-Hosting-Group/miniupnp/tree/improve-banner
4. Package revision and new/updated UCI options
The following settings UCI options been added or changed, and the previous options are migrated on updating:
Notes:
lease_file6=${lease_file}-ipv6so that active IPv6 port maps are not lost when service restarts, e.g. by deleting an active port map. Remove option if UCI default setCode refactoring:
upnpd_write_bool/etc/config/upnpdUCI config fileDepends on: openwrt/luci#7822
Fixes: #17413
5. Group/rearrange config-gen and refactoring
xml_encode(to merge with prior)
6. Rename UCI section name to `settings` (v2.0)
Inspired/address copilot's PR review for a clearer config by rename UCI section name
config(v1.0) ->settings(v2.0), helps on migration and to distinguish the updated config from the previous one easily(to merge with prior)
7. Add second CGNAT UCI option
Alternative option to STUN allow-filtered. As requested by AquanJSW, to test with Tailscale. Also adds the required daemon fix. No STUN public IPv4 detection; various issues, e.g. with PCP/NAT-PMP clients
(proposed for inclusion, to merge with prior)
8. Update ACL options, migrate section
acl_entryminiupnpd: Update to 2.3.7 and enable regex filter #24495
miniupnpd: Rewrite permission line parser miniupnp/miniupnp#853
is_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)
9. Separate service start and config-gen
config_foreach upnpd "upnpd"and replace it with regular function call, as init was not designed for a multi-instance setup, as the sametmpconfwill be used/overwritten, and non-anonymous sectionupnpdtoupnpd_generate_configifcases withelifin init/hotplugprocd_add_reload_trigger "firewall"instead of listening/etc/config/firewall(to merge with prior)
10. Rearrange init and format `firewall3.include`
start_serviceand main init functions firstfirewall3.includeusing shfmt(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 (new)
Full LuCI screenshot
Depends on LuCI PR: openwrt/luci#7822
The first commit here has no dependencies and is intended for early cherry-picking
Tested on: OpenWrt 24.10.5 and 25.12.0-rc3
Wanted: Newer Microsoft Xbox (One/Series) console users with OpenWrt to provide UPnP IGD logs as specified in #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