Difference between revisions of "OPS335 - Assignment 2"
(→Assignment Evaluation Details) |
(→Assignment Evaluation Details) |
||
Line 132: | Line 132: | ||
− | ::'''Elizabeth Kopiec's Classes ( | + | ::'''Elizabeth Kopiec's Classes (Section A):'''<ol><li>Login as '''root''' on your '''host''' machine.</li><li>Change to the '''/root/bin''' directory.</li><li>Make certain that at least your '''varian''', '''illidan''', '''kadgar''', '''jaina''' and '''client''' virtual machines are running.<li>Issue the command to download a checking script for your assignment to your '''host''' machine: <source>wget http://matrix.senecac.on.ca/~murray.saul/ops335/check-assn2.bash</source></li><li>Set execute permissions and run the command: '''/root/bin/check-assn2.bash'''<br>(You shell script contents will be mailed to your Seneca email and to your OPS335 instructor's Seneca email. If you do '''NOT''' receive an e-mail message in your Seneca email account, then there is a problem, and you '''MUST''' rerun or contact your OPS335 instructor immediately.<br><br></li></ol> |
*'''Additional Assignment Information:'''<ol type="a"><li>This assignment is to be completed individually. '''Group submissions are not allowed'''.</li><li>You are NOT allowed to use local hostname resolution (i.e. no entries in your '''/etc/hosts''' file).<li>Test your machine to make sure it works. If a machine is not accessible (e.g. will not boot, can not be accessed through ssh from your host, etc.), or is otherwise non-functional, you may be told to '''resubmit'''.</li><li>'''Late submissions are a subject to a penalty of 10% per day'''.</li><ol> | *'''Additional Assignment Information:'''<ol type="a"><li>This assignment is to be completed individually. '''Group submissions are not allowed'''.</li><li>You are NOT allowed to use local hostname resolution (i.e. no entries in your '''/etc/hosts''' file).<li>Test your machine to make sure it works. If a machine is not accessible (e.g. will not boot, can not be accessed through ssh from your host, etc.), or is otherwise non-functional, you may be told to '''resubmit'''.</li><li>'''Late submissions are a subject to a penalty of 10% per day'''.</li><ol> | ||
Revision as of 08:03, 14 June 2017
Contents
Purpose
In this assignment, you will use the 335assign virtual network and the slyvanas cloning-source that you created in assignment 1 (part 1) to create two e-mail servers: a Mail Transfer Agent called illidan and a Message Store (IMAP) called kadgar. You will also use the slyvanas cloning source to create a Samba server called jaina. In addition to creating those Linux servers, you will also be required to create a virtual machine for an MS Windows operating system to test-out your Samba server. As you perform and submit this assignment, you MUST run at least the varian Master Name server in order to resolve domain names to IP addresses.
General Requirements
Weight: 10% of the overall grade
Due Date: During Week 13 (in class)
Detailed Requirements
Set-up Mail Transfer Agent (illidan)
Perform the following steps for this section:
- Create a clone virtual machine called illidan from the slyvanas cloning-source. Refer to the table below for address and hostname.
- The normal user on your host machine must be able to ssh to the root account on each machine without being prompted for a password.
- Create a regular user for this virtual machine using your Seneca userID.
- Any machine within the warcraft.games.ops domain will be able to route outgoing email through this server.
- Any mail sent directly from this machine will use the domain as the sending address (i.e. user@warcraft.games.ops)
- You are NOT required to encrypt received email messages.
- This machine will relay received email messages for any user account in the warcraft.games.ops domain.
Set-up Mail Delivery Agent / Message Store (kadgar)
Perform the following steps for this section:
- Create a clone virtual machine called kadgar from the slyvanas cloning-source. Refer to the table below for address and hostname.
- Create a regular user for this virtual machine using your Seneca userID.
- The root user on your host machine must be able to ssh to the root account on each machine without being prompted for a password.
- This machine will accept incoming email for any user account in the warcraft.games.ops domain.
- No other machine in this domain will accept incoming email.
- This machine will be an IMAP server (i.e. NOT POP3 or LTMP).
- This machine will NOT use encryption.
- This machine will use postifx's built-in LDA to store received emails in maildir format in a sub-directory of each users' home directory called mailboxes.
- Any mail sent to root will be automatically delivered into the mailbox of the regular user created above.
- Configure your Thunderbird application (installed in Lab 4b) to allow the user to send and receive email messages using the illidan and kadgar servers.
Add MX records to the forward lookup zone on your varian DNS server so that all incoming mail addressed to the domain is sent to your IMAP server (kadgar) first, and the MTA (illidan) as a fall-back.
Set-up a Samba Server (jaina)
Perform the following steps for this section:
- Create a clone virtual machine called jaina from the slyvanas cloning-source. Refer to the table below for address and hostname.
- Create a regular user for this virtual machine using your Seneca userID.
- It will run Samba (automatically on boot) to share files with machines in this network. You may reuse the Windows installation from the lab or create a new one for the assignment.
- Create five new users on the Samba file server, call them yoursenecaid-1, yoursenecaid-2, yoursenecaid-3, yoursenecaid-4, yoursenecaid-admin. (replace "yoursenecaid" with your actual Seneca ID)
- Create a directory /documents with the following subdirectories:
. +-- private ¦ +-- yoursenecaid-1 ¦ +-- yoursenecaid-2 ¦ +-- yoursenecaid-3 ¦ +-- yoursenecaid-4 ¦ +-- yoursenecaid-admin +-- shared +-- readonly +-- readwrite
- Set up permissions/ownership on those directories for your Linux users on the file server so that:
- yoursenecaid-1 through yoursenecaid-4 have read/write access to their own private directories.
- yoursenecaid-admin has read/write access to every directory.
- Everyone has read access to the readonly directory (but only the admin has write access too).
- Everyone can both read and write to the readwrite directory.
- Set up five Samba users to mirror your new Linux users.
- Configure seven shares (one for each directory above) with permissions as close as possible to the Linux permissions.
Set-up Windows Client to Test Samba server (chen)
Perform the following steps for this section:
- Create a MS Windows OS as a virtual machine. You should know by now how to obtain the MS Windows image from Seneca's MSDN section (trial version good for 30 days). Refer to the table below for address and hostname.
- Create a regular user for this virtual machine using your Seneca userID.
- The normal user on your host machine must be able to ssh to the root account on each machine without being prompted for a password.
- This machine will use the master and slave DNS servers in your domain as the primary and secondary DNS servers. It will not have access to any other DNS servers.
Network Configuration
As you will now have functioning primary and secondary DNS servers, modify your network configuration file for the illidan, kadgar, and jaina servers specify the correct IPADDR.
Table of Virtual Machines / DNS Records
Below is network configuration for ALL virtual machines used in this assignment and previous assignments for this course:
Hostname | Address | Purpose |
---|---|---|
azeroth.warcraft.games.ops (your existing host) | External Facing Address: DHCP assigned Internal Virtual Bridge (virbr1): 172.18.50.1 |
Your host machine |
sylvanas.warcraft.games.ops | 172.18.50.100 | Cloning-source used to create other servers for other assignments. |
varian.warcraft.games.ops | 172.18.50.3 | Master Name Server |
guldan.warcraft.games.ops | 172.18.50.4 | Slave Name Server |
illidan.warcraft.games.ops | 172.18.50.7 | SMTP mail Server |
kadgar.warcraft.games.ops | 172.18.50.8 | IMAP mail Server |
jaina.warcraft.games.ops | 172.18.50.9 | Samba Server |
chen.warcraft.games.ops | 172.18.50.10 | Client Linux or Windows Server |
Set-up Firewall Policies
In addition to the basic firewall established in assignment 1, ensure the following restrictions are met:
- All virtual machines will use iptables as their firewall.
- Outgoing traffic is allowed.
- Each virtual machine must be able to check for and install updates using yum.
- Traffic on the loopback interface for each virtual machine is allowed.
- The host machine (and only the host machine) must be able to ssh to them.
- ICMP traffic is allowed if it originated within the local network only.
- Other than that, only the traffic necessary to support their roles described above should be allowed.
Assignment Submission
The student is required to prove to their professor that their set-up works correctly during the regularly-scheduled lab period.
Assignment Evaluation Details
- Demonstrate working assignment to your instructor in class:
- Students need to demonstrate their assignment functionality to their professor during a lab period
(like you would for any lab for "sign-off"). - Students are required to prepare everything ahead of time so that you can quickly demonstrate to your instructor that all required parts of your assignment are working.
- Do do proceed to the next step until you have demonstrated your assignment to your instructor to check for errors that may cause problems when running the checking script.
- Students need to demonstrate their assignment functionality to their professor during a lab period
- Download and run a shell script to check your work (Depending on your OPS335 Instructor):
- Peter Callaghan's Classes (Murray Saul's Sections B & C / Peter Callaghan's Section D):
- Refer to instruction on Moodle to download and run marking shell script.
- Peter Callaghan's Classes (Murray Saul's Sections B & C / Peter Callaghan's Section D):
- Elizabeth Kopiec's Classes (Section A):
- Login as root on your host machine.
- Change to the /root/bin directory.
- Make certain that at least your varian, illidan, kadgar, jaina and client virtual machines are running.
- Issue the command to download a checking script for your assignment to your host machine:
wget http://matrix.senecac.on.ca/~murray.saul/ops335/check-assn2.bash
- Set execute permissions and run the command: /root/bin/check-assn2.bash
(You shell script contents will be mailed to your Seneca email and to your OPS335 instructor's Seneca email. If you do NOT receive an e-mail message in your Seneca email account, then there is a problem, and you MUST rerun or contact your OPS335 instructor immediately.
- Elizabeth Kopiec's Classes (Section A):
- Additional Assignment Information:
- This assignment is to be completed individually. Group submissions are not allowed.
- You are NOT allowed to use local hostname resolution (i.e. no entries in your /etc/hosts file).
- Test your machine to make sure it works. If a machine is not accessible (e.g. will not boot, can not be accessed through ssh from your host, etc.), or is otherwise non-functional, you may be told to resubmit.
- Late submissions are a subject to a penalty of 10% per day.
Evaluation Rubric
Here is an evaluation rubric (in table form) showing you how you will be evaluated for this assignment. Part of the rubric is marked from professor observation from student demonstration of assignment in class, and the other part is based on output from the results of an assignment checking script that the student will download and run.
Student Demonstration (in class) | |
Evaluation Item | Mark |
| |
|
/1 |
|
/1 |
|
/1 |
| |
|
/1 |
|
/1 |
|
/1 |
|
/1 |
Configuration (Checking Script Output) | |
Evaluation Item | Mark |
Mail Transfer Agent (illidan) - General Configuration | |
|
/5 |
Mail Delivery Agent (MTA) / Message Store (MS) - General Configuration | |
|
/3 |
|
/1 |
|
/4 |
DNS configuration | |
|
/2 |
|
/2 |
Samba Server - General Configuration | |
|
/7 |
|
/2 |
|
/1 |
Firewall policies | |
|
/2 |
|
/1 |
|
/1 |
|
/1 |
|
/1 |
Less Deductions (half-mark for EACH VM):
|
|
TOTAL | /40 |