 I have a virtual network of Linux nodes set up created using topology 5 where we have nodes 1 and 2 on one subnet, node 2 is a router, and 2 and 3 on a second subnet. What I want to do now is experiment with web browsing. In particular, see the exchange of messages when we use HTTP. So my idea is to have node 1 as a web browser, node 3 as a web server, and node 2 will capture packets of the router, the packets that go between node 1 and node 3. Now to do this we need to overcome a couple of issues. First we need a website. These nodes have the Apache web server already installed so it's easy to turn on the web server. But one thing that I want to do is create a simple website. Just a demo website so I can visit a few of the pages. So we've got a way to quickly do that. On node 3 which is going to host the website, this node is going to run a web server software called Apache. But we need some web pages to be displayed in the browser. And we've got a script in the vertnet directory that will create those pages for us. So the way to run this is we need to be a sudo to do this as administrator to set up the website. We use bash to run the script. And the script is in the vertnet directory under bin and it's called vn deploy web index. What that will do is create a few simple web pages and turn on the web server. And we need the network password which is network. And I have run the script. Nothing's happened. There's no errors. Let's hope it's created the website. We'll see with the web browser in the moment. But just to explain the basics of the web server. The Apache web server will serve pages from a particular directory. And that directory is under var slash www html. So in that directory slash var slash www slash html there are a set of pages which were created by that script. You see index dot html, page one, page two, an image and a sub directory which also has some pages in it. And they're very simple web pages but we can use them in testing. So we now have a website. To access that website we need a web browser. So on node one bring up node one we need a web browser. But as we as you know these nodes only run the command line. There's no graphical user interface. We can't run Firefox or some other graphical web browser here. We just have a terminal. But we have luck because there are some text based web browsers and a common one is called links. Links is a web browser and it send requests for pages and when the web pages are sent back it will show them as text on the screen. It works well for very simple web pages but of course it cannot display images. It cannot display complex objects, javascript and so on. But it's okay for testing. So before we access a website let's go to node two, our router and start capturing with tcp dot run as the administrator using sudo. Capture on interface EDH1. Don't convert addresses to domain names. And let's write to a file called http1.pcap. Network is the password. So we're capturing on node two. Node three is our web server and think now on the node one as the web browser. And a quick way to start our web browser is to type in links followed by the address of the web server. And we will use in the first case the IP address of the web server. 192.168.2.21. And because with URLs we don't have to use a domain name. We can use the direct IP address. So let's try this. And links triggers a http request to be sent to the web server. The web page requested is sent back and you see the web page is titled simple demo website. And it has some links to page one and page two and a bit of text. In links the browser you can use your arrow keys on the keyboard to move between the different links. So up and down now page one link is highlighted. Down page two link is highlighted. If I want to visit page one I use my right arrow to follow the link. And that takes me to page one where it contains an image on there. Now of course links will not display that image. But if we had a graphical web page that image would be downloaded and displayed as well. And there's links to the home page and page two. Let's go to the home page. And now let's follow the link to page two. And page two is displayed. We can go back to the home page or maybe even page three which is in a different directory. Page three. Alright page three is very simple and has a link back to the home page. So these web pages which were created using the vn deploy web index script. Just these four or five simple web pages just so we can test our web browser and more importantly capture some HTTP packets. In links if we want to quit, exit the web browser, press Q to quit. Are you sure? Yes I am. We can stop the capture. Control C I'll note two. And then we could open that capture file in Wireshark. We can open FileZilla, connect to node two, listening on port 2202 and download the capture file. And now we can go into Wireshark and view the capture file. And explore the HTTP messages.