Open pablomendezroyo opened 3 years ago
Yeah! Great idea
Are these ports printed anywhere in DAppManager UI on one spot all together? If not, it would be useful because some people are concerned with enabling UPnP and this would be nice to have as they can manually open ports.
Context
Ports are a critical path in dappnode, not only for blockchain packages such as geth, but also for connectivity packages: OpenVPN and Wireguard.
These ports are opened using UPnP by the dappmanager container
If users loose access to dappnode for some reason (local IP changed, changed router, etc) they have to wait until dappnode updates local IP or executes again the
natRenewal
daemon to open and map portsProposal
Would be a nice to have a dappnode command
dappnode_ports
which will have the following functionalities:--scan
: scan a list of hardcoded ports defined by dappnode (8092 and 1194 for Openvpn and 51820 for Wireguard), and any other port defined by the user using the API scan service developed by dappnode: https://github.com/dappnode/check-ports-service--open
: execute UPnP open against hardcoded list of ports or ports defined by the user and map them to the corresponding containers--list
: execute UPnP list to retrieve the list of ports opened--status
: check status of UPnP--help
: return list of commandsRequirements
┆Issue is synchronized with this Basecamp todo by Unito