Difference between revisions of "OPS335 - Assignment 2"

From CDOT Wiki
Jump to: navigation, search
(Assignment Evaluation Details)
 
(39 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
== Purpose ==
 
== Purpose ==
  
In this assignment, you will use the '''335assign virtual network''' and the '''cloyne''' cloning-source that you created in assignment 1 (part 1) to create two e-mail servers: a '''Mail Transfer Agent''' called '''kingston''' and a ''Message Store'' (IMAP) called '''coburg'''. You will also use the '''cloyne''' cloning source to create a Samba server called '''milton'''. 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 the '''toronto''' Master Name server and '''ottawa''' Slave server in order to resolve domain names to IP addresses.
+
In this assignment, you will use the '''335assign virtual network''' and the '''pangaea''' cloning-source that you created in assignment 1 (part 1) to create two e-mail servers: a '''Mail Transfer Agent''' called '''asia''' and a ''Message Store'' (IMAP) called '''europe'''. You will also use the '''pangaea''' cloning source to create a Samba server called '''southamerica'''. 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 the '''australinea''' Master Name server and '''antarctica''' Slave server in order to resolve domain names to IP addresses.
  
 
== General Requirements ==
 
== General Requirements ==
Line 7: Line 7:
 
'''Weight''': 10% of the overall grade
 
'''Weight''': 10% of the overall grade
  
'''Due Date''': During Week 13 (in class)
+
'''Due Date''': check with your professor
  
 
== Detailed Requirements ==
 
== 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 ('''asia''')===
 
 
=== Set-up Mail Transfer Agent ('''kingston''')===
 
  
 
Perform the following steps for this section:
 
Perform the following steps for this section:
  
#Create a clone virtual machine called '''kingston''' from the '''cloyne''' cloning-source. Refer to the table below for '''address''' and '''hostname'''.
+
#Create a clone virtual machine called '''asia''' from the '''pangaea''' 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.
+
#Only 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'''.
 
#Create a '''regular user''' for this virtual machine using '''your Seneca userID'''.
#Any machine within the '''towns.ontario.ops''' domain will be able to route outgoing email through this server.
+
#Any machine within the '''continents.earth.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@towns.ontario.ops)
+
#Any mail sent directly from this machine will use the domain as the sending address (i.e. user@continents.earth.ops)
 
#You are NOT required to encrypt received email messages.
 
#You are NOT required to encrypt received email messages.
#This machine will relay received email messages for any user account in the '''towns.ontario.ops''' domain to '''coburg.towns.ontario.ops'''.
+
#This machine will relay received email messages for any user account in the '''continents.earth.ops''' domain to '''europe.continents.earth.ops'''.
  
=== Set-up Mail Delivery Agent / Message Store ('''coburg''') ===
+
=== Set-up Mail Delivery Agent / Message Store ('''europe''') ===
  
 
Perform the following steps for this section:
 
Perform the following steps for this section:
  
#Create a clone virtual machine called '''coburg''' from the '''cloyne''' cloning-source. Refer to the table below for '''address''' and '''hostname'''.
+
#Create a clone virtual machine called '''europe''' from the '''pangaea''' cloning-source. Refer to the table below for '''address''' and '''hostname'''.
 
#Create a '''regular user''' for this virtual machine using '''your Seneca userID'''.
 
#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.
+
#Only 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 '''towns.ontario.ops''' domain.
+
#This machine will accept incoming email for any user account in the '''continents.earth.ops''' domain.
 
#No other machine in this domain will accept incoming email.
 
#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 be an '''IMAP''' server (i.e. NOT POP3 or LTMP).  
 
#This machine will NOT use encryption.
 
#This machine will NOT use encryption.
#This machine will use postfix's built-in LDA to store received emails in maildir format in a sub-directory of each users' home directory called mailboxes.
+
#This machine will use postfix'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.
 
#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 '''kingston''' and '''coburg''' servers.
+
#Configure your Thunderbird application (installed in Lab 4b) to allow the user to send and receive email messages using the '''asia''' and '''europe''' servers.
  
Add MX records to the forward lookup zone on your master DNS server so that all incoming mail addressed to the domain is sent to your IMAP server ('''coburg''') first, and the MTA ('''kingston''') as a fall-back.
+
Add MX records to the forward lookup zone on your master DNS server so that all incoming mail addressed to the domain is sent to your IMAP server ('''europe''') first, and the MTA ('''asia''') as a fall-back.
  
=== Set-up a Samba Server ('''milton''')===
+
=== Set-up a Samba Server ('''southamerica''')===
  
 
Perform the following steps for this section:
 
Perform the following steps for this section:
  
#Create a clone virtual machine called '''milton''' from the '''cloyne''' cloning-source. Refer to the table below for '''address''' and '''hostname'''.
+
#Create a clone virtual machine called '''southamerica''' from the '''pangaea''' cloning-source. Refer to the table below for '''address''' and '''hostname'''.
 
#Create a '''regular user''' for this virtual machine using '''your Seneca userID'''.
 
#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.
+
#Only 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.
 
#It will run '''Samba''' (automatically on boot) to share files with machines in this network.
#Create three <u>new</u> users on the Samba file server, call them '''yoursenecaid-1''', '''yoursenecaid-2''', and '''yoursenecaid-admin'''. (replace "yoursenecaid" with your <u>actual</u> Seneca ID)
+
#Create three <u>new</u> users on the Samba file server, call them '''sarmation-yoursenecaid''', '''kaapvaal-yoursenecaid''', and '''gawler-yoursenecaid'''. (replace "yoursenecaid" with your <u>actual</u> Seneca ID)
#Create a directory /documents with the following subdirectories:
+
#Create a directory /supercontinents with the following subdirectories:
<pre style="font-size: 14pt;margin-left:30px;">/documents
+
<pre style="font-size: 14pt;margin-left:30px;">/supercontinents
+-- private
+
+-- cratons
¦  +-- yoursenecaid-1
+
¦  +-- sarmation
¦  +-- yoursenecaid-2
+
¦  +-- kaapvaal
¦  +-- yoursenecaid-admin
+
¦  +-- gawler
+-- shared
+
+-- pangaeaic
     +-- readonly
+
     +-- laurasia
     +-- readwrite
+
     +-- gondwana
 
</pre>
 
</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>'''yoursenecaid-1''' and '''yoursenecaid-2''' have '''read/write''' access to their own <u>private</u> directories.</li><li>'''yoursenecaid-admin''' has '''read/write''' access to <u>every</u> directory.</li><li>Everyone has '''read''' access to the '''readonly''' directory (but only the '''admin''' has '''write''' access too).</li><li>Everyone can both '''read''' and '''write''' to the '''readwrite''' directory.</li></ol></li><li>Set up '''three''' Samba users to mirror your new Linux users.</li><li>Configure '''five''' shares (one for each directory above) with permissions as close as possible to the Linux permissions.</li></ol>
+
<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>'''sarmation-yoursenecaid''' and '''kaapvaal-yoursenecaid''' have '''read/write''' access to their own <u>private</u> directories.</li><li>'''gawler-yoursenecaid''' has '''read/write''' access to <u>every</u> directory.</li><li>Everyone has '''read''' access to the '''laurasia''' directory (but only the '''gawler''' account has '''write''' access too).</li><li>Everyone can both '''read''' and '''write''' to the '''gondwana''' directory.</li></ol></li><li>Set up '''three''' Samba users to mirror your new Linux users.</li><li>Configure '''five''' shares (one for each of sarmation, kaapvaal, gawler, laurasia, and gondwana) with permissions as close as possible to the Linux permissions.</li></ol>
  
=== Set-up Windows Client to Test Samba server ('''milton''')===
+
=== Set-up Client to Test Samba server ('''southamerica''')===
  
 
Perform the following steps for this section:
 
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 another virtual machine to act as a client to the samba service. If using windows, you can 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'''.
 
#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.
+
#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 (not applicable on Windows).
 
#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.
 
#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 ===
 
=== Network Configuration ===
  
As you will now have functioning primary and secondary DNS servers, modify your network configuration file for the '''kingston''', '''coburg''', and '''milton''' servers specify the correct IPADDR.
+
As you will now have functioning primary and secondary DNS servers, modify your network configuration file for the '''asia''', '''europe''', and '''southamerica''' servers specify the correct IPADDR.
  
 
=== Table of Virtual Machines / DNS Records ===
 
=== Table of Virtual Machines / DNS Records ===
Line 82: Line 80:
 
{| class="wikitable" | style="margin-left:0px; border: 2px solid black;"
 
{| class="wikitable" | style="margin-left:0px; border: 2px solid black;"
 
|- style="border: 2px solid black;font-weight:bold;text-align:center;"
 
|- style="border: 2px solid black;font-weight:bold;text-align:center;"
| style="border: 2px solid black;" | Hostname  
+
| style="border: 2px solid black;" | Hostname / Domain
 
| style="border: 2px solid black;" |Address  
 
| style="border: 2px solid black;" |Address  
 
| style="border: 2px solid black;" |Purpose
 
| style="border: 2px solid black;" |Purpose
 
|-style="background-color:#66cccc; border: 2px solid black;"
 
|-style="background-color:#66cccc; border: 2px solid black;"
| style="border: 2px solid black;" |'''york.towns.ontario.ops''' (your existing host)
+
| style="border: 2px solid black;" |'''africa.continents.earth.ops''' (your existing host)
| style=border: 2px solid black;"  |External Facing Address:''' DHCP assigned'''<br>Internal Virtual Bridge (virbr1):''' 172.17.40.1'''
+
| style=border: 2px solid black;"  |External Facing Address:''' DHCP assigned'''<br>Internal Virtual Bridge (virbr1):''' 172.28.105.1'''
 
| style="border: 2px solid black;" | Your '''host''' machine
 
| style="border: 2px solid black;" | Your '''host''' machine
  
 
|-style="background-color:#66cccc; border: 2px solid black;"
 
|-style="background-color:#66cccc; border: 2px solid black;"
| style="background-color:#66cccc; border: 2px solid black;" | '''cloyne.towns.ontario.ops'''  
+
| style="background-color:#66cccc; border: 2px solid black;" | '''pangaea.continents.earth.ops'''  
| style="background-color:#66cccc; border: 2px solid black;" | '''172.17.15.100'''   
+
| style="background-color:#66cccc; border: 2px solid black;" | '''172.28.105.100'''   
 
| style="background-color:#66cccc; border: 2px solid black;" |'''Cloning-source''' used to create other servers for other assignments.
 
| style="background-color:#66cccc; border: 2px solid black;" |'''Cloning-source''' used to create other servers for other assignments.
 
|-style="background-color:#66cccc; border: 2px solid black;"
 
|-style="background-color:#66cccc; border: 2px solid black;"
| style="background-color:#66cccc; border: 2px solid black;" |  '''toronto.towns.ontario.ops'''  
+
| style="background-color:#66cccc; border: 2px solid black;" |  '''australinea.continents.earth.ops'''  
| style="background-color:#66cccc; border: 2px solid black;" |  ''' 172.17.15.2'''  
+
| style="background-color:#66cccc; border: 2px solid black;" |  ''' 172.28.105.2'''  
 
| style="background-color:#66cccc; border: 2px solid black;" |  '''Master''' Name Server
 
| style="background-color:#66cccc; border: 2px solid black;" |  '''Master''' Name Server
  
 
|-style="background-color:#66cccc; border: 2px solid black;"
 
|-style="background-color:#66cccc; border: 2px solid black;"
| style="background-color:#66cccc; border: 2px solid black;" | '''ottawa.towns.ontario.ops'''
+
| style="background-color:#66cccc; border: 2px solid black;" | '''antarctica.continents.earth.ops'''
| style="background-color:#66cccc; border: 2px solid black;" |  '''172.17.15.3'''   
+
| style="background-color:#66cccc; border: 2px solid black;" |  '''172.28.105.3'''   
 
| style="background-color:#66cccc; border: 2px solid black;" |  '''Slave''' Name Server
 
| style="background-color:#66cccc; border: 2px solid black;" |  '''Slave''' Name Server
 
|-  style="background-color:white;"
 
|-  style="background-color:white;"
| style="background-color:#66cccc;border: 2px solid black;" |  '''kingston.towns.ontario.ops'''  
+
| style="background-color:#66cccc; border: 2px solid black;" |  '''asia.continents.earth.ops'''  
| style="background-color:#66cccc;border: 2px solid black;" |  ''' 172.17.15.5'''  
+
| style="background-color:#66cccc; border: 2px solid black;" |  '''172.28.105.5'''  
| style="background-color:#66cccc;border: 2px solid black;" |  '''SMTP''' mail Server
+
| style="background-color:#66cccc; border: 2px solid black;" |  '''SMTP''' mail Server
  
 
|-  style="background-color:white; border: 2px solid black;"
 
|-  style="background-color:white; border: 2px solid black;"
| style="background-color:#66cccc;border: 2px solid black;" |  '''coburg.towns.ontario.ops'''  
+
| style="background-color:#66cccc; border: 2px solid black;" |  '''europe.continents.earth.ops'''  
| style="background-color:#66cccc;border: 2px solid black;" |  '''172.17.15.6'''   
+
| style="background-color:#66cccc; border: 2px solid black;" |  '''172.28.105.6'''   
| style="background-color:#66cccc;border: 2px solid black;" |  '''IMAP''' mail Server
+
| style="background-color:#66cccc; border: 2px solid black;" |  '''IMAP''' mail Server
 
|-  style="background-color:white;"
 
|-  style="background-color:white;"
| style="background-color:#66cccc;border: 2px solid black;" | '''milton.towns.ontario.ops'''  
+
| style="background-color:#66cccc; border: 2px solid black;" | '''southamerica.continents.earth.ops'''  
| style="background-color:#66cccc;border: 2px solid black;" |  '''172.17.15.8'''   
+
| style="background-color:#66cccc; border: 2px solid black;" |  '''172.28.105.8'''   
| style="background-color:#66cccc;border: 2px solid black;" |  '''Samba''' Server
+
| style="background-color:#66cccc; border: 2px solid black;" |  '''Samba''' Server
 
 
|-  style="background-color:#66cccc;"
 
| style="background-color:#66cccc;border: 2px solid black;" | '''hamilton.towns.ontario.ops'''
 
| style="background-color:#66cccc;border: 2px solid black;" | '''172.17.15.10'''
 
| style="background-color:#66cccc;border: 2px solid black;" | '''Client Linux''' or '''Windows''' Server
 
 
 
 
|}
 
|}
  
Line 128: Line 120:
 
In addition to the basic firewall established in assignment 1, ensure the following restrictions are met:
 
In addition to the basic firewall established in assignment 1, ensure the following restrictions are met:
  
#Any machine may send smtp traffic to '''kingston''' and '''coburg'''.
+
#Any machine may send smtp traffic to '''asia''' and '''europe'''.
#Only machines in the local network may send IMAP traffic to '''coburg'''.
+
#Only machines in the local network may send IMAP traffic to '''europe'''.
#Only machines in the local network may access the samba shares on '''milton'''.
+
#Only machines in the local network may access the samba shares on '''southamerica'''.
  
 
== Assignment Submission ==
 
== Assignment Submission ==
Line 140: Line 132:
 
*'''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 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>
 
*'''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 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):
+
*Download and run a shell script to check your work:
 
 
 
 
::'''Peter Callaghan's Classes''' (Section '''D'''):<ul><li>Refer to blackboard for instructions on how to submit this assignment.</li></ul>
 
 
 
 
 
::'''Murray Saul (Section '''A'''), Ryan Lockhart-Thompson (Section '''B''') and Colin Yip''' (Sections '''C''' , '''E''' &amp; '''F'''):<ol><li>Login as '''root''' on your '''host''' machine.</li><li>Change to the '''/root/bin''' directory.</li><li>Make certain that your '''cloning-source VM is 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:<br><br>'''Murray Saul's classes (section A):''' &nbsp; &nbsp; <span style="font-family:courier;font-size:1.5em;color:#4d4dff
 
">wget https://matrix.senecacollege.ca/~murray.saul/ops335/check-assn2-murray-saul.bash </span><br><br>'''Ryan Lockhart-Thompons's classes (Section B):''': &nbsp; &nbsp; <span style="font-family:courier;font-size:1.5em;color:#4d4dff
 
"> TBA https://matrix.senecacollege.ca/~murray.saul/ops335/check-assn2-ryan.bash</span><br><br>'''Colin Yip's classes (Section C, E, and F):''': &nbsp; &nbsp; <span style="font-family:courier;font-size:1.5em;color:#4d4dff
 
"> wget https://scs.senecac.on.ca/~colin.yip/2187/check-assn2-colin.bash</span><br><br>Set execute permissions and run the shell script.<br>(Your shell script contents will be mailed to your Seneca email and to your OPS335 instructor's Seneca email.<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.
 
  
 +
<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>Issue the command to download a checking script for your assignment to your '''host''' machine:<br><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>Upload the resulting file to blackboard.
  
 
*'''Additional Assignment Information:'''<ol type="a"><li>This assignment is to be completed individually. '''Group submissions are not allowed'''.</li><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>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>
Line 170: Line 154:
 
|-
 
|-
 
|  
 
|  
:::Proof of SMTP Server Running on '''kingston''' server
+
:::Proof of SMTP Server Running on '''asia''' server
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
 
|  
 
|  
:::E-mails sent from '''kingston''' and '''milton''' servers to '''coburg''' server (user@IP_ADDR)
+
:::E-mails sent from '''asia''' and '''southamerica''' servers to '''europe''' server (user@IP_ADDR)
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
 
|  
 
|  
:::E-mails sent from '''kingston''' and '''milton''' servers to '''coburg''' server (user@DOMAIN_NAME)
+
:::E-mails sent from '''asia''' and '''southamerica''' servers to '''europe''' server (user@DOMAIN_NAME)
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
 
| colspan="2" |  
 
| colspan="2" |  
::'''Samba Server Access via Windows OS:'''
+
::'''Samba Server Access via client:'''
 
|-
 
|-
 
|  
 
|  
:::'''yoursenecaid-1''' and '''yoursenecaid-2''' has '''read/write''' access
+
:::'''sarmation-yoursenecaid''' and '''kaapvaal-yoursenecaid''' have '''read/write''' access
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
 
|  
 
|  
:::'''yoursenecaid-admin''' has '''read/write''' access to every directory
+
:::'''gawler-yoursenecaid''' has '''read/write''' access to every directory
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
 
|  
 
|  
:::All accounts have '''read''' access to the '''read-only''' directory<br>(but only '''yoursenecaid-admin'' has '''write''' access)
+
:::All accounts have '''read''' access to the '''laurasia''' directory<br>(but only '''manager-yoursenecaid'' has '''write''' access)
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
 
|  
 
|  
:::All accounts can both '''read''' and '''write''' to the '''readwrite''' directory.
+
:::All accounts can both '''read''' and '''write''' to the '''gondwana''' directory.
 
| style="text-align:right" | /1
 
| style="text-align:right" | /1
 
|-
 
|-
Line 205: Line 189:
 
| width=10% style="text-align:right;font-weight:bold" | Mark
 
| width=10% style="text-align:right;font-weight:bold" | Mark
 
|-
 
|-
|  colspan=2 | '''Mail Transfer Agent (kingston) - General Configuration'''
+
|  colspan=2 | '''Mail Transfer Agent (asia) - General Configuration'''
 
|-
 
|-
 
|  
 
|  
Line 277: Line 261:
 
|-  
 
|-  
 
|'''Less Deductions (One mark per issue for EACH VM):
 
|'''Less Deductions (One mark per issue for EACH VM):
 +
:*Not using zone filenames: '''mydb-for-continents.earth.ops''' and '''mydb-for-172.28.105'''
 
:*'''DOMAIN Name''' NOT Resolved
 
:*'''DOMAIN Name''' NOT Resolved
 
:*'''VM hostname''' NOT set
 
:*'''VM hostname''' NOT set
:*firewall'''enabled''' / '''running'''
+
:*firewalld '''enabled''' / '''running'''
 
:*iptables '''disabled''' / '''not running'''
 
:*iptables '''disabled''' / '''not running'''
 
:*No '''Yum update'''
 
:*No '''Yum update'''

Latest revision as of 02:40, 29 November 2021

Purpose

In this assignment, you will use the 335assign virtual network and the pangaea cloning-source that you created in assignment 1 (part 1) to create two e-mail servers: a Mail Transfer Agent called asia and a Message Store (IMAP) called europe. You will also use the pangaea cloning source to create a Samba server called southamerica. 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 the australinea Master Name server and antarctica Slave server in order to resolve domain names to IP addresses.

General Requirements

Weight: 10% of the overall grade

Due Date: check with your professor

Detailed Requirements

Set-up Mail Transfer Agent (asia)

Perform the following steps for this section:

  1. Create a clone virtual machine called asia from the pangaea cloning-source. Refer to the table below for address and hostname.
  2. Only 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 continents.earth.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@continents.earth.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 continents.earth.ops domain to europe.continents.earth.ops.

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

Perform the following steps for this section:

  1. Create a clone virtual machine called europe from the pangaea 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. Only 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 continents.earth.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 postfix'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 asia and europe servers.

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

Set-up a Samba Server (southamerica)

Perform the following steps for this section:

  1. Create a clone virtual machine called southamerica from the pangaea 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. Only 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 three new users on the Samba file server, call them sarmation-yoursenecaid, kaapvaal-yoursenecaid, and gawler-yoursenecaid. (replace "yoursenecaid" with your actual Seneca ID)
  6. Create a directory /supercontinents with the following subdirectories:
/supercontinents
+-- cratons
¦   +-- sarmation
¦   +-- kaapvaal
¦   +-- gawler
+-- pangaeaic
    +-- laurasia
    +-- gondwana
  1. Set up permissions/ownership on those directories for your Linux users on the file server so that:
    1. sarmation-yoursenecaid and kaapvaal-yoursenecaid have read/write access to their own private directories.
    2. gawler-yoursenecaid has read/write access to every directory.
    3. Everyone has read access to the laurasia directory (but only the gawler account has write access too).
    4. Everyone can both read and write to the gondwana directory.
  2. Set up three Samba users to mirror your new Linux users.
  3. Configure five shares (one for each of sarmation, kaapvaal, gawler, laurasia, and gondwana) with permissions as close as possible to the Linux permissions.

Set-up Client to Test Samba server (southamerica)

Perform the following steps for this section:

  1. Create another virtual machine to act as a client to the samba service. If using windows, you can 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 (not applicable on Windows).
  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 asia, europe, and southamerica 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 / Domain Address Purpose
africa.continents.earth.ops (your existing host) External Facing Address: DHCP assigned
Internal Virtual Bridge (virbr1): 172.28.105.1
Your host machine
pangaea.continents.earth.ops 172.28.105.100 Cloning-source used to create other servers for other assignments.
australinea.continents.earth.ops 172.28.105.2 Master Name Server
antarctica.continents.earth.ops 172.28.105.3 Slave Name Server
asia.continents.earth.ops 172.28.105.5 SMTP mail Server
europe.continents.earth.ops 172.28.105.6 IMAP mail Server
southamerica.continents.earth.ops 172.28.105.8 Samba 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 asia and europe.
  2. Only machines in the local network may send IMAP traffic to europe.
  3. Only machines in the local network may access the samba shares on southamerica.

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. You need to run their full backup shell script to backup all of your VMs (like you did in Assignment 1 - Part 2.
    2. Students need to demonstrate their assignment functionality to their professor during a lab period
      (like you would for any lab for "sign-off").
    3. 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.
    4. 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.

  • Download and run a shell script to check your work:
  1. Login as root on your host machine.
  2. Change to the /root/bin directory.
  3. Make certain that your assignment VMs are running.
  4. Issue the command to download a checking script for your assignment to your host machine:
    wget https://matrix.senecacollege.ca/~peter.callaghan/files/OPS335/check-assn2.bash

    Set execute permissions and run the shell script.
    Upload the resulting file to blackboard.
    • Additional Assignment Information:
      1. This assignment is to be completed individually. Group submissions are not allowed.
      2. 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.
      3. 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
      SMTP and IMAP Servers:
      Proof of SMTP Server Running on asia server
      /1
      E-mails sent from asia and southamerica servers to europe server (user@IP_ADDR)
      /1
      E-mails sent from asia and southamerica servers to europe server (user@DOMAIN_NAME)
      /1
      Samba Server Access via client:
      sarmation-yoursenecaid and kaapvaal-yoursenecaid have read/write access
      /1
      gawler-yoursenecaid has read/write access to every directory
      /1
      All accounts have read' access to the laurasia directory
      (but only
      manager-yoursenecaid
      has write access)
      /1
      All accounts can both read and write to the gondwana directory.
      /1
      Configuration (Checking Script Output)
      Evaluation Item Mark
      Mail Transfer Agent (asia) - 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 (Access Agent – IMAP) 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
      /5
      Samba accounts created (1 mark each)
      /3
      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):
      • Not using zone filenames: mydb-for-continents.earth.ops and mydb-for-172.28.105
      • DOMAIN Name NOT Resolved
      • VM hostname NOT set
      • firewalld enabled / 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