Closed moetayuko closed 3 years ago
I have a workaround on this issue
https://github.com/x-wrt/packages/commit/8901950eef71a68ab407c39a826fc20ece8e07c8
Maybe upstream to miniupnpd?
在 2020/10/27 上午2:38, Chen Minqiang 写道:
I have a workaround on this issue
x-wrt/packages@8901950 https://github.com/x-wrt/packages/commit/8901950eef71a68ab407c39a826fc20ece8e07c8
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/openwrt/packages/issues/13773#issuecomment-716746807, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMB2O4ECC6CSLY3Q6SZB43SMW625ANCNFSM4S7RDPEA.
I don't maintain this.
Which means PRs welcome.
Luci support was merged and is waiting on this
Maybe upstream to miniupnpd? 在 2020/10/27 上午2:38, Chen Minqiang 写道: … I have a workaround on this issue @.*** [x-wrt/packages@8901950](https://github.com/x-wrt/packages/commit/8901950eef71a68ab407c39a826fc20ece8e07c8) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#13773 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMB2O4ECC6CSLY3Q6SZB43SMW625ANCNFSM4S7RDPEA.
It just a hack workaround, won't be accepted by upstream
Make a PR at least. It seems a fair amount of people are running into this issue.
ok, PR on upstream https://github.com/miniupnp/miniupnp/pull/511
I meant here.
There is a new patch from @ptpt52:
It replaces the old 301-ext_ip_reserved_ignore.patch.
Tested by @openips!
For someone who encountered with this issue.
I use OpenWrt 21.02 and miniupnpd 2.2, and the log shows error
Thu Mar 17 14:09:21 2022 daemon.notice miniupnpd[15353]: private/reserved address 10.161.153.189 is not suitable for external IP
After referring article https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=4055380&extra=page%3D1&ordertype=1, I finally fix the issue of the upnp feature in my router.
For someone who encountered with this issue.
I use OpenWrt 21.02 and miniupnpd 2.2, and the log shows error
Thu Mar 17 14:09:21 2022 daemon.notice miniupnpd[15353]: private/reserved address 10.161.153.189 is not suitable for external IP
After referring article https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=4055380&extra=page%3D1&ordertype=1, I finally fix the issue of the upnp feature in my router.
I can't find the solution. Is it closed now?
For someone who encountered with this issue. I use OpenWrt 21.02 and miniupnpd 2.2, and the log shows error
Thu Mar 17 14:09:21 2022 daemon.notice miniupnpd[15353]: private/reserved address 10.161.153.189 is not suitable for external IP
After referring article https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=4055380&extra=page%3D1&ordertype=1, I finally fix the issue of the upnp feature in my router.I can't find the solution. Is it closed now?
The url should point to a Chinese forum instead of a issue of github.
In short, you need to upload libip4tc.so.0 and libip6tc.so.0 to /usr/lib/, then replace the original miniupnpd in your system with version 2.1
Maintainer: @neheb Environment: NETGEAR WNDR4300 / Atheros AR9344 rev 2 / OpenWrt 19.07.4 r11208-ce6496d796 / LuCI openwrt-19.07 branch git-20.287.57033-3d52019
Description:
Miniupnpd of OpenWrt 19.07.4 refuses to start port forwarding when the router is behind NAT, while the one from 18.06 works. There are two factors in my understanding:
New miniupnpd requires STUN protocol to be explicitly configured in its .conf file when the router is behind NAT, or it'll refuse to start.
Here's the logging with default configurations:
The restrictions on private IP was introduced with upstream commits https://github.com/miniupnp/miniupnp/commit/8e10a1aeab9b8cd4d3b2e964b02e9ad409cf3aaa https://github.com/miniupnp/miniupnp/commit/8c97654d70fdc46963dc817cd5b4fc5764b002a9 which were NOT present in 18.06's miniupnpd
Following the logs, I'm going to enable
ext_perform_stun=yes
and luckily there's already uci options, just not implemented in luci, I believe this is a luci issue and reported in https://github.com/openwrt/luci/issues/4544The router is behind restrictive NAT
I don't quite understand
restrictive NAT
, but that's what miniupnpd told me after enabling STUN:\Workaround
Since I didn't found any config options to disable the restrictive NAT check, I chose to downgrade to 18.06's miniupnpd. Specifically, I downloaded the old build from https://downloads.openwrt.org/releases/18.06.8/packages/mips_24kc/packages/miniupnpd_2.1-1_mips_24kc.ipk , extracted
/usr/sbin/miniupnpd
and replaced its dependencieslibip4tc.so.0
,libip6tc.so.0
withlibip4tc.so.2
,libip6tc.so.2
, respectively. Then pushed to the router and upnp started working.I believe my issue is similar to https://github.com/openwrt/luci/issues/3471 and expect proper fixes from upstream.