1,234
edits
Changes
no edit summary
== Purpose ==
In this assignment, you will use the '''335assign virtual network''' and the '''chassispangaea''' cloning-source that you created in assignment 1 (part 1) to create two e-mail servers: a '''Mail Transfer Agent''' called '''jaguarasia''' and a ''Message Store'' (IMAP) called '''bmweurope'''. You will also use the '''chassispangaea''' cloning source to create a Samba server called '''volvosouthamerica'''. 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 '''porscheaustralinea''' 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''': During Week 13 (in class)check with your professor
== Detailed Requirements ==
Perform the following steps for this section:
#Create a clone virtual machine called '''jaguarasia''' from the '''chassispangaea''' cloning-source. Refer to the table below for '''address''' and '''hostname'''.#The 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'''.
#Any machine within the '''luxurycontinents.autoearth.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@luxurycontinents.autoearth.ops)
#You are NOT required to encrypt received email messages.
#This machine will relay received email messages for any user account in the '''luxurycontinents.autoearth.ops''' domain to '''bmweurope.luxurycontinents.autoearth.ops'''.
=== Set-up Mail Delivery Agent / Message Store ('''bmweurope''') ===
Perform the following steps for this section:
#Create a clone virtual machine called '''bmweurope''' from the '''chassispangaea''' cloning-source. Refer to the table below for '''address''' and '''hostname'''.
#Create a '''regular user''' for this virtual machine using '''your Seneca userID'''.
#The 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 '''luxurycontinents.autoearth.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 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.
#Configure your Thunderbird application (installed in Lab 4b) to allow the user to send and receive email messages using the '''jaguarasia''' and '''bmweurope''' 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 ('''bmweurope''') first, and the MTA ('''jaguarasia''') as a fall-back.
=== Set-up a Samba Server ('''volvosouthamerica''')===
Perform the following steps for this section:
#Create a clone virtual machine called '''volvosouthamerica''' from the '''chassispangaea''' cloning-source. Refer to the table below for '''address''' and '''hostname'''.
#Create a '''regular user''' for this virtual machine using '''your Seneca userID'''.
#The 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.
#Create three <u>new</u> users on the Samba file server, call them '''sarmation-yoursenecaid-1''', '''kaapvaal-yoursenecaid-2''', and '''gawler-yoursenecaid-admin'''. (replace "yoursenecaid" with your <u>actual</u> Seneca ID)#Create a directory /documents supercontinents with the following subdirectories:<pre style="font-size: 14pt;margin-left:30px;">/documentssupercontinents+-- privatecratons¦ +-- yoursenecaid-1sarmation¦ +-- yoursenecaid-2kaapvaal¦ +-- yoursenecaid-admingawler+-- sharedpangaeaic +-- readonlylaurasia +-- readwritegondwana
</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>'''sarmation-yoursenecaid-1''' and '''kaapvaal-yoursenecaid-2''' have '''read/write''' access to their own <u>private</u> directories.</li><li>'''gawler-yoursenecaid-admin''' has '''read/write''' access to <u>every</u> directory.</li><li>Everyone has '''read''' access to the '''readonlylaurasia''' directory (but only the '''admingawler''' account has '''write''' access too).</li><li>Everyone can both '''read''' and '''write''' to the '''readwritegondwana''' 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 aboveof 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 ('''volvosouthamerica''')===
Perform the following steps for this section:
#Create a MS Windows OS another virtual machine to act as a virtual machineclient to the samba service. You should know by now how to 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'''.
#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.
=== Network Configuration ===
As you will now have functioning primary and secondary DNS servers, modify your network configuration file for the '''jaguarasia''', '''bmweurope''', and '''volvosouthamerica''' servers specify the correct IPADDR.
=== Table of Virtual Machines / DNS Records ===
{| 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;" | Hostname / Domain
| style="border: 2px solid black;" |Address
| style="border: 2px solid black;" |Purpose
|-style="background-color:#66cccc; border: 2px solid black;"
| style="border: 2px solid black;" |'''dealerafrica.luxurycontinents.autoearth.ops''' (your existing host)| style=border: 2px solid black;" |External Facing Address:''' DHCP assigned'''<br>Internal Virtual Bridge (virbr1):''' 172.4528.20105.1'''
| style="border: 2px solid black;" | Your '''host''' machine
|-style="background-color:#66cccc; border: 2px solid black;"
| style="background-color:#66cccc; border: 2px solid black;" | '''chassispangaea.luxurycontinents.autoearth.ops''' | style="background-color:#66cccc; border: 2px solid black;" | '''172.4528.20105.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;"
| style="background-color:#66cccc; border: 2px solid black;" | '''ferrariaustralinea.luxurycontinents.autoearth.ops''' | style="background-color:#66cccc; border: 2px solid black;" | ''' 172.4528.20105.32'''
| 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;" | '''porscheantarctica.luxurycontinents.autoearth.ops'''| style="background-color:#66cccc; border: 2px solid black;" | '''172.4528.20105.43'''
| style="background-color:#66cccc; border: 2px solid black;" | '''Slave''' Name Server
|- style="background-color:white;"
| style="background-color:#66cccc;border: 2px solid black;" | '''jaguarasia.luxurycontinents.autoearth.ops''' | style="background-color:#66cccc;border: 2px solid black;" | ''' 172.4528.20105.75''' | style="background-color:#66cccc;border: 2px solid black;" | '''SMTP''' mail Server
|- style="background-color:white; border: 2px solid black;"
| style="background-color:#66cccc;border: 2px solid black;" | '''bmweurope.luxurycontinents.autoearth.ops''' | style="background-color:#66cccc;border: 2px solid black;" | '''172.4528.20105.86''' | style="background-color:#66cccc;border: 2px solid black;" | '''IMAP''' mail Server
|- style="background-color:white;"
| style="background-color:#66cccc;border: 2px solid black;" | '''volvosouthamerica.luxurycontinents.autoearth.ops''' | style="background-color:#66cccc;border: 2px solid black;" | '''172.4528.20105.98''' | style="background-color:#66cccc;border: 2px solid black;" | '''Samba''' Server |- style="background-color:#66cccc;"| style="background-color:#66cccc;border: 2px solid black;" | '''buick.luxury.auto.ops''' | style="background-color:#66cccc;border: 2px solid black;" | '''172.45.20.10'''| style="background-color:#66cccc;border: 2px solid black;" | Client Linux or Windows Server
|}
In addition to the basic firewall established in assignment 1, ensure the following restrictions are met:
#Any machine may send smtp traffic to '''jaguarasia''' and '''bmweurope'''.#Only machines in the local network may send IMAP traffic to '''bmweurope'''.#Only machines in the local network may access the samba shares on '''volvosouthamerica'''.
== Assignment Submission ==
*'''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): ::'''Peter Callaghan's Classes (Section C & D):'''<ul><li>Refer to blackboard for instructions on how to submit this assignment.</li></ul>
<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>
|-
| colspan="2" |
::'''STMP SMTP and IMAP Servers:'''
|-
|
:::Proof of SMTP Server Running on '''jaguarasia''' server
| style="text-align:right" | /1
|-
|
:::E-mails sent from '''jaguarasia''' and '''volvosouthamerica''' servers to '''bmweurope''' server (user@IP_ADDR)
| style="text-align:right" | /1
|-
|
:::E-mails sent from '''jaguarasia''' and '''volvosouthamerica''' servers to '''bmweurope''' server (user@DOMAIN_NAME)
| style="text-align:right" | /1
|-
| colspan="2" |
::'''Samba Server Access via Windows OSclient:'''
|-
|
:::'''sarmation-yoursenecaid-1''' and '''kaapvaal-yoursenecaid-2''' has have '''read/write''' access
| style="text-align:right" | /1
|-
|
:::'''gawler-yoursenecaid-admin''' has '''read/write''' access to every directory
| style="text-align:right" | /1
|-
|
:::All accounts have '''read''' access to the '''read-onlylaurasia''' directory<br>(but only '''manager-yoursenecaid-admin'' has '''write''' access)
| style="text-align:right" | /1
|-
|
:::All accounts can both '''read''' and '''write''' to the '''readwritegondwana''' directory.
| style="text-align:right" | /1
|-
| width=10% style="text-align:right;font-weight:bold" | Mark
|-
| colspan=2 | '''Mail Transfer Agent (jaguarasia) - General Configuration'''
|-
|
|-
|
:::AA (Access Agent – IMAP) settings
| style="text-align:right" | /4
|-
|-
|'''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
:*firewallfirewalld '''enabled''' / '''running'''
:*iptables '''disabled''' / '''not running'''
:*No '''Yum update'''