Open main menu

CDOT Wiki β

Changes

OPS335 Assignment 2 - Murray Saul rev1

372 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''' called '''pine''' and a ''Message Store'' (IMAP) called '''fir'''. You will also use the '''seedling''' cloning source to create a Samba server called '''bristlecone'''. 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 '''balsam''' 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 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''')===
#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'''.
#This machine will accept incoming email for any user account in the '''coniferous.trees.ops''' domain and any named machine in that domain.
#You are NOT required to encrypt received email messages.
#This machine will relay received email messages to the IMAP server (i.e. the '''fir''' virtual machine).
#Any machine within the '''coniferous.trees.ops''' domain will be able to route outgoing email through this server.
#Only the address associated with pine.coniferous.trees.ops will be used for SMTP..
#This machine will provide users with '''unencrypted''' remote access to their mail boxes through dovecot using IMAP. Note that this access will only be available to machines inside the '''coniferous.trees.ops''' network, and only through the ip address and hostname for '''fir.coniferous.trees.ops'''
#No other machine in the domain will accept email.
#Any mail sent directly from this machine will use the domain as the sending address (i.e. user@coniferous.trees.ops)
#All mail sent You are NOT required to this network should automatically be redirected here using DNSencrypt 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 ('''fir''') ===
#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 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 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 the an '''IMAP ''' server (i.e. NOT POP3 or LTMP).
#This machine will NOT use encryption.
#This machine will be used 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 a centralized Message Store root will be automatically delivered into the mailbox of the '''regular user''' created above.#Configure your Thunderbird application (MS). Use similar settings installed in your Lab 4b) to allow the user to send and receive email messages using the '''pine''' and '''fir''' servers. Add an MX record 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''').#Configure your Thunderbird application (installed in Lab 4b) first, and configure to allow the user to send and receive email messages between the MTA ('''pine''' and '''fir''' servers) as a fall-back.
=== Set-up a Samba Server ('''bristlecone''')===
#Create a clone virtual machine called '''bristlecone''' 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'''.
#It will run '''Samba''' (automatically on boot) to share files with Windowsmachines in this network. You may reuse the Windows installation from the lab or create a new one for the assignment.
#Create five <u>new</u> users on the Samba file server, call them '''yoursenecaid-1''', '''yoursenecaid-2''', '''yoursenecaid-3''', '''yoursenecaid-4''', '''yoursenecaid-admin'''. (replace "yoursenecaid" with your <u>actual</u> Seneca ID)
#Create a directory /documents with the following subdirectories:
#Create a '''regular user''' for this virtual machine using '''your Seneca userID'''.
#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.
#Each client machine will have a dhcp address assigned in the range 172.20.40.100 to 172.20.40.254, however the DHCP server will not provide DNS and domain information.
#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 a local postfix installation to relay all outgoing mail through whirlpool, and will use the domain as the sending address (i.e. user@coniferous.trees.ops).
#This machine will not accept incoming mail.
=== Network Configuration ===
! 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;"
| '''windows.coniferous.trees.ops''' || '''DHCP'''<br>(range 172.20.40.100 to 17230.20.40.254) 10''' || Client Linux or Windows 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 traffic is allowed.
#Each virtual machine must be able to check for and install updates using yum.
#Traffic on the loopback interface for each virtual machine is allowed.
#The host machine (and only the host machine) must be able to ssh to them. #ICMP traffic is allowed if it originated within the local network only. #Allow an exception to allow mail messages to be relayed from your pine STMP server to your fir IMAP server.#Other than that, only the traffic necessary to support their roles described below above should be allowed.
== Assignment Submission ==
|-
|
::x| style="text-align:right" | /x|-| ::x| style="text-align:right" | /x|-| ::x| style="text-align:right" | /x|-| ::x| style="text-align:right" | /x|-| ::xPostfix MTA settings| style="text-align:right" | /x5
|-
| colspan=2 | '''Mail Delivery Agent (MTA) / Message Store (MS) - General Configuration'''
|-
|
::x:Postfix MTA settings| style="text-align:right" | /x3
|-
|
::x:LDA settings| style="text-align:right" | /x1
|-
|
::x:AA settings| style="text-align:right" | /x4
|-
| ::x| style colspan="text-align:right" 2 | /x'''DNS configuration'''
|-
|
::x:Correct MX records exist| style="text-align:right" | /x2
|-
|
::x:MX records prioritize access to mail servers correctly| style="text-align:right" | /x2
|-
|-
|
::x:Directories shared with correct permissions| style="text-align:right" | /x7
|-
|
::x:Samba accounts created (1/2 mark each)| style="text-align:right" | /x2
|-
|
::x:Writing allowed to directories| style="text-align:right" | /x1
|-
| ::x| style colspan="text-align:right" 2 | /x'''Firewall policies'''
|-
|
::x:MTAs allow SMTP traffic| style="text-align:right" | /x|-| colspan=2 | '''Client Server - General Configuration'''
|-
|
::x:AA allows IMAP traffic| style="text-align:right" | /x1
|-
|
::x:IMAP traffic limited to local network| style="text-align:right" | /x1
|-
|
::x:Samba server allows samba traffic| style="text-align:right" | /x1
|-
|
::x| style="text-align:right" | /x|-| ::x| style="text-align:right" | /x|-| colspan=2 | '''Firewall policies'''|-| ::x| style="text-align:right" | /x|-| ::xSamba traffic limited to local network| style="text-align:right" | /x1
|-
|'''Less Deductions (half-mark for EACH VM):
:*iptables '''disabled''' / '''not running'''
:*No '''Yum update'''
:*'''NamedServices''' 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''')
|-
| '''TOTAL'''
| style="text-align:right" | '''/x40'''
|}
13,420
edits