13,420
edits
Changes
no edit summary
== Purpose ==
In this assignment, you will use the '''335assign virtual network''' and the '''seedlingslyvanas''' cloning-source that you created in assignment 1 (part 1) to create two e-mail servers: a '''Mail Transfer Agent''' called '''pineillidan''' and a ''Message Store'' (IMAP) called '''firkadgar'''. You will also use the '''seedlingslyvanas''' cloning source to create a Samba server called '''bristleconejaina'''. 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 '''balsamvarian''' Master Name server in order to resolve domain names to IP addresses.
== General 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 kadgarst 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 ('''pineillidan''')===
Perform the following steps for this section:
#Create a clone virtual machine called '''pineillidan''' from the '''seedlingslyvanas''' 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 '''coniferouswarcraft.treesgames.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@coniferouswarcraft.treesgames.ops)
#You are NOT required to encrypt received email messages.
#This machine will relay received email messages for any user account in the '''coniferouswarcraft.treesgames.ops''' domain.
=== Set-up Mail Delivery Agent / Message Store ('''firkadgar''') ===
Perform the following steps for this section:
#Create a clone virtual machine called '''firkadgar''' from the '''seedlingslyvanas''' 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 '''coniferouswarcraft.treesgames.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 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 '''pineillidan''' and '''firkadgar''' servers.
Add MX records to the forward lookup zone on your balsam varian DNS server so that all incoming mail addressed to the domain is sent to your IMAP server ('''firkadgar''') firstkadgarst, and the MTA ('''pineillidan''') as a fall-back.
=== Set-up a Samba Server ('''bristleconejaina''')===
Perform the following steps for this section:
#Create a clone virtual machine called '''bristleconejaina''' from the '''seedlingslyvanas''' 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 a directory /documents with the following subdirectories:
<pre style="font-size: 14pt;margin-left:30px;">.
</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''' through '''yoursenecaid-4''' 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 '''five''' Samba users to mirror your new Linux users.</li><li>Configure '''seven''' shares (one for each directory above) with permissions as close as possible to the Linux permissions.</li></ol>
=== Set-up Windows Client to Test Samba server ('''windowschen''')===
Perform the following steps for this section:
=== Network Configuration ===
As you will now have functioning primary and secondary DNS servers, modify your network configuration file for the '''pineillidan''', '''firkadgar''', and '''bristleconejaina''' servers specify the correct IPADDR.
=== Table of Virtual Machines / DNS Records ===
! Hostname !! Address !! Purpose
|-style="background-color:#66cccc;"
| '''larchazeroth.coniferouswarcraft.treesgames.ops''' (your existing host) || External Facing Address:''' DHCP assigned'''<br>Internal Virtual Bridge (virbr1):''' 172.3018.2050.1''' || Your '''host''' machine
|-style="background-color:#66cccc;"
| '''seedlingsylvanas.coniferouswarcraft.treesgames.ops''' || '''172.3018.2050.100''' || '''Cloning-source''' used to create other servers for other assignments.
|-style="background-color:#66cccc;"
| '''balsamvarian.coniferouswarcraft.treesgames.ops''' || ''' 172.3018.2050.23''' || '''Master''' Name Server
|-style="background-color:#66cccc;"
| '''spruceguldan.coniferouswarcraft.treesgames.ops''' || '''172.3018.2050.34''' || '''Slave''' Name Server
|- style="background-color:#66cccc;"
| '''pineillidan.coniferouswarcraft.treesgames.ops''' || ''' 172.3018.2050.57''' || '''SMTP''' mail Server
|- style="background-color:#66cccc;"
| '''firkadgar.coniferouswarcraft.treesgames.ops''' || '''172.3018.2050.68''' || '''IMAP''' mail Server
|- style="background-color:#66cccc;"
|'''bristleconejaina.coniferouswarcraft.treesgames.ops''' || '''172.3018.2050.89''' || '''Samba''' Server
|- style="background-color:#66cccc;"
| '''windowschen.coniferouswarcraft.treesgames.ops''' || '''172.3018.2050.10''' || Client Linux or Windows Server
|}
===Set-up Firewall Policies===
In addition to the basic firewall kadgarewall established in assignment 1, ensure the following restrictions are met:
#All virtual machines will use iptables as their firewallkadgarewall.
#Outgoing traffic is allowed.
#Each virtual machine must be able to check for and install updates using yum.
::'''Murray Saul's Classes (Sections A & B):'''<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 '''balsamvarian''', '''pineillidan''', '''firkadgar''', '''bristleconejaina''' 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>
|-
|
:::Proof of SMTP Server Running on '''pineillidan''' server
| style="text-align:right" | /1
|-
|
:::E-mails sent from '''pineillidan''' and '''bristleconejaina''' servers to '''firkadgar''' server (user@IP_ADDR)
| style="text-align:right" | /1
|-
|
:::E-mails sent from '''pineillidan''' and '''bristleconejaina''' servers to '''firkadgar''' server (user@DOMAIN_NAME)
| style="text-align:right" | /1
|-
| width=10% style="text-align:right;font-weight:bold" | Mark
|-
| colspan=2 | '''Mail Transfer Agent (pineillidan) - General Configuration'''
|-
|
:*'''DOMAIN Name''' NOT Resolved
:*'''VM hostname''' NOT set
:*firewalld kadgarewalld '''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 kadgarewall present, firewall kadgarewall allowing all traffic, no active SELinux) ('''4 marks per issue''')
|
|-