InfraFence on Plesk servers
Last updated:
The InfraFence extension for Plesk is in development: it is not ready for production servers yet, and there is no release date. If you want to try it, write to support@infrafence.com.
You don't have to wait for it to protect a Plesk server. The InfraFence agent already runs on Plesk servers today: it recognises Plesk, reads the sites' logs, bans attackers at the firewall and keeps out of the way of the Plesk Firewall and fail2ban. This page describes what works now and what the extension will add.
The extension: in development
The extension brings the agent's view into Plesk, for the administrator who manages the server from there. It has the same screens as the WHM plugin:
- Overview: protection status, agent version and last heartbeat, plan, AutoMode, a link to the server in the dashboard.
- Bans and the Allow list: unban an address on this server only, or allow it.
- Findings and Events: malware and file integrity findings, recent security events.
- Coexistence: the other security tools found on the server, and what InfraFence does next to each.
- Domains: the domains and document roots, with a malware scan of one site.
Like the WHM plugin, it stores no credentials: it asks the agent on the same server, through a local socket that only root can open. Only the Plesk administrator can open it, and each change is also written to Plesk's Action Log. The details are in Plesk extension and Hosting panels.
Planned requirements: Plesk Obsidian 18.0.60 or later on Linux, and a Basic, Pro or AutoMode plan, as for the WHM plugin. These can still change before the extension is released.
What the agent does on a Plesk server today
Install the agent like on any Linux server. On a Plesk server it adapts to the panel by itself:
- It recognises Plesk from
/usr/local/psaand reads its version, and the dashboard shows it on the server's page. - It never edits the web server configuration. Plesk owns the nginx and Apache configuration and may rewrite it, so the agent adds no ModSecurity rules and no user-agent blocks there. Bots you set to Block are banned at the firewall instead (Bots).
- It reads every site's traffic. The web firewall finds the per-domain access logs under
/var/www/vhosts, with the domain of each log, and applies its rules to every request (Web firewall). - It scans the sites for malware:
httpdocs, subdomains and additional domains under/var/www/vhosts(Malware). - It reports PHP, never changes it. The PHP versions Plesk installs are checked for risky settings, which are reported with the file they come from; on Plesk the agent changes no PHP configuration.
- It stops SSH brute force at the firewall, closes database ports open to the internet when you ask from the dashboard, and watches outbound traffic, DNS and file integrity, like on any Linux server.
The local side the extension will talk to is already there: on a Plesk server the agent turns on its panel socket by itself, so the extension will need no change to the agent.
Next to the Plesk Firewall, fail2ban and ModSecurity
The agent detects these tools read-only and keeps all its rules in its own chains (INFRAFENCE, INFRAFENCE-RULES, INFRAFENCE-PORTS, INFRAFENCE-EGRESS). It never edits, flushes or reorders a rule of theirs.
| Tool | What InfraFence does |
|---|---|
| Plesk Firewall | Plesk rewrites its rules when you apply changes (the Firewall's command-line tool also rolls them back if you don't confirm within 60 seconds). InfraFence never edits them and puts back only its own chain, within a minute. |
| fail2ban (IP Address Banning) | Plesk's IP Address Banning is fail2ban. Both only drop traffic, so they don't conflict, and InfraFence does not touch fail2ban's chains or jails. |
| ModSecurity (Web Application Firewall) | InfraFence reads the ModSecurity audit log for detections and lists the rule set chosen in Plesk. It adds no ModSecurity rules: Plesk owns the web server configuration. |
| Imunify360, BitNinja, Monarx | Each keeps its own firewall, WAF or scanner. InfraFence keeps to its own chain, and never deletes or moves a file on its own. |
This is how the agent is designed; the full list is in Coexistence. It is not a certification by Plesk or any of these vendors.
Install the agent on a Plesk server
- Check the server first, read only: the installer's
--dry-rundownloads the agent, runs its check and prints what a real install would do. Nothing is installed or changed, and no token is needed. - In the dashboard, Servers › Add server creates an install token, valid for one hour.
- Run the install command as root over SSH. The agent starts in a few seconds and the server appears in the dashboard.
curl -fsSL https://github.com/infrafence/infrafence-agent/releases/latest/download/install.sh | sudo bash -s -- --dry-runPlesk runs on many Linux distributions; the agent is tested on 15 of them before every release (Supported distributions). The full install guide is in Installation.
Questions
- Do I need the extension to protect a Plesk server?
- No. The agent does the protection, and the dashboard shows and controls it. The extension only brings that view into Plesk.
- When will the extension be ready?
- There is no date yet. Write to support@infrafence.com if you want to try it on a test server, or to hear when it is released.
- Will it change my Plesk Firewall rules?
- No. The agent never edits the Plesk Firewall's rules: it keeps its own chain next to them and puts it back after Plesk applies a change.
Try it free on 1 server
Starter gives one server full protection, free and with no credit card.
- 01
Create a free account, then open Servers › Add server to get your install token. It is valid for one hour.
Create the token - 02
Then run this as root on the server:
curl -fsSL https://github.com/infrafence/infrafence-agent/releases/latest/download/install.sh | sudo bash -s -- --token <TOKEN>
