Universal plug and play (Upnp) is a way for modems/routers to automatically open ports that devices connected to it are using and closes them when they are done.
To enable this, log in to your modem/router and turn it on. It's usually a one-click action located under the "Advanced", "NAT", or "Application" etc sections.
Upnp needs to be enabled on all routers upstream and finally on your modem if you have multiple layers of routers in your network.
Port forwarding
Port forwarding allows devices outside of your home network to access devices within. For our use case, this allows you to:
SSH into your validator node to perform maintenance and troubleshooting even when you are on vacation
Addresses the "low peer count" problem on your execution layer or consensus layer client
Due to routers/modems having different interfaces, you will need to play around with your own configuration panel or look up the official manual of your router's model.
Example:
If you have a router sitting below your modem, you will need to configure port forwarding from modem->router->validator using the same port numbers on both the modem and the router.
Below is a repository of port forwarding instructions for a wide range of router models.