- A Linux Apache2 Web server (any version is OK, I used Ubuntu 10.04)
- A Windows attacker (any version is OK, I used Windows XP)
You should see only one letter in the grid, indicating that only one client is being served at the moment, as shown below on this page.
Click the "Run attack" button. You should see the "HTTP Attack information" box, as shown below on this page.
You should see the grid full of letters, indicating that all possible connections are in use, as shown below on this page. If you see only a few letters, see the "Troubleshoting" section below on this page.
Make sure you can see the grid filled with letters, as shown in the image above on this page.
Save a screen image with the filename Proj 5xa from Your Name.
In the Linux machine, in the Terminal window, execute these commands:cd /etc/apache2/modsecurity-rulessudo nano modsecurity_crs_10_config.conf
Move the cursor to the end of this file. Add a # character to the start of the last line, as shown below on this page:
![]()
Save the file with Ctrl+X, Y, Enter.
Now, to restart Apache, in the Terminal window, enter this command:
sudo /etc/init.d/apache2 restart
In the Linux machine, in the Terminal window, execute these commands:
sudo iptables -A INPUT -p tcp --syn --dport 80 -m state --state NEW -m recent --set
sudo iptables -A INPUT -p tcp --syn --dport 80 -m state --state NEW -m recent --update --seconds 60 --hitcount 10 --rttl -j DROP
These rules filter out any host that makes more than 9 new connections within a minute.
You should see only ten letters in the grid. Iptables is stopping the attack!
Make sure you can see the status grid with only ten letters, as shown in the image above on this page.
Save a screen image with the filename Proj 5xb from Your Name.
Email the images to [email protected] with a Subject line of Proj 5x from Your Name.
Last modified: 6 pm 3-12-11