Difference between revisions of "OPS335 - Assignment 2"

From CDOT Wiki
Jump to: navigation, search
m (Taking out references to sylvanas, clarifying deductions, clarifying firewall requirements)
(Set-up a Samba Server (basement))
Line 54: Line 54:
 
<pre style="font-size: 14pt;margin-left:30px;">/documents
 
<pre style="font-size: 14pt;margin-left:30px;">/documents
 
+-- private
 
+-- private
¦  +-- yoursenecaid-1
+
¦  +-- yoursenecaid-user
¦  +-- yoursenecaid-2
 
¦  +-- yoursenecaid-3
 
¦  +-- yoursenecaid-4
 
 
¦  +-- yoursenecaid-admin
 
¦  +-- yoursenecaid-admin
 
+-- shared
 
+-- shared

Revision as of 09:51, 4 December 2017

Purpose

In this assignment, you will use the 335assign virtual network and the foundation cloning-source that you created in assignment 1 (part 1) to create two e-mail servers: a Mail Transfer Agent called bedroom and a Message Store (IMAP) called closet. You will also use the foundation cloning source to create a Samba server called basement. 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 dining 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

Important.png
It is YOUR responsibility to Backup all of your VMs for this Assignment!
You are required to frequently backup your VMs prior to exiting a work session during this assignment. Your instructor will NOT accept the fact that your hard disk crashed and lost all of your work. If you properly backed up your VM images and xml configuration files to a USB, then you can purchase a new hard-disk or wipe and recreate your hard disk and restore your VMs. Students who fail to submit their assignment #2 by the last day of scheduled classes will receive an INC grade (assuming they passed all of the other requirements for this course) and will be required to show their instructor their working assignment #2 no later than 4PM on the first Tuesday of the next semester; otherwise, they will fail the course. Students with accommodations should discuss arrangements regarding due dates / submission of assignment #2. Students that are missing both of assignment #1 and assignment #2 will fail this course.


Set-up Mail Transfer Agent (bedroom)

Perform the following steps for this section:

  1. Create a clone virtual machine called bedroom from the foundation cloning-source. Refer to the table below for address and hostname.
  2. 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.
  3. Create a regular user for this virtual machine using your Seneca userID.
  4. Any machine within the house.neighbourhood.ops domain will be able to route outgoing email through this server.
  5. Any mail sent directly from this machine will use the domain as the sending address (i.e. user@house.neighbourhood.ops)
  6. You are NOT required to encrypt received email messages.
  7. This machine will relay received email messages for any user account in the house.neighbourhood.ops domain to closet.house.neighbourhood.ops.

Set-up Mail Delivery Agent / Message Store (closet)

Perform the following steps for this section:

  1. Create a clone virtual machine called closet from the foundation cloning-source. Refer to the table below for address and hostname.
  2. Create a regular user for this virtual machine using your Seneca userID.
  3. 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.
  4. This machine will accept incoming email for any user account in the house.neighbourhood.ops domain.
  5. No other machine in this domain will accept incoming email.
  6. This machine will be an IMAP server (i.e. NOT POP3 or LTMP).
  7. This machine will NOT use encryption.
  8. 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.
  9. Any mail sent to root will be automatically delivered into the mailbox of the regular user created above.
  10. Configure your Thunderbird application (installed in Lab 4b) to allow the user to send and receive email messages using the bedroom and closet servers.

Add MX records to the forward lookup zone on your dining DNS server so that all incoming mail addressed to the domain is sent to your IMAP server (closet) first, and the MTA (bedroom) as a fall-back.

Set-up a Samba Server (basement)

Perform the following steps for this section:

  1. Create a clone virtual machine called basement from the foudation cloning-source. Refer to the table below for address and hostname.
  2. Create a regular user for this virtual machine using your Seneca userID.
  3. 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.
  4. It will run Samba (automatically on boot) to share files with machines in this network.
  5. 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)
  6. Create a directory /documents with the following subdirectories:
/documents
+-- private
¦   +-- yoursenecaid-user
¦   +-- yoursenecaid-admin
+-- shared
    +-- readonly
    +-- readwrite
  1. Set up permissions/ownership on those directories for your Linux users on the file server so that:
    1. yoursenecaid-1 through yoursenecaid-4 have read/write access to their own private directories.
    2. yoursenecaid-admin has read/write access to every directory.
    3. Everyone has read access to the readonly directory (but only the admin has write access too).
    4. Everyone can both read and write to the readwrite directory.
  2. Set up five Samba users to mirror your new Linux users.
  3. 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 (basement)

Perform the following steps for this section:

  1. 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.
  2. Create a regular user for this virtual machine using your Seneca userID.
  3. 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.
  4. 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 bedroom, closet, and basement 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
roof.house.neighbourhood.ops (your existing host) External Facing Address: DHCP assigned
Internal Virtual Bridge (virbr1): 172.30.10.1
Your host machine
foundation.house.neighbourhood.ops 172.30.10.100 Cloning-source used to create other servers for other assignments.
kitchen.house.neighbourhood.ops 172.30.10.3 Master Name Server
dining.house.neighbourhood.ops 172.30.10.4 Slave Name Server
bedroom.house.neighbourhood.ops 172.30.10.7 SMTP mail Server
closet.house.neighbourhood.ops 172.30.10.8 IMAP mail Server
basement.house.neighbourhood.ops 172.30.10.9 Samba Server
washroom.house.neighbourhood.ops 172.30.10.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:

  1. Any machine may send smtp traffic to bedroom.
  2. Only machines in the local network may send IMAP traffic to closet.
  3. Only machines in the local network may access the samba shares on basement.

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:
    1. Students need to demonstrate their assignment functionality to their professor during a lab period
      (like you would for any lab for "sign-off").
    2. 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.
    3. 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.

  • Download and run a shell script to check your work (Depending on your OPS335 Instructor):


Peter Callaghan's Classes (Sections C, D & E):
  • Refer to instructions on blackboard.


Murray Saul's Classes (Sections A & B):
  1. Login as root on your host machine.
  2. Change to the /root/bin directory.
  3. Make certain that your foundation, dining, bedroom, closet, basement and client virtual machines are running.
  4. 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
  5. 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.

  • Additional Assignment Information:
    1. This assignment is to be completed individually. Group submissions are not allowed.
    2. You are NOT allowed to use local hostname resolution (i.e. no entries in your /etc/hosts file).
    3. 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.
    4. 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
    STMP and IMAP Servers:
    Proof of SMTP Server Running on bedroom server
    /1
    E-mails sent from bedroom and basement servers to closet server (user@IP_ADDR)
    /1
    E-mails sent from bedroom and basement servers to closet server (user@DOMAIN_NAME)
    /1
    Samba Server Access via Windows OS:
    yoursenecaid-1 through yoursenecaid-4 has read/write access
    /1
    yoursenecaid-admin has read/write access to every directory
    /1
    All accounts have read' access to the read-only directory
    (but only
    yoursenecaid-admin
    has write access)
    /1
    All accounts can both read and write to the readwrite directory.
    /1
    Configuration (Checking Script Output)
    Evaluation Item Mark
    Mail Transfer Agent (bedroom) - General Configuration
    Postfix MTA settings
    /5
    Mail Delivery Agent (MTA) / Message Store (MS) - General Configuration
    Postfix MTA settings
    /3
    LDA settings
    /1
    Email sent to root is delivered to non-privileged user
    /1
    AA settings
    /4
    DNS configuration
    Correct MX records exist
    /2
    MX records prioritize access to mail servers correctly
    /2
    Samba Server - General Configuration
    Directories shared with correct permissions
    /6
    Samba accounts created (1/2 mark each)
    /2
    Writing allowed to directories
    /1
    Firewall policies
    MTAs allow SMTP traffic
    /2
    AA allows IMAP traffic
    /1
    IMAP traffic limited to local network
    /1
    Samba server allows samba traffic
    /1
    Samba traffic limited to local network
    /1
    Less Deductions (One mark per issue for EACH VM):
    • DOMAIN Name NOT Resolved
    • VM hostname NOT set
    • firewallenabled / running
    • iptables disabled / not running
    • No Yum update
    • Services NOT active
    • Local hostname resolution appears in /etc/hosts (1 mark per entry, per vm)
    • Neglecting major safeguards (e.g. no firewall present, firewall allowing all traffic, no active SELinux) (4 marks per issue, per VM)
    • Failing to backup VMs (1 mark deduction for each VM not backed up)
    TOTAL /40