"WebServe & Sniff" is a hands-on project designed to help you understand the basics of setting up an Apache web server on Ubuntu, hosting a simple 'Hello World' webpage, and analyzing the HTTP protocol using Wireshark on a Windows machine. The project focuses on practical implementation and network traffic analysis, providing valuable insights into web server setup and network monitoring.
- Operating Systems:
- Ubuntu (for hosting the web server)
- Windows (for accessing the web server and analyzing traffic)
- Software:
- Apache2 (web server software)
- Wireshark (network protocol analyzer)
- Network:
- Both machines must be on the same network.
- Update Ubuntu Packages:
sudo apt-get update sudo apt-get upgrade
- Install Apache2:
sudo apt-get install apache2
- Start and Enable Apache:
sudo systemctl start apache2 sudo systemctl enable apache2
- Create 'Hello World' HTML Page:
- Navigate to
/var/www/html/
and createindex.html
:cd /var/www/html sudo nano index.html
- Add the following HTML content:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="description" content="A simple Hello World example in HTML."> <title>Hello World</title> </head> <body> <h1>Hello World!</h1> </body> </html>
- Navigate to
- Verify Server Accessibility:
- Find the Ubuntu server’s IP using:
hostname -I
- Open a browser on any machine connected to the same network and enter the Ubuntu server's IP address.
- Find the Ubuntu server’s IP using:
- Find Ubuntu Server’s IP:
- Use
hostname -I
to find the IP address.
- Use
- Connect via Browser:
- Open a web browser on your Windows machine and enter the IP address. The 'Hello World' page should appear.
- Install Wireshark:
- Download and install Wireshark from here.
- Capture Network Traffic:
- Start a new capture on the network interface connected to your Ubuntu machine.
- Access the 'Hello World' page from your Windows browser.
- Filter and Analyze HTTP Traffic:
- Use the
http
filter to isolate HTTP traffic. - Examine the HTTP GET requests and responses.
- Use the
- Detailed Report:
- Steps and resources used for Apache server setup.
- Insights and analysis from the HTTP traffic captured by Wireshark.
- Challenges faced and how they were addressed.
- Screenshots:
- The 'Hello World' webpage as viewed on Windows.
- Wireshark capturing and analyzing HTTP traffic.
This project provided hands-on experience with web server setup, website hosting, and HTTP traffic analysis. It enhanced understanding of the HTTP protocol and the importance of network monitoring tools like Wireshark.
For any questions or feedback, please contact:
- Name: Mohamed Khaled Mahmoud Sayed
- Email: [email protected]
This project is licensed under the MIT License - see the LICENSE file for details.