Miniupnpd error

hello,

the error is:
Wed May 12 12:46:31 2021 daemon.warn miniupnpd[6140]: SendNATPMPPublicAddressChangeNotification: cannot get public IP address, stopping

do you know how it works in 21.02.0-rc1 as miniupnp not working at all.
there is not configuration to set the static ip or any solution.

please help!
thanks

config

root@home:~# cat /etc/config/upnpd 

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 uuid '___SECRET___'
	option enabled '1'
	option log_output '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 comment 'Deny low ports'
	option ext_ports '0-1023'
	option int_addr '0.0.0.0/0'
	option int_ports '0-1023'
	option action 'deny'

itt looks like, it cannot work, because i have an a L2TP VPN that is shared with the LAN and it thinks the private/reserved address 192.168.x.x is not suitable for external IP

looks like there is no solution for this one. no option to set which interface to fix it or set the public static ip address.
nothing.
wow

According to the documentation, there are options "external_interface" and "external_ip". Did you try to use them?

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 uuid '48f4f7f2-c460-46a5-bee0-bec4e824e92d'
	option enabled '1'
	option log_output '1'

# added the option
	option external_interface 'pppoe-wan'

but not generating the app config:

ext_ifname=l2tp-sygnusvpn
ext_ifname6=pppoe-wan
listening_ip=br-lan
enable_natpmp=yes
enable_upnp=yes
secure_mode=yes
system_uptime=yes
force_igd_desc_v1=no
ext_perform_stun=no
ipv6_disable=no
ext_ip_reserved_ignore=no
bitrate_down=8388608
bitrate_up=4194304
lease_file=/var/run/miniupnpd.leases
port=5000
uuid=48f4f7f2-c460-46a5-bee0-bec4e824e92d
allow 1024-65535 0.0.0.0/0 1024-65535 #Allow high ports
deny 0-1023 0.0.0.0/0 0-1023 #Deny low ports`

see it still says: l2tp-sygnusvpn

root@home:/opt# uci commit && /etc/init.d/miniupnpd restart && cat /etc/config/upnpd && cat /var/etc/miniupnpd.conf  

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 uuid '48f4f7f2-c460-46a5-bee0-bec4e824e92d'
	option enabled '1'
	option log_output '1'
	option external_iface 'pppoe-wan'

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 comment 'Deny low ports'
	option ext_ports '0-1023'
	option int_addr '0.0.0.0/0'
	option int_ports '0-1023'
	option action 'deny'


ext_ifname=
ext_ifname6=pppoe-wan
listening_ip=br-lan
enable_natpmp=yes
enable_upnp=yes
secure_mode=yes
system_uptime=yes
force_igd_desc_v1=no
ext_perform_stun=no
ipv6_disable=no
ext_ip_reserved_ignore=no
bitrate_down=8388608
bitrate_up=4194304
lease_file=/var/run/miniupnpd.leases
port=5000
uuid=48f4f7f2-c460-46a5-bee0-bec4e824e92d
allow 1024-65535 0.0.0.0/0 1024-65535 #Allow high ports
deny 0-1023 0.0.0.0/0 0-1023 #Deny low ports

ok, tuned it it works, thanks

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.