Open main menu

CDOT Wiki β

Changes

OPS335 Assignment 2 - Murray Saul rev1

3,003 bytes added, 11:29, 20 March 2017
Detailed Requirements
== Purpose ==
In this assignment, you will use the '''335assign virtual network''' and the '''seedling''' cloning-source that you created in assignment 1 (part 1) to create two e-mail servers: a '''Mail Transfer Agent (MTA) ''' called '''pine''' and a ''Message Store '' (either pop3 or imapIMAP) called '''fir'''. You will also use the '''seedling''' cloning source to create a Samba server. One of the cloned VMs (hostname: called '''balsambristlecone''') . In addition to creating those Linux servers, you will also be required to create a master name virtual machine for an MS Windows operating system to test-out your Samba server. As you perform and submit this assignment, and you '''MUST''' run at least the other VM (hostname: '''sprucebalsam''') will be a slave name Master Name server. You will install and setup the master and slave servers in order to provide various resolve domain name resolutions for existing servers, and for servers that will be created and used in assignment #2names to IP addresses.
== General Requirements ==
 
'''Weight''': 10% of the overall grade
 
'''Due Date''': 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 ('''pine''')===
== General Requirements ==Perform the following steps for this section:
#Create a clone virtual machine called '''Weightpine''': 7% of from the overall grade'''seedling''' 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 '''coniferous.trees.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@coniferous.trees.ops)#You are NOT required to encrypt received email messages.#This machine will relay received email messages for any user account in the '''coniferous.trees.ops''' domain.
=== Set-up Mail Delivery Agent / Message Store ('''Due Datefir''': During Week 9 (in class)===
Perform the following steps for this section:
== Detailed Requirements ==#Create a clone virtual machine called '''fir''' from the '''seedling''' 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 '''coniferous.trees.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 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 '''pine''' and '''fir''' servers.
Add MX records to the forward lookup zone on your balsam DNS server so that all incoming mail addressed to the domain is sent to your IMAP server ('''fir''') first, and the MTA ('''pine''') as a fall-back.
=== Set-up Master Name a Samba Server ('''balsambristlecone''')===
Perform the following steps for this section:
#Create a clone virtual machine called '''balsambristlecone''' from the '''seedling''' cloning-source. Refer to the table below for '''address''' and '''hostname'''.
#Create a '''regular user''' for this virtual machine using '''your Seneca userID'''.
#Setup 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 DNS new one for the assignment.#Create five <u>new</u> users on the Samba file server on your , call them '''yoursenecaid-1''', '''yoursenecaid-2''', '''yoursenecaid-3''', '''yoursenecaid-4''', '''balsamyoursenecaid-admin''' virtual machine . (replace "yoursenecaid" with your <u>actual</u> Seneca ID)#Create a directory /documents with noting the following items belowsubdirectories:<pre style="font-size: 14pt;margin-left:30px;">.├── private│ ├── yoursenecaid-1│ ├── yoursenecaid-2│ ├── yoursenecaid-3│ ├── yoursenecaid-4│ └── yoursenecaid-admin└── shared ├── readonly └── readwrite</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>This virtual machine will be the '''Master DNS serveryoursenecaid-1''' through '''yoursenecaid-4''' have '''read/write'''access to their own <u>private</u> directories.</li><li>This machine will provide '''forwardyoursenecaid-admin''' and has '''reverseread/write''' lookups of ALL virtual machines in the '''coniferous.trees.ops''' zone, including resource records for virtual machines that do not currently existaccess to <u>every</u> directory.</li><li> Make certain Everyone has '''read''' access to include an the '''MX recordreadonly''' directory (but only the ''' for your admin e-mail contact: '''yoursenecaid@coniferous.trees.opshas '''write'''access too).</li><li>This machine will allow other machines (outside the Everyone can both '''read''' and '''coniferous.trees.ops.write''' zone) to perform DNS lookups among ALL virtual machines within the '''coniferousreadwrite''' directory.trees.ops</li></ol></li><li>Set up '''five''' networkSamba users to mirror your new Linux users.</li><li>Any machine in the Configure '''coniferous.trees.opsseven''' network may use this machine shares (one for each directory above) with permissions as close as possible to perform queries of machines outside the network, however it will route all such queries through the DNS server you created in lab #3Linux permissions.</li></ol>
=== Set-up Slave Name Server Windows Client to Test Samba server ('''sprucewindows''') ===
Perform the following steps for this section:
#Create a clone virtual machine called '''spruceclient''' from the '''seedling''' cloning-source. Refer to the table below for '''address''' and '''hostname'''.
#Create a '''regular user''' for this virtual machine using '''your Seneca userID'''.
#Setup a DNS server The normal user on your '''spuce''' virtual host machine with noting the following items below:<ol type="a"><li>This virtual machine will must be able to ssh to the '''Slave DNS server''' (in case the Master Name Server goes down).</li><li>This virtual root account on each machine will obtain its zone files by copying them from the Master Name Server.</li><li>This Slave DNS server will check without being prompted for updated records from the Master DNS server every daya password. If the initial attempt fails, then it will attempt every hour until it succeeds.</li><li>#This machine will provide '''forward''' use the master and '''reverse''' lookups of ALL virtual machines slave DNS servers in your domain as the '''coniferousprimary and secondary DNS servers.trees.ops''' zone, the zone files for which It will be obtained from '''balsam.coniferous.trees.ops'''.</li><li>Only machines within the '''coniferous.trees.ops''' domain will be allowed not have access to query this machine.</li><li>This machine will not provide recursive lookup capabilities for any machinesother DNS servers.<br><br></li></ol>
=== Network Configuration ===
As you will now have functioning primary and secondary DNS servers, modify your network configuration file on these machines for the '''pine''', '''fir''', and on the cloning source to '''bristlecone''' servers specify the correct IPADDR. 
=== Table of Virtual Machines / DNS Records ===
'''All''' the Below is network configuration for ALL virtual machines used in the following table require DNS records. The rows not shaded represent future servers that will be created in Assignment #2.this assignment and previous assignments for this course:
{| class="wikitable" | style="margin-left:0px;"
! Hostname !! Address !! Purpose
|-style="background-color:#66cccc;"
| '''sprucelarch.coniferous.trees.ops''' (your existing sourcehost) || External Facing Address:''' DHCP assigned'''<br>Internal Virtual Bridge (virbr1):''' 172.30.20.1''' || Your '''host''' machine
|-style="background-color:#66cccc;"
|-style="background-color:#66cccc;"
| '''spruce.coniferous.trees.ops''' || '''172.30.20.3''' || '''Slave''' Name Server
|- style="background-color:white#66cccc;"
| '''pine.coniferous.trees.ops''' || ''' 172.30.20.5''' || '''SMTP''' mail Server
|- style="background-color:white#66cccc;"
| '''fir.coniferous.trees.ops''' || '''172.30.20.6''' || '''IMAP''' mail Server
|- style="background-color:white#66cccc;"
|'''bristlecone.coniferous.trees.ops''' || '''172.30.20.8''' || '''Samba''' Server
 
|- style="background-color:#66cccc;"
| '''windows.coniferous.trees.ops''' || '''172.30.20.10''' || Client Linux or Windows Server
 
|}
In addition to the basic firewall established in assignment 1, ensure the following restrictions are met:
# Any All virtual machines will use iptables as their firewall.#Outgoing traffic is allowed. #Each virtual machine may query '''balsam'''must be able to check for and install updates using yum.# Only Traffic on the machines in loopback interface for each virtual machine is allowed.#The host machine (and only the '''coniferoushost machine) must be able to ssh to them.trees.ops''' #ICMP traffic is allowed if it originated within the local network may query spruceonly.# Only spruce is Other than that, only the traffic necessary to support their roles described above should be allowed to get zone transfers from '''balsam'''.
== Assignment Submission ==
::'''Murray Saul's Classes (Sections A &amp; B):'''<ol><li>Login as '''root''' on your '''host''' machine.</li><li>Change to the '''/root/bin''' directory.</li><li>Make certain that both at least your '''balsam''', '''pine''', '''fir''', '''bristlecone''' and '''spruceclient''' 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-assn1-p2assn2.bash # Currently not available</source></li><li>Set execute permissions and run the command: '''/root/bin/check-assn1-p2assn2.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>
| width=10% style="text-align:right;font-weight:bold" | Mark
|-
| ::'''balsam''' and '''spruce''' VMs created| stylecolspan="text-align:right2" | /1|-| ::'''balsam''' STMP and IMAP Servers:'''spruce''' VMs can connect to Internet| style="text-align:right" | /1
|-
|
:::Proof of SMTP Server Running on '''balsam''' and '''spruce''' VMs can perform '''DNS queries outside networkpine'''server
| style="text-align:right" | /1
|-
|
:::E-mails sent from '''balsampine''' and '''sprucebristlecone''' VMs can perform servers to '''forward DNS lookupsfir''' for ALL machines within networkserver (user@IP_ADDR)
| style="text-align:right" | /1
|-
|
:::E-mails sent from '''balsampine''' and '''sprucebristlecone''' VMs can perform servers to '''reverse DNS lookupsfir''' for ALL machines within networkserver (user@DOMAIN_NAME)
| style="text-align:right" | /1
|-
| colspan="2 style="text-align:center;background-color:#cccccc;" |'''Configuration (Checking Script Output)'''|-| style="font-weight:bold;" | Evaluation Item | width=10% style="text-align:right;font-weight:bold" | Mark|-| colspan=2 | '''Master Name Samba Server (balsam) - General ConfigurationAccess via Windows OS:'''
|-
|
::Domain set:'''yoursenecaid-1''' through '''yoursenecaid-4''' has '''read/write''' access
| style="text-align:right" | /1
|-
|
::Has correct ip addresses:'''yoursenecaid-admin''' has '''read/write''' access to every directory
| style="text-align:right" | /1
|-
|
::Default gateway set:All accounts have '''read''' access to the '''read-only''' directory<br>(but only '''yoursenecaid-admin'' has '''write''' access)
| style="text-align:right" | /1
|-
|
::DNS1 set:All accounts can both '''read''' and '''write''' to the '''readwrite''' directory.
| style="text-align:right" | /1
|-
| ::DNS2 set| colspan=2 style="text-align:rightcenter;background-color:#cccccc;" | /1'''Configuration (Checking Script Output)'''
|-
| colspanstyle=2 "font-weight:bold;" | '''Master Name Server (balsam) Evaluation Item | width=10% style="text- Named Configuration'''align:right;font-weight:bold" | Mark
|-
| ::Zone transfer colspan=2 | '''Mail Transfer Agent (to slave DNS serverpine) limited to spruce only| style="text-align:right" | /2General Configuration'''
|-
|
::Forwards to VM1:Postfix MTA settings| style="text-align:right" | /25
|-
| ::Recursion limited to coniferous| style colspan="text-align:right" 2 | '''Mail Delivery Agent (MTA) /2Message Store (MS) - General Configuration'''
|-
|
::coniferous.trees.ops forward lookup:Postfix MTA settings
| style="text-align:right" | /3
|-
|
::Server is master for coniferous.trees.ops| style="text-align:right" | /2|-| ::NS records in forward zoneLDA settings
| style="text-align:right" | /1
|-
|
::No extra NS records:AA settings| style="text-align:right" | /14
|-
| ::Refresh timer set| style colspan="text-align:right" 2 | /1'''DNS configuration'''
|-
|
::Retry timer set:Correct MX records exist| style="text-align:right" | /12
|-
|
::A records| style="text-align:right" | /3|-| ::spiral.galaxies.ops reverse lookup| style="text-align:right" | /3|-| ::Server is master for 172.30.20| style="text-align:right" | /1|-| ::NS MX records in 20.30.172prioritize access to mail servers correctly
| style="text-align:right" | /2
|-
|
::No extra NS records
| style="text-align:right" | /1
|-
|
::PTR records
| style="text-align:right" | /3
|-
|
::Hierarchy to sub-domain
| style="text-align:right" | /3
|-
| colspan=2 | '''Slave Name Samba Server (spruce) - General Configuration'''
|-
|
::Domain set:Directories shared with correct permissions| style="text-align:right" | /17
|-
|
::Has correct ip addresses:Samba accounts created (1/2 mark each)| style="text-align:right" | /12
|-
|
::Default gateway set:Writing allowed to directories
| style="text-align:right" | /1
|-
| ::DNS1 set| style="text-align:right" | /1|-| ::DNS2 set| style="text-align:right" | /1|-| colspan=2 | '''Slave Name Server (spuce) - Named ConfigurationFirewall policies'''
|-
|
::Queries limited to coniferous.trees.ops:MTAs allow SMTP traffic
| style="text-align:right" | /2
|-
|
::Non-recursive| style="text-align:right" | /1|-| ::coniferous.trees.ops forward lookup| style="text-align:right" | /3|-| ::Server is slave for coniferous.trees.opsAA allows IMAP traffic
| style="text-align:right" | /1
|-
|
::Master for coniferous.trees.ops set:IMAP traffic limited to local network
| style="text-align:right" | /1
|-
|
::coniferous.trees.ops reverse lookup| style="text-align:right" | /3|-| ::Server is slave for 172.30.20Samba server allows samba traffic
| style="text-align:right" | /1
|-
|
::Master for 172.30.20 set| style="text-align:right" | /1|-| ::Zone transfer works| style="text-align:right" | /4|-| colspan=2 | '''Firewall policies'''|-| ::queries allowed| style="text-align:right" | /2|-| ::queries Samba traffic limited to coniferouslocal network
| style="text-align:right" | /1
|-
|'''Less Deductions (half-mark for EACH VM):
:*'''SELinuxDOMAIN Name''' NOT EnforcingResolved
:*'''VM hostname''' NOT set
:*firewalld '''enabled''' / '''running'''
:*iptables '''disabled''' / '''not running'''
:*No '''Yum update</li><li>Named ''':*'''Services''' NOT active:*local Local hostname resolution remaining 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''')
|
|-
| '''TOTAL'''
| style="text-align:right" | '''/6440'''
|}
13,420
edits