Join Nostr
2026-02-07 02:44:21 UTC
in reply to

Daniel on Nostr: with the help of kimi k2.5: Find this section (around line 868): # Apply network fix ...

with the help of kimi k2.5:

Find this section (around line 868):

# Apply network fix before installing
echo "Applying network fix..."
max_retries=5
retry_count=0
net_fix_success=false
while [ $retry_count -lt $max_retries ]; do
if ssh -i "$ssh_private_key" "$vm_user@$vm_ip_clean" "curl -fsSL https://routstr.com/lnvps-net-fix.sh | sudo bash" 2>&1; then
net_fix_success=true
break
else
ssh_exit_code=$?
retry_count=$((retry_count + 1))
if [ $retry_count -lt $max_retries ]; then
echo ""
echo "SSH connection failed (VPS may still be starting). Waiting 12 seconds before retry $retry_count/$max_retries..."
sleep 12
fi
fi
done
if [ "$net_fix_success" = false ]; then
echo ""
echo "Warning: Network fix script failed after $max_retries attempts, continuing anyway..."
echo ""
fi

Replace it with:

# Apply network fix before installing (SAFELY)
echo "Applying safe network fix (IP forwarding only)..."
ssh -i "$ssh_private_key" "$vm_user@$vm_ip_clean" "sudo sysctl -w net.ipv4.ip_forward=1 && echo 'net.ipv4.ip_forward=1' | sudo tee /etc/sysctl.d/99-openclaw.conf" || true
echo "Network fix applied."

What this change does:

Removes: The dangerous curl | sudo bash that downloads and executes a remote script which breaks netplan (removes on-link: true, corrupts search domains, disables IPv6)
Keeps: Just enabling IP forwarding (net.ipv4.ip_forward=1), which is likely all OpenClaw actually needs for its routing functionality