Exercise 4: setup a Kali VM (VM2), configuring the Ubuntu 16.04 (VM1) as a router

The purpose of this exercise is to modify our VM environment to support a second VM, and to learn details of necessary network concepts to get the environment to work. New concepts or items include: 1)Kali; 2)using iperf3 and traceroute; 3)Intro to linux fw and NAT;

Submission: Copy and Paste results from traceroute and iperf3 (detailed at end of this page) - submit a single PDF file to handin.

 

The steps for this exercise: setup VM2 (Kali), setup the networking environment, test/validate

Setup VM2

Refer to the main VM setup page as some of the steps are described in more detail on that page.

download the Kali Linux 64 bit ISO (version 2016.2) and follow the procedures in the setup page

Specific for Kali:

 

Setup the network

Setup the following network, with Kali Linux (VM2) and Ubuntu 16.04 (VM1) serving as the router.

External Network---- Host OS ---- VM1 ------ VM2

The VM1 - Host OS network can be either bridge or NAT with port forwarding. You need to find a way to access your VM1 from the outside.

For the network connecting VM1 - VM2 - use an 'internal network' or 'Host only' network. The following uses the VirtualBox internal network.....

Next, follow the instructions on the setup page to setup the networks in Linux. When setting up Linux config on VM1, use static IP address such as 192.168.2.1, a subnet mask of 255.255.255.0. Do NOT set the GW address. Select Routes and then select the config box that says this host will use the resources on this network locally. On VM2,use a static address such as 192.168.2.100 and set the interface's GW to point to VM1's interface (192.168.2.1 in my example).

Issue the following to configure to forward packets AND to do NAT for packets over the 10.0.2.15 interface (make sure to use the right interface name....it is the interface that is used to access the outside world)

 

Check connectivity from VM2, all of these should now work:

 

Testing/validating :

 

  1. Issue a traceroute from VM2 and Google's DNS Name Server 8.8.8.8. (use either UDP or ICMP - whichever works better).
  2. Issue a traceroute from your Host OS to 8.8.8.8 (again, UDP or ICMP)
  3. Issue iperf3 between your VMs - use TCP and default parameters. It does not matter which VM is the client and which is the server.

Your actual results depend on where you are at....

#1

#2

 

#3

 

Perform iperf3 between VM2 and VM1

 

 

Last update: 3/22/2017