# Miniupnpd error

**URL:** <https://forum.openwrt.org/t/miniupnpd-error/96386>\
**Category:** Network and Wireless Configuration\
**Created:** [May 12, 2021, 11:08am UTC](https://forum.openwrt.org/t/miniupnpd-error/96386 "2021-05-12T11:08:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrikx3](https://forum.openwrt.org/user_avatar/forum.openwrt.org/patrikx3/32/1196_2.png) [@patrikx3](https://forum.openwrt.org/u/patrikx3)\
**Post date:** [May 12, 2021, 11:08am UTC](https://forum.openwrt.org/t/miniupnpd-error/96386/1 "2021-05-12T11:08:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![patrikx3](https://forum.openwrt.org/user_avatar/forum.openwrt.org/patrikx3/32/1196_2.png) [@patrikx3](https://forum.openwrt.org/u/patrikx3)\
**Post date:** [May 12, 2021, 11:39am UTC](https://forum.openwrt.org/t/miniupnpd-error/96386/2 "2021-05-12T11:39:41Z")

</div>

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'

```

---

<div class="post-metadata">

**Author:** ![patrikx3](https://forum.openwrt.org/user_avatar/forum.openwrt.org/patrikx3/32/1196_2.png) [@patrikx3](https://forum.openwrt.org/u/patrikx3)\
**Post date:** [May 12, 2021, 11:46am UTC](https://forum.openwrt.org/t/miniupnpd-error/96386/3 "2021-05-12T11:46:02Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![patrikx3](https://forum.openwrt.org/user_avatar/forum.openwrt.org/patrikx3/32/1196_2.png) [@patrikx3](https://forum.openwrt.org/u/patrikx3)\
**Post date:** [May 12, 2021, 11:58am UTC](https://forum.openwrt.org/t/miniupnpd-error/96386/4 "2021-05-12T11:58:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![eduperez](https://forum.openwrt.org/user_avatar/forum.openwrt.org/eduperez/32/2066_2.png) [@eduperez](https://forum.openwrt.org/u/eduperez)\
**Post date:** [May 12, 2021, 12:08pm UTC](https://forum.openwrt.org/t/miniupnpd-error/96386/5 "2021-05-12T12:08:41Z")

</div>

According to the documentation, there are options "external\_interface" and "external\_ip". Did you try to use them?

---

<div class="post-metadata">

**Author:** ![patrikx3](https://forum.openwrt.org/user_avatar/forum.openwrt.org/patrikx3/32/1196_2.png) [@patrikx3](https://forum.openwrt.org/u/patrikx3)\
**Post date:** [May 12, 2021, 12:14pm UTC](https://forum.openwrt.org/t/miniupnpd-error/96386/6 "2021-05-12T12:14:41Z")

</div>

> [@eduperez](#):
>
> external\_interface

```txt
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:

```txt
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`

---

<div class="post-metadata">

**Author:** ![patrikx3](https://forum.openwrt.org/user_avatar/forum.openwrt.org/patrikx3/32/1196_2.png) [@patrikx3](https://forum.openwrt.org/u/patrikx3)\
**Post date:** [May 12, 2021, 12:19pm UTC](https://forum.openwrt.org/t/miniupnpd-error/96386/7 "2021-05-12T12:19:41Z")

</div>

```
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

```

---

<div class="post-metadata">

**Author:** ![patrikx3](https://forum.openwrt.org/user_avatar/forum.openwrt.org/patrikx3/32/1196_2.png) [@patrikx3](https://forum.openwrt.org/u/patrikx3)\
**Post date:** [May 12, 2021, 12:24pm UTC](https://forum.openwrt.org/t/miniupnpd-error/96386/8 "2021-05-12T12:24:39Z")

</div>

> [@patrikx3](#):
>
> `external_iface`

ok, tuned it it works, thanks

---

<div class="post-metadata">

**Author:** ![system](https://forum.openwrt.org/uploads/default/original/3X/7/4/740520c71f00039bbf001045c682f0ecb25e905a.png) [@system](https://forum.openwrt.org/u/system)\
**Post date:** [May 22, 2021, 12:24pm UTC](https://forum.openwrt.org/t/miniupnpd-error/96386/9 "2021-05-22T12:24:40Z")

</div>

Closed on May 22, 2021, 12:24pm UTC

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