Applicable to:
- Plesk for Linux
Question
How to install the Plesk Firewall component?
Answer
Plesk for Windows Server
In Plesk for Windows Server, Plesk Firewall comes pre-installed. Plesk Firewall appears under the Security section in Tools & Settings.
Plesk for Linux
To install Plesk Firewall in Plesk for Linux, click on one of the following sections and follow the instructions:
Warning: On CentOS/RHEL-based distributions, first disable firewalld
and install iptables
:
# systemctl stop firewalld && systemctl disable firewalld && yum install iptables
-
In Plesk, go to Tools & Settings > Updates (Updates and Upgrades).
Note: If Plesk Web Installer does not open, refer to the command-line instructions.
-
On the Updates and Upgrades page, click Add/Remove Components.
-
On the Add/Remove Components page, expand Plesk extensions and click Plesk Firewall > Install. Click Continue to begin the installation.
-
Connect to a Plesk server via SSH.
-
Run the command:
# plesk installer add --components psa-firewall
Additional Information
To learn more about managing firewall rules in Plesk, visit this KB article.
Comments
6 comments
Plesk Firewall and Fail2Ban are incompatible. Plesk Firewall will delete all Fail2Ban rules in some cases.
Hi @Marco Marsala!
That is indeed possible under some circumstances, I suggest subscribing to the following article in order to be notified when it will be fixed:
https://support.plesk.com/hc/en-us/articles/360009975974
Bonjour, je suis sur CentOS 8 et le pare-feu de plesk n'est pas accessible, comme indiqué dans la note au début de l'article. Pouvez-vous m'indiquer comment désactiver firewalld et installer le package iptables ?
Merci d'avance.
Pour information, à la suite d'un retour du support de Plesk:
Pour installer les packages iptables effectuer la commande suivante en SSH (root):
# yum installeur iptables
Le pare-feu (pare-feu) de Plesk est maintenant opérationnel.
Ma configuration :
Version Plesk: Plesk Obsidian v18.0.35_build1800210430.11 os_CentOS 8
Version du système d'exploitation: CentOS Linux 8.3.2011
Hi Joss,
Thanks for your input!
We've added instructions for disabling firewalld and installing iptables on CentOS 8 to the article.
Once I white list the IP for connecting SSH, can I disable firewall again? Will the whitelisted IP remain?
Please sign in to leave a comment.