use port 8080 instead
All checks were successful
Check Flake / check-flake (push) Successful in 3m21s

This commit is contained in:
2026-02-26 00:26:49 -08:00
parent 39009cbc18
commit dc3c2194ab
3 changed files with 8 additions and 8 deletions

View File

@@ -56,8 +56,8 @@ let
default = null;
description = ''
Target port to forward to. If null, forwards to the same PIA-assigned port.
PIA-assigned ports below 1000 are rejected to avoid accidentally
forwarding traffic to privileged services.
PIA-assigned ports below 10000 are rejected to avoid accidentally
forwarding traffic to other services.
'';
};
protocol = mkOption {

View File

@@ -44,8 +44,8 @@ let
'';
in
''
if [ "$PORT" -lt 1000 ]; then
echo "ERROR: PIA assigned privileged port $PORT (< 1000), refusing to set up DNAT" >&2
if [ "$PORT" -lt 10000 ]; then
echo "ERROR: PIA assigned low port $PORT (< 10000), refusing to set up DNAT" >&2
else
${tcpRules}
${udpRules}