Skip to content

miniupnpd: add config support for ext_allow_private_ipv4#28644

Open
commondservice wants to merge 1 commit intoopenwrt:masterfrom
commondservice:patch-1
Open

miniupnpd: add config support for ext_allow_private_ipv4#28644
commondservice wants to merge 1 commit intoopenwrt:masterfrom
commondservice:patch-1

Conversation

@commondservice
Copy link

📦 Package Details

Maintainer: "common packages maintainers" (according to https://openwrt.org/packages/pkgdata/miniupnpd-nftables)

Description:

Currently miniupnpd defaults to disable forwarding if it detects wan ipv4 is private address. A miniupnpd config called ext_allow_private_ipv4 exists which enables forwarding in the above case. Add parsing to init script so that uci config can enable this option.

Sidenotes: This is my 1st commit to openwrt, I read the contribution guide, but there appears to be a two-line signoffs caused by github, which I don't know how to circumvent. Feel free to tell me where's wrong.

Hope it can get into v25.12, but also fine otherwise.


🧪 Run Testing Details

  • OpenWrt Version: OpenWrt 25.12.0-rc5
  • OpenWrt Target/Subtarget:
  • OpenWrt Device:

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

If your PR contains a patch:

  • It can be applied using git am
  • It has been refreshed to avoid offsets, fuzzes, etc., using
    make package/<your-package>/refresh V=s
  • It is structured in a way that it is potentially upstreamable
    (e.g., subject line, commit description, etc.)
    We must try to upstream patches to reduce maintenance burden.

Currently miniupnpd defaults to disable forwarding if it
detects wan ipv4 is private address. A miniupnpd config called
`ext_allow_private_ipv4` exists which enables forwarding in
the above case. Add parsing to init script so that uci config can enable this option.

Signed-off-by: James Liu <commondservice@outlook.com>

Signed-off-by: commondservice <134219876+commondservice@users.noreply.github.com>
@Self-Hosting-Group
Copy link
Contributor

Note: The following longer-existing UCI option can be set in /etc/config/upnpd as a workaround with the current package to force enable IPv4 mapping in this case:
external_ip=203.1.2.3

@Self-Hosting-Group
Copy link
Contributor

I'll try to bring my PR in next weeks. This will include this option and another CGNAT option (4 UI options). See:
https://redirect.github.com/openwrt/packages/pull/24988

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants