Changes

Jump to: navigation, search

OPS335 - Assignment 2

1,417 bytes added, 13:18, 17 May 2019
no edit summary
== Purpose ==
In this assignment, you will use the '''335assign virtual network''' and the '''slyvanasconcept''' cloning-source that you created in assignment 1 (part 1) to create two e-mail servers: a '''Mail Transfer Agent''' called '''illidansubway''' and a ''Message Store'' (IMAP) called '''kadgararbys'''. You will also use the '''slyvanasconcept''' cloning source to create a Samba server called '''jainamcdonalds'''. 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 '''varianwendys''' Master Name server and '''harveys''' Slave server in order to resolve domain names to IP addresses.
== General Requirements ==
'''Weight''': 10% of the overall grade
'''Due Date(summer 2019)''': During Week 13 (in class)
== Detailed Requirements ==
{{Admon/important|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.}}<br /><br />
=== Set-up Mail Transfer Agent ('''illidansubway''')===
Perform the following steps for this section:
#Create a clone virtual machine called '''illidansubway''' from the '''slyvanasconcept''' cloning-source. Refer to the table below for '''address''' and '''hostname'''.
#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.
#Create a '''regular user''' for this virtual machine using '''your Seneca userID'''.
#Any machine within the '''warcraftbond.gamesvillains.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@warcraftbond.gamesvillains.ops)
#You are NOT required to encrypt received email messages.
#This machine will relay received email messages for any user account in the '''warcraftbond.gamesvillains.ops''' domainto '''arbys.bond.villains.ops'''.
=== Set-up Mail Delivery Agent / Message Store ('''kadgararbys''') ===
Perform the following steps for this section:
#Create a clone virtual machine called '''kadgararbys''' from the '''slyvanasconcept''' 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 '''warcraftbond.gamesvillains.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 postifxpostfix'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 '''illidansubway''' and '''kadgararbys''' servers.
Add MX records to the forward lookup zone on your varian master DNS server so that all incoming mail addressed to the domain is sent to your IMAP server ('''kadgararbys''') first, and the MTA ('''illidansubway''') as a fall-back.
=== Set-up a Samba Server ('''jainamcdonalds''')===
Perform the following steps for this section:
#Create a clone virtual machine called '''jainamcdonalds''' from the '''slyvanasconcept''' 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.#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 three <u>new</u> users on the Samba file server, call them '''tarot-yoursenecaid-1''', '''yoursenecaidoctopus-2''', '''yoursenecaid-3''', and '''yoursenecaidspectre-4''', '''yoursenecaid-admin'''. (replace "yoursenecaid" with your <u>actual</u> Seneca ID)#Create a directory /documents plans with the following subdirectories:<pre style="font-size: 14pt;margin-left:30px;">.+-- private¦ +-- yoursenecaid-1/plans¦ +-- yoursenecaid-2evil¦ ¦ +-- yoursenecaid-3tarot¦ ¦ +-- yoursenecaid-4octopus¦ ¦ +-- yoursenecaid-adminspectre+-- sharedworld +-- readonlyconquest +-- readwritedomination
</pre>
<ol><li value="6">Set up permissions/ownership on those directories for your Linux users on the file server so that:<ol type="a"><li>'''tarot-yoursenecaid-1''' through and '''octopus-yoursenecaid-4''' have '''read/write''' access to their own <u>private</u> directories.</li><li>'''spectre-yoursenecaid-admin''' has '''read/write''' access to <u>every</u> directory.</li><li>Everyone has '''read''' access to the '''readonlyconquest''' directory (but only the '''adminspectre''' has '''write''' access too).</li><li>Everyone can both '''read''' and '''write''' to the '''readwritedomination''' directory.</li></ol></li><li>Set up '''fivethree''' Samba users to mirror your new Linux users.</li><li>Configure '''sevenfive''' shares (one for each directory aboveof tarot, octopus, spectre, conquest, and domination) with permissions as close as possible to the Linux permissions.</li></ol>
=== Set-up Windows Client to Test Samba server ('''chenmcdonalds''')===
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 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 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 '''illidansubway''', '''kadgararbys''', and '''jainamcdonalds''' 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:
{| class="wikitable" | style="margin-left:0px; border: 2px solid black;"! Hostname !! Address !! Purpose|-style="backgroundborder: 2px solid black;font-weight:bold;text-coloralign:#66cccccenter;"| '''azeroth.warcraft.games.ops''' (your existing host) style="border: 2px solid black;" |Hostname / Domain| External Facing Addressstyle="border:''' DHCP assigned'''<br>Internal Virtual Bridge (virbr1):''' 172.18.50.1''' 2px solid black;" || Your '''host''' machineAddress |-style="background-colorborder:#66cccc2px solid black;"| '''sylvanas.warcraft.games.ops''' || '''172.18.50.100''' || '''Cloning-source''' used to create other servers for other assignments.Purpose|-style="background-color:#66cccc; border: 2px solid black;"| style="border: 2px solid black;" | '''varianhungry.warcraftrestaurant.gamesfastfood.ops''' || ''' 172.18.50.3''' || '''Master''' Name Server(your existing host)|-style="background-colorborder:#66cccc2px solid black;" | External Facing Address:'''guldan.warcraft.games.opsDHCP assigned''' || <br>Internal Virtual Bridge (virbr1):'''172.1821.505.4''' || 1'''Slave''' Name Server|- style="background-colorborder:#66cccc2px solid black;"| Your '''illidan.warcraft.games.opshost''' || ''' 172.18.50.7''' || '''SMTP''' mail Servermachine
|- style="background-color:#66cccc; border: 2px solid black;"| style="background-color:#66cccc; border: 2px solid black;" | '''kadgarconcept.warcraftrestaurant.gamesfastfood.ops''' |style="background-color:#66cccc; border: 2px solid black;" | '''172.1821.505.8100''' |style="background-color:#66cccc; border: 2px solid black;" | '''IMAPCloning-source''' mail Serverused to create other servers for other assignments.|- style="background-color:#66cccc; border: 2px solid black;"|style="background-color:#66cccc; border: 2px solid black;" | '''jainawendys.warcraftrestaurant.gamesfastfood.ops''' |style="background-color:#66cccc; border: 2px solid black;" | '''172.1821.505.92''' |style="background-color:#66cccc; border: 2px solid black;" | '''SambaMaster''' Name Server
|- style="background-color:#66cccc; border: 2px solid black;"| style="background-color:#66cccc; border: 2px solid black;" | '''harveys.restaurant.fastfood.ops'''| style="background-color:#66cccc; border: 2px solid black;" | '''172.21.5.3''' | style="background-color:#66cccc; border: 2px solid black;" | '''Slave''' Name Server|- style="background-color:white;"| style="background-color:#66cccc; border: 2px solid black;" | '''chensubway.warcraftrestaurant.gamesfastfood.ops''' |style="background-color:#66cccc; border: 2px solid black;" | '''172.1819.501.105''' |style="background-color:#66cccc; border: 2px solid black;" | Client Linux or Windows '''SMTP''' mail Server
|- style="background-color:white; border: 2px solid black;"
| style="background-color:#66cccc; border: 2px solid black;" | '''arbys.restaurant.fastfood.ops'''
| style="background-color:#66cccc; border: 2px solid black;" | '''172.21.5.6'''
| style="background-color:#66cccc; border: 2px solid black;" | '''IMAP''' mail Server
|- style="background-color:white;"
| style="background-color:#66cccc; border: 2px solid black;" | '''mcdonalds.restaurant.fastfood.ops'''
| style="background-color:#66cccc; border: 2px solid black;" | '''172.21.5.8'''
| style="background-color:#66cccc; border: 2px solid black;" | '''Samba''' Server
|}
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 Any machine may send smtp traffic is allowed. #Each virtual machine must be able to check for '''subway''' and install updates using yum'''arbys'''.#Traffic on Only machines in the loopback interface for each virtual machine is allowed.#The host machine (and only the host machine) must be able to ssh local network may send IMAP traffic to them'''arbys'''.#ICMP traffic is allowed if it originated within Only machines in the local network only. #Other than that, only may access the traffic necessary to support their roles described above should be allowedsamba shares on '''mcdonalds'''.
== Assignment Submission ==
===Assignment Evaluation Details===
*'''Demonstrate working assignment to your instructor in class:'''<ol type="a"><li>You need to run their full backup shell script to backup all of your VMs (like you did in Assignment 1 - Part 2.</li><li>Students need to demonstrate their assignment functionality to their professor during a lab period<br>(like you would for any lab for "sign-off").</li><li>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.</li><li>Do do not 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.<br><br></li></ol> *Download and run a shell script to check your work (Depending on your OPS335 Instructor): 
::'''Peter Callaghan's Classes (Murray Saul's Sections B &amp; C / Peter Callaghan's Section D):'''<ul><li>Refer to instruction on Moodle to download *Download and run marking a shell script.</li></ul>to check your work:
<ol><li>Login as '''root''' on your '''host''' machine.</li><li>Change to the '''/root/bin''' directory.</li><li>Make certain that your '''assignment VMs are running'''.</li><li>Make certain that the mailx command has been installed. If not, issue the following command to install e-mail on your '''host''' machine:<source>yum install mailx </source><li>Issue the command to download a checking script for your assignment to your '''host''' machine:<span style="font-family:courier;font-size:1.5em;color:#4d4dff
">wget https://matrix.senecacollege.ca/~peter.callaghan/files/OPS335/check-assn2.bash</span><br><br>Set execute permissions and run the shell script.<br>(Your shell script contents will be mailed to your OPS335 instructor's Seneca email, and a confirmation message will be emailed to you.<br><br>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):'''<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>
==Evaluation Rubric==
|-
| colspan="2" |
::'''STMP SMTP and IMAP Servers:'''
|-
|
:::Proof of SMTP Server Running on '''illidansubway''' server
| style="text-align:right" | /1
|-
|
:::E-mails sent from '''illidansubway''' and '''jainamcdonalds''' servers to '''kadgararbys''' server (user@IP_ADDR)
| style="text-align:right" | /1
|-
|
:::E-mails sent from '''illidansubway''' and '''jainamcdonalds''' servers to '''kadgararbys''' server (user@DOMAIN_NAME)
| style="text-align:right" | /1
|-
| colspan="2" |
::'''Samba Server Access via Windows OSclient:'''
|-
|
:::'''tarot-yoursenecaid-1''' through and '''octopus-yoursenecaid-4''' has have '''read/write''' access
| style="text-align:right" | /1
|-
|
:::'''spectre-yoursenecaid-admin''' has '''read/write''' access to every directory
| style="text-align:right" | /1
|-
|
:::All accounts have '''read''' access to the '''read-onlyconquest''' directory<br>(but only '''spectre-yoursenecaid-admin'' has '''write''' access)
| style="text-align:right" | /1
|-
|
:::All accounts can both '''read''' and '''write''' to the '''readwritedomination''' directory.
| style="text-align:right" | /1
|-
| width=10% style="text-align:right;font-weight:bold" | Mark
|-
| colspan=2 | '''Mail Transfer Agent (illidansubway) - General Configuration'''
|-
|
|-
|
:::Email sent to root is delivered to non-privileged user| style="text-align:right" | /1|-| :::AA (Access Agent – IMAP) settings
| style="text-align:right" | /4
|-
|
:::Directories shared with correct permissions
| style="text-align:right" | /75
|-
|
:::Samba accounts created (1/2 mark each)| style="text-align:right" | /23
|-
|
| style="text-align:right" | /1
|-
|'''Less Deductions (half-One mark per issue for EACH VM)::*Not using zone filenames: '''mydb-for-bond.villains.ops''' and '''mydb-for-172.19.1'''
:*'''DOMAIN Name''' NOT Resolved
:*'''VM hostname''' NOT set
:*'''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''')
|
|-
13,420
edits

Navigation menu