Get Cheapest Assignment in Australia, UK, US, UAE, Canada and NZ Order Now

OPS335 Open System Application Server

0 Comments

OPS335 Assignment 1 Seneca College

Part 1

Purpose

For this portion of assignment 1, you will set up the basic functionality for a virtual machine to act as a cloning-source to make it easier for the student to create other servers (VMs) in later assignments. Whenever you clone another server (in later assignments), you MUST make certain to configure the cloned server in order to make it function in the network correctly and meet the requirements of future assignments. All of the assignments for this course are interdependent of each other and belong to the same Virtual Private Network called 335assign.

OPS335 Assignment help
OPS335 Assignment help

General Requirements

Weight: 3% of the overall grade

Due Date: During Week 5 (check with your professor)

Detailed Requirements

Set-up a Virtual Network (335assign)

Create a new virtual network on your Host Machine.

  • Assign a newly-created virtual network the name: 335assign, and set forwarding to any physical device
    (refer to lab setup. You can have have 2 different network names: “335assign” and “ops335” without causing any problems).
  • Addresses in this network will start with 172.28.105. The subnet mask must be 255.255.255.0
  • There must NOT be a DHCP server running for this network!
  • All the machines for this assignment will be connected to your newly-created virtual network called: 335assign

Create a “Cloning-Source” VM (335assign Virtual Network)

Create a virtual machine that you will use as a cloning-source.

Details for the cloning-source

  1. The name of this cloning-source VM will be called: pangaea.
  2. You should use the options that you used in your lab1 to setup the static network, plus you should use the DOMAIN parameter to set the continents.earth.ops domain for your cloning-source.
  3. The VM should have a command-line interface only.
  4. Configure it to be a good cloning-source, making certain that the cloning-source has all the following elements prior to cloning:
  • Don’t make the virtual drive too big: you will need space for it as well as space for the clones you from your cloning-source
    (5 GB should be enough for any cloning-source and clone VM that you create for this assignment).
  • The hostname for this server will be called: pangaea
  • Make certain that you can login to your cloning-source.
  • Configure your network interface for this cloning-source with a static configuration and is connected to the 335assign network. Refer to the table below for IP address and hostname.
Hostname / DomainAddressPurpose
(your existing host / source)External Facing Address: DHCP assigned
Internal Virtual Bridge (virbr1): 172.28.105.1
Your host machine
pangaea.continents.earth.ops172.28.105.100Cloning-source used to create other servers for other assignments.
  1. Make certain your cloning-source can connect to the Internet using the newer static configuration.
  2. Run a yum update for this cloning-source.
  3. Make certain that SELinux is set to enforcing (unless you’re in Andrew’s sections – then have it disabled).
  4. Set up an SSH server on this “cloning-source”.
  5. Make sure that PermitRootLogin is set to yes for this server.
  6. Make certain that the root account is permitted to login only using key authentication. If other users are required to be created in a later assignment, they should be permitted to log in with their username and password.
  7. Copy the same public key (already generated for your Host Machine for your root account in lab1) to the root account on your cloning-source.
  8. Test to make certain that you can login from root on your host machine to your root account on the cloning-course (“pangaea”) without being prompted for a pass-phrase.
  9. If you have created a regular user when you installed this machine, delete that regular user (make certain to remove the regular user’s home directory!).

Set-up Firewall Rules for your Cloning-Source

Perform the following steps for this section:

  1. Make certain that you have iptables services enabled and running instead of Firewalld.
  2. Modify the iptables to meet the following conditions:
  • All outgoing traffic is allowed.
  • Responses to any traffic the machine sends out are allowed.
  • Traffic on the loopback interface is allowed.
  • The host machine (and only the host machine) must be able to ssh to that cloning-source VM.
  • ICMP traffic is allowed if it originated with the local network only.
  • As this is acting as the secure basis for later machines, no other traffic should be allowed, and no response should be sent if any other traffic is received.

Create Full and Incremental Backups of cloning-source VM

Perform the following steps for this section:

  1. This task is to be performed in your host machine.
  2. Issue the command su –
  3. Create a Bash shell script called /root/bin/assnBackup.bash to perform a full backup using the gzip command to backup the entire file system of your cloning-source VM to save the compressed copy to the directory path: /backup/full/).
  4. This shell script should read each of any number of VM image files in the /var/lib/libvirt/images directory that has the extension “.qcow2”. In this way, this shell script will safely backup any new VMs that are created later in this course, yet backup the existing labs and assignment VMs.
  5. Perform a Net-search to use the pv (pipe-viewer) command to show a text-based indicator of backup for EACH VM image file. You need to add the EPEL repository to install the pv command.
  6. Set execute permissions for this script, and run this Bash shell script prior to exiting your assignment work session to properly backup your cloning source. You should also make a copy of the backup on an external device (such as a USB key).
  7. Set-up via a crontab entry, an incremental backup of the /etc/ directory of your cloning-source to be performed every hour to the /backup/incremental/cloning-source directory.

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. Students can demonstrate their assignment functionality to their professor during a lab period (like you would for any lab for “sign-off”).
    2. 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.
    3. The idea of the demonstration of your assignment to your instructor is 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 cloning-source VM is running.
  4. Issue the command to download a checking script for your assignment to your host machine:
    wget https://matrix.senecacollege.ca/~ahad.mammadov/files/OPS335/check-assn1-p1.bash
  5. Set execute permissions and run the shell script.
    It will create a tar file for you to upload as your submission to blackboard.

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 (optional)
Evaluation ItemMark
Created Virtual Network: 335assign
(correct settings)
/1
Can ping cloning-source from host machine with correct IPADDR/1
root account on host machine can connect to cloning-source VM via ssh application without password/1
cloning-source VM can connect to the Internet
(i.e. ping 8.8.8.8)
/1
cloning-source can SSH to student’s Matrix account/1
Configuration (Checking Script Output)
Evaluation ItemMark
Hostname set to: pangaea only, domain name continents.earth.ops set as a network parameter/1
yum update performed/1
No regular users on cloning source (just root)/1
SELinux status set to: enforcing/1
firewalld stopped and inactive/1
iptables active and enabled/1
iptables – All outgoing traffic is allowed/1
iptables – The host machine (and only the host machine) must be able to ssh to the cloning-source/1
iptables – ICMP traffic is allowed if it originated with the local network only/1
iptables – Other unexpected INPUT traffic is blocked without response/1
iptables – all FORWARD traffic is blocked without response/1
correct static network configuration for cloning-source VM
(half mark for each network config item)
/5
permitRootLogin set to yes for cloning-source VM/1
Backup script assnBackup.bash structure/1
Use of PV command for backup script/1
Proof that VM full backup was run/2
Crontab entries executed properly/2
Incremental Backup of /etc/ directory of cloning-source to /backup/incremental/cloning-source directory/2
TOTAL/30

OPS335 Assignment 1 Part 2

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 name-servers. One of the cloned VMs (hostname: australinea) will be a master name server, and the other VM (hostname: antarctica) will be a slave name server. You will install and setup the master and slave servers in order to provide various domain name resolutions for existing servers, and for servers that will be created and used in assignment #2.

General Requirements

Weight: 7% of the overall grade

Due Date (Winter 2021): During Week 7 (check with your professor)

Detailed Requirements

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.

Set-up Master Name Server (australinea)

Perform the following steps for this section:

  1. Create a clone virtual machine called australinea 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. Setup a DNS server on your australinea virtual machine noting the following items below:
    1. This virtual machine will be the Master DNS server for continents.earth.ops.
    2. Only antarctica will be allowed to obtain zone transfers of this zone.
    3. This machine will provide forward and reverse lookups of ALL virtual machines in the continents.earth.ops. zone, including resource records for virtual machines that do not currently exist.
    4. You MUST use the following names for both the forward and reverse zone files in /var/named directory: mydb-for-continents.earth.ops and mydb-for-172.28.105
    5. Any machine in the continents.earth.ops network may use this machine to perform queries of machines outside the network, however it will route all such queries through the DNS server you created in lab #3.
    6. For machines outside the continents.earth.ops domain, it will only answer queries about machines inside the network. They may not use it to query other machines.

Set-up Slave Name Server (antarctica)

Perform the following steps for this section:

  1. Create a clone virtual machine called antarctica 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. Setup a DNS server on your antarctica virtual machine noting the following items below:
    1. This virtual machine will be the Slave DNS server (in case the Master Name Server goes down).
    2. This virtual machine will obtain its zone files by copying them from the Master Name Server.
    3. This Slave DNS server will check for updated records from the Master DNS server every three days. If the initial attempt fails, then it will attempt every twenty-four hours until it succeeds, or three weeks have passed.
    4. This machine will provide forward and reverse lookups of ALL machines in the continents.earth.ops zone, the zone files for which will be obtained from australinea.continents.earth.ops.
    5. Only machines within the continents.earth.ops domain will be allowed to query this machine.
    6. This machine will not provide recursive lookup capabilities for any machines.

Network Configuration

As you will now have functioning primary and secondary DNS servers, modify your network configuration file on these machines and on the cloning source to specify the correct IPADDR.

Table of Virtual Machines / DNS Records

All the machines in the following table require DNS records. The rows not shaded represent future servers that will be created in Assignment #2.

Hostname / DomainAddressPurpose
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.ops172.28.105.100Cloning-source used to create other servers for other assignments.
australinea.continents.earth.ops172.28.105.2Master Name Server
antarctica.continents.earth.ops172.28.105.3Slave Name Server
asia.continents.earth.ops172.28.105.5SMTP mail Server
europe.continents.earth.ops172.28.105.6IMAP mail Server
southamerica.continents.earth.ops172.28.105.8Samba 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 query australinea
  2. Only the machines in the continents.earth.ops network may query antarctica.

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. Students need to demonstrate their assignment functionality to their professor during a lab period (like you would for any lab for “sign-off”).
    2. 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.
    3. 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-assn1-p2.bash

    Set execute permissions and run the shell script.
    Upload the resulting file to blackboard. 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 australinea and antarctica VMs created /1 australinea and antarctica VMs can perform DNS queries of vm1, vm2, vm3 /1 australinea and antarctica VMs can perform forward DNS lookups for ALL machines within network (listed in the table above) /3 australinea and antarctica VMs can perform reverse DNS lookups for ALL machines within network (listed in the table above) /3 Zone transfer occurs /3 Configuration (Checking Script Output) Evaluation Item Mark Master Name Server (australinea) – Network Configuration correct static network configuration
    (one mark for each network config item) /5 Master Name Server (australinea) – Named Configuration Options / Zone Declarations Zone transfer (i.e. to slave DNS server) limited to antarctica only /1 Allows forward and reverse lookups to continents.earth.ops /1 Recursion limited to continents.earth.ops only /1 australinea server is the master name-server for continents.earth.ops /1 Master Name Server (australinea) – Zone Record SOA – three common options (determined by instructor at time of marking) /3 Correct NS records in forward zone /2 Correct NS records in reverse zone /2 Slave Name Server (antarctica) – Network Configuration correct static network configuration
    (one mark for each network config item) /5 Slave Name Server (antarctica) – Named Configuration Options Queries are limited to continents.earth.ops /1 Slave server is Non-recursive /1 Allows forward and reverse lookup for continents.earth.ops /1 antarctica server is slave name-server for continents.earth.ops /1 Firewall policies australinea allows queries from any machine (i.e. will work with vm1, vm2, vm3) /2 antarctica limits queries to continents.earth.ops (i.e. won’t work with vm1, vm2, vm3) /2 Less Deductions (1 mark per issue for EACH VM):
    • Not using zone filenames: mydb-for-continents.earth.ops and mydb-for-172.28.105
    • VM hostname NOT set
    • firewalld enabled / running
    • iptables disabled / not running
    • No Yum update
    • Named 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

Leave a Reply

Your email address will not be published. Required fields are marked *