filmov
tv
How to Install Apache with ModSecurity on Ubuntu 22.04

Показать описание
ModSecurity is a free and open-source firewall tool supported by various web servers, such as Apache, Nginx, and IIS. It is a signature-based firewall that is capable to block several types of attacks including, cross-site scripting (XSS), brute force attacks, and known code injection attacks. It provides different rule sets that allow you to customize and configure your server security. It can also monitor web traffic in real time and help you detect and respond to intrusions.
In this video, you will see how to set up ModSecurity with Apache on Ubuntu 22.04.
Useful Links
Commands Used
apt install gnupg2 software-properties-common curl wget git unzip -y
add-apt-repository ppa:ondrej/apache2 -y
apt update -y
apt install apache2 -y
apt install libapache2-mod-security2 -y
a2enmod security2
systemctl restart apache2
systemctl status apache2
systemctl restart apache2
mkdir /etc/apache2/modsecurity-crs/
mv coreruleset-3.3.0/ /etc/apache2/modsecurity-crs
cd /etc/apache2/modsecurity-crs/coreruleset-3.3.0/
IncludeOptional /etc/apache2/modsecurity-crs/coreruleset-3.3.0/rules/*.conf
apache2ctl -t
In this video, you will see how to set up ModSecurity with Apache on Ubuntu 22.04.
Useful Links
Commands Used
apt install gnupg2 software-properties-common curl wget git unzip -y
add-apt-repository ppa:ondrej/apache2 -y
apt update -y
apt install apache2 -y
apt install libapache2-mod-security2 -y
a2enmod security2
systemctl restart apache2
systemctl status apache2
systemctl restart apache2
mkdir /etc/apache2/modsecurity-crs/
mv coreruleset-3.3.0/ /etc/apache2/modsecurity-crs
cd /etc/apache2/modsecurity-crs/coreruleset-3.3.0/
IncludeOptional /etc/apache2/modsecurity-crs/coreruleset-3.3.0/rules/*.conf
apache2ctl -t