diff options
-rw-r--r-- | etc/nextcloudpi-config.d/nc-forward-ports.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/etc/nextcloudpi-config.d/nc-forward-ports.sh b/etc/nextcloudpi-config.d/nc-forward-ports.sh index 09967563..af158f64 100644 --- a/etc/nextcloudpi-config.d/nc-forward-ports.sh +++ b/etc/nextcloudpi-config.d/nc-forward-ports.sh @@ -14,7 +14,8 @@ # More at: https://ownyourbits.com # -PORT_=443 +HTTPSPORT_=443 +HTTPPORT_=80 DESCRIPTION="Set port forwarding to access from outside (UPnP)" show_info() @@ -41,8 +42,10 @@ configure() { local IFACE=$( ip r | grep "default via" | awk '{ print $5 }' ) local IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(.\d{1,3}){3}' | head -1 ) - upnpc -d $PORT_ TCP - upnpc -a $IP 443 $PORT_ TCP + upnpc -d $HTTPSPORT_ TCP + upnpc -d $HTTPPORT_ TCP + upnpc -a $IP 443 $HTTPSPORT_ TCP + upnpc -a $IP 80 $HTTPPORT_ TCP } cleanup() |