Skip to content

Commit

Permalink
Merge pull request #99 from dappnode/dev
Browse files Browse the repository at this point in the history
Removed port 22 from UPnP functionality
  • Loading branch information
eduadiez authored Dec 19, 2018
2 parents b668912 + 0dab418 commit ce207d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build/src/upnp_openports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,23 @@
export IMAGE=$(docker inspect DAppNodeCore-vpn.dnp.dappnode.eth -f '{{.Config.Image}}')

# Delete UPnP Ports
## VPN
docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -d 500 UDP
docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -d 4500 UDP
docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -d 22 TCP
## SSH
#docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -d 22 TCP
## Ethereum Node
docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -d 30303 UDP
docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -d 30303 TCP
## IPFS Node
docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -d 4001 TCP
docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -d 4002 UDP
# Open UPnP Ports
## VPN
docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -r 500 UDP
docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -r 4500 UDP
## SSH
docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -r 22 TCP
#docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -r 22 TCP
## Ethereum Node
docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -r 30303 UDP
docker run --rm --net=host ${IMAGE} upnpc -e DAppNode -r 30303 TCP
Expand Down

0 comments on commit ce207d6

Please sign in to comment.