This commit is contained in:
@@ -120,6 +120,7 @@ in
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
|
RestartSec = "10s";
|
||||||
RuntimeMaxSec = "30d";
|
RuntimeMaxSec = "30d";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -127,6 +128,12 @@ in
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
${scripts.scriptCommon}
|
${scripts.scriptCommon}
|
||||||
|
|
||||||
|
# Clean up stale state from previous attempts
|
||||||
|
ip -4 address flush dev ${cfg.interfaceName} 2>/dev/null || true
|
||||||
|
ip route del default dev ${cfg.interfaceName} 2>/dev/null || true
|
||||||
|
iptables -t nat -F 2>/dev/null || true
|
||||||
|
iptables -F FORWARD 2>/dev/null || true
|
||||||
|
|
||||||
proxy="${proxy}"
|
proxy="${proxy}"
|
||||||
|
|
||||||
# 1. Authenticate with PIA via proxy (VPN container has no internet yet)
|
# 1. Authenticate with PIA via proxy (VPN container has no internet yet)
|
||||||
|
|||||||
Reference in New Issue
Block a user