Solution Overview
This solution helps you deploy a web application firewall (WAF) on Huawei Cloud ECSs in just a few clicks with open-source software ModSecurity. Combining with the flexibility and efficiency of Nginx, this solution can significantly enhance your web security. ModSecurity is an open-source cross-platform web application firewall (WAF). It can protect websites by checking the data received and sent by web servers.
Solution Architecture
This solution is open-source and free for commercial use. You can also make custom development based on source code.

Building a WAF with ModSecurity
Version: 1.0.3
Last Updated: September 2023
Built By: Huawei Cloud
Time Required for Deployment: About 20 minutes
Time Required for Uninstallation: About 5 minutes
Solution Description
This solution will:
1. Create a Linux ECS, which is used for setting up a Web Application Firewall (WAF) and installing Nginx.
2. Install and configure Nginx on a Linux ECS to balance workloads.
3. Install and configure ModSecurity on a Linux ECS to provide WAF capabilities.
4. Create an EIP and bind it to a server so that the server can access the Internet and be accessed from the Internet.
Solution Description
This solution will:
1. Create a Linux ECS, which is used for setting up a Web Application Firewall (WAF) and installing Nginx.
2. Install and configure Nginx on a Linux ECS to balance workloads.
3. Install and configure ModSecurity on a Linux ECS to provide WAF capabilities.
4. Create an EIP and bind it to a server so that the server can access the Internet and be accessed from the Internet.