diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-07-27 13:40:26 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-08-11 00:17:56 +0300 |
commit | 3ee3a28219381849cdf780dcb34b54e614f3e140 (patch) | |
tree | 75ddb8e1c94189c69a13102d6613ba9ae0fbe297 /etc/nextcloudpi-config.d/nc-forward-ports.sh | |
parent | dd18897475ac8d1bb3677dc63e04877ab8d4809c (diff) |
added HTTP port to port forwarding rulesv0.17.13
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-forward-ports.sh')
-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() |