diff --git a/README.md b/README.md index c69dc53..222ccb2 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ $ docker run --privileged -d \ |`UMASK`| No | GID applied to config files and downloads |`UMASK=002`| |`WEBUI_PORT_ENV`| No | Applies WebUI port to qBittorrents config at boot (Must change exposed ports to match) |`WEBUI_PORT_ENV=8080`| |`INCOMING_PORT_ENV`| No | Applies Incoming port to qBittorrents config at boot (Must change exposed ports to match) |`INCOMING_PORT_ENV=8999`| +|`PIA_PORT_FORWARD`| No | Request and set a port forward when using PIA (Private Internet Access) Overrides `INCOMING_PORT` when enabled |`PIA_PORT_FORWARD=true`| ## Volumes | Volume | Required | Function | Example | diff --git a/openvpn/start.sh b/openvpn/start.sh index c7accf7..2542035 100755 --- a/openvpn/start.sh +++ b/openvpn/start.sh @@ -167,7 +167,8 @@ if [[ $VPN_ENABLED == "yes" ]]; then sleep 5 # PIA port Forward - if [[ $PIA_PORT_FORWARD == "yes" ]]; then + # https://www.privateinternetaccess.com/helpdesk/kb/articles/can-i-use-port-forwarding-without-using-the-pia-client + if [[ $PIA_PORT_FORWARD == "true" ]]; then echo "Trying to get a port forward from PIA" | ts '%Y-%m-%d %H:%M:%.S'