DEV Community

Carrie
Carrie

Posted on

How to Install SafeLine WAF on Servers with Plesk

SafeLine Web Application Firewall (WAF) provides robust protection for your websites, blocking malicious traffic, bot attacks, and Layer 7 DDoS attacks. If your server uses Plesk as a control panel, installing SafeLine is straightforward. This guide will walk you through the steps.

Prerequisites

  • A Linux server with Plesk installed.
  • Root access to the server.
  • SafeLine installation package.

Install SafeLine

  • Operating system: Linux
  • Instruction architecture: x86_64, arm64
  • Software dependency: Docker version 20.10.14 or above
  • Software dependency: Docker Compose version 2.0.0 or above
  • Minimum environment: 1 CPU core/ 1 GB memory / 5 GB disk
  • CPU: ssse3

Use the following command to start the automated installation of SafeLine. (This process requires root privileges)

bash -c "$(curl -fsSLk https://waf.chaitin.com/release/latest/manager.sh)" -- --en
Enter fullscreen mode Exit fullscreen mode

Configure Your Domains in Plesk

  • Log in to Plesk.
  • Navigate to Domains > Domain Name > Apache & Nginx Settings.
  • Update your domain’s backend to point to SafeLine.

Enable Security Features

  • Access the SafeLine dashboard. Access https://:9443/, you will see interface below:

  • Get Administrator Account
docker exec safeline-mgt resetadmin
Enter fullscreen mode Exit fullscreen mode

After the command is successfully executed, you will see the following content

Please must remember this content:

[SafeLine] Initial username:admin
[SafeLine] Initial password:**********
[SafeLine] Done
Enter fullscreen mode Exit fullscreen mode
  • Enable Anti-Bot, Rate Limiting, and Threat Detection features.
  • Add any custom rules for your applications.

Conclusion

Installing SafeLine on a Plesk server is simple and effective. With SafeLine, your websites gain enterprise-grade security without the complexity of managing multiple security tools.

Top comments (0)