packages icon indicating copy to clipboard operation
packages copied to clipboard

miniupnpd: can not work with openwrt master

Open openips opened this issue 5 years ago • 29 comments

the miniupnpd commit 107f3376b5114cd17c115e25026b031bd439e9be test not work with openwrt commit ac4e8aa2f8d98158ea7b749f877269f1f5fa9c

and miniupnpd commit b8f9e4354efd7f722a28eb45cec429a22a0d7a9d can work with openwrt master very well

check and fix bugs thks

openips avatar Aug 01 '21 11:08 openips

bye the way the miniupnpd PKG_VERSION:=2.2.2 PKG_RELEASE:=3 not work with openwrt master the miniupnpd PKG_VERSION:=2.2.1 PKG_RELEASE:=2 work with openwrt master very well

openips avatar Aug 03 '21 13:08 openips

Which test? Can you provide more details on what is happening with your environment?

BKPepe avatar Aug 03 '21 15:08 BKPepe

thks your reply my test img is TARGET_x86_64

with OpenWrt SNAPSHOT r16765-6f3a05ebb0 / LuCI Master git-21.124.24916-0faf9a4 and miniupnpd 2.2.1-2
they work very well upnp

with OpenWrt SNAPSHOT r17247-022d1fe80f / LuCI Master git-21.196.22411-7d9ab8d and miniupnpd 2.2.2-3 luci can not see any upnp clients upnp

all the configs is same

if you want something else ,tell me pls thks very much

openips avatar Aug 04 '21 10:08 openips

I am so sorry, but from the screenshots, it is not clear what is going on. I need to ask you for logs from miniupnd, which can be seen in system log or in /var/log/messages. Also, how did you configure miniupnpd can be helpful as well.

BKPepe avatar Aug 04 '21 11:08 BKPepe

thks your reply my test img is TARGET_x86_64

with OpenWrt SNAPSHOT r16765-6f3a05ebb0 / LuCI Master git-21.124.24916-0faf9a4 and miniupnpd 2.2.1-2 they work very well upnp

with OpenWrt SNAPSHOT r17247-022d1fe80f / LuCI Master git-21.196.22411-7d9ab8d and miniupnpd 2.2.2-3 luci can not see any upnp clients upnp

all the configs is same

if you want something else ,tell me pls thks very much

What's your WAN IP address? Is it a private address (10.0.0.0 – 10.255.255.255, 172.16.0.0 – 172.31.255.255, 192.168.0.0 – 192.168.255.255 or 100.64.0.0 to 100.127.255.255)?

faust2199 avatar Aug 05 '21 09:08 faust2199

I have 3 wan. one have public ipv4 ,the other 2 have private ipv4,and 1 public ipv6 the upnp use the port with 1 privat ipv4 and 1 public ipv6 to work 001 image

openips avatar Aug 07 '21 07:08 openips

my upnpd config

config upnpd 'config' option download '1024' option upload '512' option internal_iface 'lan' option port '5000' option upnp_lease_file '/var/run/miniupnpd.leases' option ext_ip_reserved_ignore '1' option enabled '1' option uuid 'b12a26f3-e262-4cd3-978b-2f67e8b17c85' option igdv1 '1'

config perm_rule option action 'allow' option ext_ports '1024-65535' option int_addr '0.0.0.0/0' option int_ports '1024-65535' option comment 'Allow high ports'

config perm_rule option action 'deny' option ext_ports '0-65535' option int_addr '0.0.0.0/0' option int_ports '0-65535' option comment 'Default deny'

openips avatar Aug 07 '21 07:08 openips

with OpenWrt SNAPSHOT r16765-6f3a05ebb0 / LuCI Master git-21.124.24916-0faf9a4 and miniupnpd 2.2.1-2 they work very well miniupnpd log is here upnp_ok.log

openips avatar Aug 07 '21 07:08 openips

with OpenWrt SNAPSHOT r17247-022d1fe80f / LuCI Master git-21.196.22411-7d9ab8d and miniupnpd 2.2.2-3 luci can not see any upnp clients miniupnpd log is here upnp_false.log

openips avatar Aug 07 '21 07:08 openips

if you want something else ,tell me pls thks again

openips avatar Aug 07 '21 07:08 openips

with OpenWrt SNAPSHOT r17247-022d1fe80f / LuCI Master git-21.196.22411-7d9ab8d and miniupnpd 2.2.2-3 luci can not see any upnp clients miniupnpd log is here upnp_false.log

"option ext_ip_reserved_ignore '1'" no longer works as of miniupnpd 2.2.2-3 due to this commit: https://github.com/openwrt/packages/commit/107f3376b5114cd17c115e25026b031bd439e9be. The author of that commit may be able to suggest a way to make it work again. Currently I have to use my own build, with the miniupnpd patch added back, to preserve the previous behavior.

faust2199 avatar Aug 08 '21 01:08 faust2199

I am so sorry, but from the screenshots, it is not clear what is going on. I need to ask you for logs from miniupnd, which can be seen in system log or in /var/log/messages. Also, how did you configure miniupnpd can be helpful as well.

the log is here

openips avatar Aug 15 '21 11:08 openips

To follow this bug

Neustradamus avatar Aug 17 '21 07:08 Neustradamus

@openips The necessary details are included once miniupnd starts and that's missing. Feel free to include it and consult it with miniupnd developers. Also, it is missing the content of configuration file miniupnpd.conf. Which should be generated dynamically before the start.

BKPepe avatar Aug 17 '21 10:08 BKPepe

@openips Also, you can include output from ip address show to see how do you have configured your network to be able to help you more.

BKPepe avatar Aug 17 '21 10:08 BKPepe

@openips Also, you can include output from ip address show to see how do you have configured your network to be able to help you more.

@BKPepe I have provided it above, please check

openips avatar Aug 17 '21 10:08 openips

my upnpd config

config upnpd 'config' option download '1024' option upload '512' option internal_iface 'lan' option port '5000' option upnp_lease_file '/var/run/miniupnpd.leases' option ext_ip_reserved_ignore '1' option enabled '1' option uuid 'b12a26f3-e262-4cd3-978b-2f67e8b17c85' option igdv1 '1'

config perm_rule option action 'allow' option ext_ports '1024-65535' option int_addr '0.0.0.0/0' option int_ports '1024-65535' option comment 'Allow high ports'

config perm_rule option action 'deny' option ext_ports '0-65535' option int_addr '0.0.0.0/0' option int_ports '0-65535' option comment 'Default deny'

@BKPepe

openips avatar Aug 17 '21 10:08 openips

I have 3 wan. one have public ipv4 ,the other 2 have private ipv4,and 1 public ipv6 the upnp use the port with 1 privat ipv4 and 1 public ipv6 to work 001 image

@BKPepe

openips avatar Aug 17 '21 10:08 openips

Well, I am still missing the miniupnd log from start to know something more. Otherwise, it would help if you reached miniupnd developers regarding it like @pali. OpenWrt does not have any maintainer for this package and the patch there was a hack, which is not accepted here as it was rejected in upstream. Because of that, I'm closing it here.

Feel free to continue it here: https://github.com/miniupnp/miniupnp/issues/556

Next time, include outputs and format it as code instead of screenshots. It makes it hard to find there anything as you can not search in it, etc.

BKPepe avatar Aug 17 '21 10:08 BKPepe

Thomas BERNARD, the author of @miniupnp project must read it.

Neustradamus avatar Aug 18 '21 15:08 Neustradamus