Connect PC1 and PC2 to the same hub (or use a crossover cable). Verify that the two are indeed connected.
PC1% systemctl start httpd.serviceStart wireshark on PC1 and PC2, listening on pseudo-interface "all" (or "any").
Save the wireshark output on PC1
Examine the packets in wireshark, especially the HTTP request and response headers.
Answer these questions now and in your lab report:
How many requests were sent on the first connection? How many replies? Was there only one TCP connection, or more than one? If there was more than one request, what web content was requested by the different requests?
compare the two request headers (for the main page) and the two response headers, and show the differences between the two.
Save only the packets associated with closing the connection.
Which side closed the connection? Did any part of the HTTP exchange show that the connection would be closed?
If it uses a locally cached copy, reload the page until the page
is reloaded from the server (at most 10 times). How many times
did you have to reload it for that to happen?
Report what happens if you try and visit one of your image links with the text-only web browser.
PC2% telnet 10.0.1.11 80Enter (by typing on the keyboard, not with cut-and-paste) the command that you prepared in the prelab. Note that if you are too slow, the server will close the connection.
Report the command you used, and whether it was effective in loading the page.
If the command was not effective, change it until you are able to load the page, and report the successful command.
Then, repeat this after replacing the method GET with HEAD, and report the results.
GET /followed by an empty line. This may get the root web page using HTTP version 0.9 (which does not explicitly send the HTTP version number). Repeat the operation for your other web pages.
Save the wireshark output. Report whether the HTTP 0.9 command was effective for each of your web pages. If it was effective, summarize the differences between HTTP/1.1 requests and responses, compared to HTTP 0.9 requests and responses
Try
echo 'GET /x.jpg' | nc 10.0.1.11 80 > downloaded.jpgreplacing "x.jpg" with the name of one of your image files.
Then, open downloaded.jpg to see if the image was downloaded correctly.
Discuss any configuration settings that, in your opinion, might be a security issue, and explain why you think this is the case.
On PC2, add the domain names "PC1" and "PC1.lab.net" in /etc/hosts, and direct both to point to 10.0.1.11. Use any browser to browse the new web pages in these two virtual sites you have just created.
Briefly describe the changes you had to make to the Apache configuration, and any files or directories you had to add on PC1, to create one of the virtual servers. If you were not successful in creating a virtual server, describe, as best you can, why you were not successful.