cse taggi

Log in

Cryptolab

CryptoLab

Cryptolab consists of 24 servers behind a cryptogate. It is used to teach COMP3441. The 2009 version of the cryptolab implements the gateway and lab machines as virtual machines operating in a single VMware ESX server. This is different from the past where the gateway and the lab machines were separate physical computer located in the CSE server room.

What it is?

All behind a firewall under CSG control.

What is the purpose?



Architecture

NetworkMap.jpg

Gateway=cryptogate-vm



The lab computers



Remote access to the cryptolab machines



Physical networking

The new lab does retain some of the physical components from the old lab - namely a switch, three hubs and the wireless access point. The same 802.1q trunk shared by the eth1 interfaces of the lab machines extends out to the Cisco switch. It is preconfigured with each physical non-trunk port being its own separate VLAN. The physical switch ports connected as shown in the following table.

Switch portVLANConnected to
1101Hub #1 - port 1
2102Hub #1 - port 2
3103Hub #1 - port 3
4104Hub #1 - port 4
5105Hub #1 - port 5
6106Hub #1 - port 6
7107Hub #1 - port 7
8108Hub #1 - port 8
9109Hub #2 - port 1
10110Hub #2 - port 2
11111Hub #2 - port 3
12112Hub #2 - port 4
13113Hub #2 - port 5
14114Hub #2 - port 6
15115Hub #2 - port 7
16116Hub #2 - port 8
17117Hub #3 - port 1
18118Hub #3 - port 2
19119Hub #3 - port 3
20120Hub #3 - port 4
21121
22122
23123Wireless AccessPoint
24 Trunk


How to configure a vlan

On fedora

The following code shows how to configure a Fedora Linux network interface file for a VLAN. In this case, the VLAN is number 13 and the configuration file is /etc/sysconfig/network-scripts/ifcfg-eth1.13 . Once this configuration file is in place, it only needs either service network restart or ifup eth1.13 to be run.
This creates an eth1.13 interface which will appear and work like a normal network interface ( such as when ifconfig -a or tcpdump is run). It's worth noting that running tcpdump on eth1 without the VLAN ID will show traffic for all VLANs (including the VLAN tags).
Do ensure that the vconfig package is installed otherwise the above will not work. VLAN=yes DEVICE=eth1.13 BOOTPROTO=none ONBOOT=yes IPADDR=10.13.0.2 NETMASQ=255.255.255.0 NETWORK=10.13.0.0 BROADCAST=10.13.0.255

On Windows Vista & Server 2008

Microsoft Windows operating system do not support VLANs (802.1q or otherwise). However, many network car manufacturers (such as Intel) provide VLAN support in their device drivers. Here's how to configure 802.1q support into Vista and Server 2008.
Firstly, note that the Windows virtual lab machines have virtual Intel E1000 network cards.
Secondly, download the following from the cryptogate-vm (those drivers were founded on www.intel.com): Once both of those are installed, you'll find a VLAN tab in the properties for the network interface where you can create new virtual LAN interfaces.

w2k8_vlan_tab.jpg

Those new virtual LANs will show up in the network connections manager:

w2k8_NetworkConManager.jpg

Note that in the network connections manager diagram, the names of the interfaces associated with the trunk have already been changed to be more meaningful. E.g, "Local Area Connection #2" has been changed to "Local Trunk".

Administration of the lab

By means of the VMware Infrastructure Client tutors and lecturers have greater access to the lab machine. This allows to insert virtual media into each machine's CD/DVD drive and install whatever operating system (thought Linux remains available as an install option when booting). Also the power switch and reset button of each machine is now accessible via the VIC.

Install the Virtual Infrastructure Client

VIC can be installed on a Windows box, it can be download at engesx04.cse.unsw.edu.au

Connect to the CSE virtual farm

Once the VIC is installed, you can connect to vim.cse.unsw.edu.au with the login CryptoAdmin
vic_logon.jpg

Select the Virtual Machines & Templates view :

vic_view.jpg

Then you can see the console of the machine, reset it, stop an start it as well as connect a CD or an iso file.

vic_view2.jpg

Install Fedora on one of the lab machine

Each machine is configured so it first boots on the CD/DVD, then on the network card and finally on the hard drive. So if the CD/DVD drive is not connected, the following menu will appear while booting: ########################################### ############## PXE boot ################# ########################################### 1 : will install fedora10 64 bits 2 : will boot from the local hard drive default is to boot from the local hard drive By default, the machine boot on the local hard drive, if the user types "1" and then "enter", a new Fedora10 operating system will be installed.

Tags for this page:

cryptolab crypto COMP3441