Skip to content
Impulse SoftwareDOCS
Get modules

ImpulsePlesk

Verified for ImpulsePlesk 1.9.2 ·

File-service daemon setup

The file manager, log viewer, native scheduled tasks and backup list/restore/download need a small daemon on each Plesk box, because Plesk’s file and backup tooling lives outside REST reach. Set it up once per server.

The customer client area browses, edits, uploads and downloads a subscription’s files. Plesk’s file backend is the filemng utility, which lives in /usr/local/psa/admin/sbin/ — not /usr/local/psa/bin/. The Plesk REST CLI gateway only resolves utilities in bin/, so filemng is unreachable through it, and there is no native REST file endpoint either. The same wall applies to the backup list tool (pmm-ras, in admin/bin/); restore and download run through the daemon too, so it can confirm a backup belongs to the customer’s domain before touching it.

Since ImpulsePlesk manages existing Plesk boxes over the REST API only — no SSH, no VPS provisioning — the file manager, logs, scheduled tasks and backup listing need their own transport. That transport is a small inbound, TLS, bearer-auth daemon installed on each Plesk box: the same admin-proxy shape the other Impulse infrastructure modules use, adapted to a one-line installer for the existing-host model.

  1. Under ImpulsePlesk → Settings → General & Access → WHMCS server addresses, enter the public IPv4, IPv6 or both that this WHMCS server reaches your Plesk servers from — each a single address, not a range or CIDR. Behind address translation, enter the public address, not the private one. The file service opens its port to these addresses only, and Installer refuses until at least one is set.
  2. In ImpulsePlesk → Infrastructure, open the server’s menu and choose Installer.
  3. Copy the one-line curl … | sudo bash command it shows. It is shown once and works once, within 24 hours; choosing Installer again replaces it.
  4. Run it on the Plesk box as root.
Terminal window
# On the Plesk box, as root — the addon generates this command per server:
curl -fsSL "https://<your-whmcs>/modules/servers/impulseplesk/file-proxy-bootstrap.php?id=<token-id>" \
-H "X-Impulse-Token: <one-time-secret>" | sudo bash

The installer is self-contained (it installs its dependencies with apt, dnf or yum); the box needs Python 3.10 or later, which the daemon’s pinned packages require. It stands up:

  • A Python venv under /opt/impulse-fileproxy with pinned dependencies.
  • An unprivileged daemon user (impulsefp) that runs the service.
  • A root privsep helper at /usr/local/sbin/impulse-fileproxy-op — the only root code — reached through a single sudoers rule.
  • A self-signed TLS certificate, a systemd unit (impulse-fileproxy) listening on TCP 8448, and a firewall rule allowing only your WHMCS server on that port — in Plesk’s firewall when its extension is on (a rule named Impulse File Service, applied and confirmed by the installer), and in UFW where it is present.

Back in WHMCS, choose Test connection from the server’s menu. After testing the Plesk API, it:

  • Reads the daemon’s TLS fingerprint over the unauthenticated /tls-info endpoint and pins it the first time (trust-on-first-use / TOFU). A later certificate that doesn’t match the pin is reported, never trusted silently.
  • Verifies authenticated reachability over /health with the bearer secret.
  • Moves the file-service status to active.

The daemon is per-server admin-grade, so the customer-facing scope is enforced in the module (WHMCS auth → subscription → system login → per-site docroot). The box-side controls are defense-in-depth:

  • Privilege separation — the daemon runs unprivileged; one sudoers rule lets it invoke the root helper and nothing else.
  • User validation — the helper only ever operates as a subscription user whose home is under /var/www/vhosts/ with a non-zero uid; never root or system daemons.
  • OS-enforced boundary — before touching disk the helper setgid/setuids (one-way) to the subscription user, so even a path-confinement bug can’t reach another tenant’s files.
  • Path confinement — request paths are normalised (./.. clamped) and asserted to stay within the user’s home before any filesystem access.
  • No content leakage — the bearer secret is stored encrypted, masked in module logs, and the daemon’s audit log records actions, not file contents.

Update: the daemon version tracks the module. When a release bumps it, the server shows an update badge and its menu offers Update server, which pushes the new daemon and root helper together, signed by the module and verified on the box before install — no SSH. The box doesn’t roll back to the old files by itself. A daemon too old for in-place updates asks you to run Installer on it once instead.

Disable: choose Disable file service from the server’s menu. The module drops the bearer secret and stops using the daemon, and Show details gives the command that removes the daemon, its files, the sudoers rule and the systemd unit from the box. The impulsefp user and the firewall rule for its port stay until you remove them.

6. Port 8448, and moving a service off 8447

Section titled “6. Port 8448, and moving a service off 8447”

Plesk’s own installer — the one behind Tools & Settings → Updates — listens on TCP 8447, and early releases of this module installed the file service on that port, which stopped Plesk’s installer from loading. The file service’s port is 8448 since daemon 1.9.0: the installer uses it, and so does the module when a server’s row has no port stored.

A server whose file service still listens on 8447 shows ↔ Move file service to port 8448 in its menu. It asks the daemon to carry its firewall rules to the new port for your WHMCS server addresses — the Plesk firewall’s Impulse File Service rule, and UFW’s where UFW is active — rewrite its configuration and restart, then follows it: the server’s row takes the new port, the module reads the new port before it claims the result (The file service on … now answers on port 8448; port 8447 is Plesk’s installer’s again), and the move is logged as fileproxy.port_moved. The client-area file manager, scheduled tasks and backups on that server pause for a few seconds.

The move needs daemon 1.9.0 or later; on an older one it answers Run Update server first. Run Update server, then the move, then open Plesk’s Updates page to see it load again.

The module ships one daemon; Update server brings a server to the release the module carries.

Daemon Adds
1.1.0 Native scheduled tasks; the first release with the signed in-place update
1.2.0 – 1.3.2 Backup list, restore and export
1.4.0 SSH login records, for the idle-address sweep
1.5.0 – 1.5.1 The Cloudflare Tunnel connector and origin lock; the SSH port-22 rule in Plesk’s firewall; connector upgrades; customers’ SSH keys
1.6.0 The restricted shell’s tool list and the keys-only policy
1.7.0 – 1.7.1 The bare-domain redirect for the protection you manage; a warning when Plesk generated an incomplete web configuration
1.8.0 Extension commands (the WordPress Toolkit and Git) for the Apps and Deploy tabs
1.9.0 The port move; the installer sets the Plesk firewall rule