| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| docs:guide-user:firewall:upnp:upnp_setup [2024/09/03 22:13] – [Troubleshooting] stokito | docs:guide-user:firewall:upnp:upnp_setup [2024/11/29 14:48] – [Universal Plug'n'Play and NAT-PMP on OpenWrt] Grammar memicinn19 |
|---|
| Thus, it is recommended to set up port forwarding manually whenever possible, and leave UPnP disabled. However, in some cases dynamic port forwarding is required and manual port forwarding becomes impractical, leaving the user with no other option than to enable UPnP. | Thus, it is recommended to set up port forwarding manually whenever possible, and leave UPnP disabled. However, in some cases dynamic port forwarding is required and manual port forwarding becomes impractical, leaving the user with no other option than to enable UPnP. |
| |
| [[wp>NAT-PMP|NAT-PMP]] and its newer version [[wp>Port_Control_Protocol|PCP]] is a simpler binary protocol similar to UPnP, that is currently an IETF standard, and a number of Windows and Linux applications support it. It was originally developed by Apple for their routers but didn't received wide adoption. | [[wp>NAT-PMP|NAT-PMP]] and its newer version [[wp>Port_Control_Protocol|PCP]] is a simpler binary protocol similar to UPnP, that is currently an IETF standard, and a number of Windows and Linux applications support it. It was originally developed by Apple for their routers but didn't receive wide adoption. |
| |
| ===== Security Concerns ===== | ===== Security Concerns ===== |
| ===== Setting up UPnP in OpenWrt ===== | ===== Setting up UPnP in OpenWrt ===== |
| |
| The repositories for OpenWrt Backfire contain minidlna and miniupnpd to provide UPnP support. They are configured in ''[[docs:guide-user:services:media_server:minidlna|/etc/config/minidlna]]'' or ''[[docs:guide-user:firewall:upnp:miniupnpd|/etc/config/miniupnpd]]'' respectively. Note that the the ''minidlna'' package is quite large, and may not fit on routers with a fresh install on OpenWrt. If you are only looking for UPnP functionality, the ''miniupnpd'' is all you need. | The repository for OpenWrt contains ''minidlna'' and ''miniupnpd'' to provide UPnP support. They are configured in ''[[docs:guide-user:services:media_server:minidlna|/etc/config/minidlna]]'' or ''[[docs:guide-user:firewall:upnp:miniupnpd|/etc/config/miniupnpd]]'' respectively. Note that the the ''minidlna'' package is quite large, and may not fit on routers with a fresh install on OpenWrt. If you are only looking for UPnP functionality, the ''miniupnpd'' is all you need. |
| |
| Once the ''miniupnpd'' is installed, it may be necessary to take an addition step to enable it. | Once the ''miniupnpd'' is installed, it may be necessary to take an addition step to enable it. |
| |
| The GUI tool [[https://gitlab.gnome.org/DnaX/upnp-router-control|UPnP Router Control]] allows to see network usage and currently open ports. | The GUI tool [[https://gitlab.gnome.org/DnaX/upnp-router-control|UPnP Router Control]] allows to see network usage and currently open ports. |
| For Windows and MacOS you may use the similar [[https://github.com/upnp-portmapper/upnp-port-mapper|UPnP Port Mapper]]. | |
| |
| Some apps like Transmission allows to open a port with both UPnP and NAT-PMP/PCP. Internally it uses ''libminiupnpc'' and ''libnatpmp'' libraries from the ''miniupnpd'' author. | Some apps like Transmission allows to open a port with both UPnP and NAT-PMP/PCP. Internally it uses ''libminiupnpc'' and ''libnatpmp'' libraries from the ''miniupnpd'' author. |