A hands-on Web Application Firewall (WAF) lab built using SafeLine WAF to protect a vulnerable web application (DVWA) from common web attacks.
This project demonstrates the deployment and configuration of SafeLine Web Application Firewall (WAF) in a home lab environment. A vulnerable web application (DVWA) was hosted on an Ubuntu server and protected using SafeLine WAF configured as a reverse proxy.
The lab includes attack simulation, WAF rule validation, and traffic inspection to understand how a WAF detects and blocks malicious web requests.
- Deploy SafeLine WAF
- Configure DVWA behind a reverse proxy
- Simulate SQL Injection attacks
- Validate WAF detection and blocking
- Configure HTTP Flood protection
- Implement IP-based access control
- Explore authentication and HTTPS protection
+----------------+
| Kali Linux VM |
| (Attacker) |
+--------+-------+
|
SQL Injection Requests
|
▼
+------------------+
| SafeLine WAF |
| Reverse Proxy |
+--------+---------+
|
▼
+------------------+
| Ubuntu Server |
| Apache + DVWA |
+------------------+
- SafeLine WAF
- DVWA (Damn Vulnerable Web Application)
- Ubuntu Server
- Kali Linux
- Apache2
- MariaDB / MySQL
- VirtualBox
- OpenSSL
- Reverse Proxy Configuration
- SQL Injection Protection
- HTTPS using Self-Signed Certificate
- HTTP Flood Defense
- Custom IP Blocking Rules
- Authentication Protection
- Web Traffic Inspection
The following attack scenarios were tested:
- SQL Injection
- HTTP Flood Requests
- Unauthorized Access Attempts
- IP-based Access Blocking
- Web Application Security
- Web Application Firewall (WAF)
- Reverse Proxy Configuration
- SQL Injection Detection
- HTTPS Configuration
- Apache Administration
- Ubuntu Server Administration
- Security Monitoring
- Attack Simulation
- Blue Team Fundamentals
SafeLine-WAF-Home-Lab/
│
├── README.md
├── REPORT.pdf
├── screenshots/
│ ├── lab-architecture.png
│ ├── safeline-dashboard.png
│ ├── sql-injection-block.png
│ ├── http-flood-defense.png
│ ├── ip-block-rule.png
│ └── https-configuration.png
│
├── configuration/
│ ├── apache.conf
│ ├── ssl-setup.md
│ └── safeline-notes.md
│
├── LICENSE
└── .gitignore
- Deploying and configuring SafeLine WAF
- Protecting web applications with a reverse proxy
- Detecting and blocking SQL Injection attacks
- Configuring HTTPS with SSL certificates
- Implementing custom security policies
- Understanding WAF logging and traffic inspection
Khubaib PP
Aspiring SOC Analyst | Cybersecurity Enthusiast
- GitHub: https://github.com/khub000
- LinkedIn: https://linkedin.com/in/khubaibpp
- Portfolio: https://www.khubaibpp.online