Changes

Jump to: navigation, search

OPS235 Assignment 2

261 bytes removed, 11:12, 10 April 2022
Introduction and Purpose
'''Weight:''' 15% of the overall grade
'''Due Date:''' Week 12See blackboard
'''Submission:''' You will be submitting your completed work through a series of screenshots on Blackboard. (See below.)
''' Make your posts look professional. That means use good english, headings, bullet or numbered lists, etc.
 
= Configuring iptables =
Now that you've set up your blog, you must secure your firewall. The purpose of this section is to lock down your rules as much as possible.
# You must be using iptables (firewalld should be uninstalled).
# Your INPUT chain's default policy must be set to DROP.
# Create INPUT chain exceptions (rules) to allow connections to your blog.
# Other than the specific ports needed to access your blog, the only other allowed exception is for SSH.
# '''Tip''': Your OUTPUT chain should allow ''all'' traffic. (You can leave it at its default)
= Submitting Your Assignment =
== Online Submission Requirements ==
All screenshots must be full Open one or more terminals in c7host desktop captures, SSH to centos3 from those terminals, and contain no errorsscreenshot the following:* '''asg2-01-rpms.png''': List of additional RPMs installed for the assignment* '''asg2-02-apache. The fewer total images, png''': Status of the ''httpd'' service* '''asg2-03-mysql1.png''': Status of the better''mysql'' service* '''asg2-04-mysql2. Submit through Blackboardpng''': MySQL output of the chained command: '''<code>show databases; use mysql; select User, unless told otherwise by your professorPassword from user; use myblog; show tables;</code>'''* '''asg2-05-wordpress.png''': Output of command: '''<code>ls -la /var/www/html/wordpress/</code>'''* '''asg2-06-wpconfig.png''': Output of command: '''<code>head -30 /var/www/html/wordpress/wp-config.php</code>'''* '''asg2-07-firefox.png''': Open a Firefox window to: '''http://centos3/wordpress/'''* '''asg2-08-iptables.png''': Output of command: '''<code>iptables -L -vn --line-numbers</code>'''* '''asg2-09-blogpost1.png''': Your first blog post in Firefox* '''asg2-10-blogpost2.png''': Your second blog post in Firefox
Open one or more terminals in c7host, SSH to centos3 from those terminals, and screenshot the following:* List of additional RPMs installed for the assignment* Status of the Create a tarball named ''mysql'asg2.tar.gz' service* Status of the ''httpd'' service* MySQL output of containing all the chained command: '''<code>show databases; use mysql; select User,Password from user; use myblog; show tables;</code>'''* Output of command: '''<code>ls -la /var/www/html/wordpress/</code>'''* Output of command: '''<code>head -30 /var/www/html/wordpress/wp-configimages above and submit it on Blackboard.php</code>'''* Output of command: '''<code>iptables -L -vn --line-numbers</code>'''* Open a Firefox window to: '''http://centos3/wordpress/'''
== Rubric ==
|-
| Wordpress showing in Firefox || 1 ||
|-
| Blog accessed using local hostname resolution || 2 ||
|-
| iptables rules configured correctly || 2 ||
|-
| Blog accessed using local hostname resolution First blog post || 2 1 ||
|-
| First Second blog post || 3 1 ||
|-
| Second blog post Submitted correctly || 3 4 ||
|-
| '''Total''' || '''20''' ||

Navigation menu