Changes

Jump to: navigation, search

OPS705 Lab 4 (2211)

97 bytes removed, 00:50, 7 September 2021
m
Chris.johnson moved page OPS705 Lab 4 to OPS705 Lab 4 (2211) without leaving a redirect
# Install the Apache package with the following command: <code>yum install httpd</code>
# When prompted for confirmation, answer: <code>Y</code>
# To confirm it has installed properly, run the following: <code>yum info httpd</code> The output should include an entry with '''Repo Repository : installed@System'''. If it doesn't say installed, repeat Step 2 or as for assistance.
== Part 2: Managing the httpd (Apache) Service ==
# Refer to ''Figure 1''. If your rules at this stage look different, stop and contact your professor for help. (Packet and byte count numbers will be unique.)
# Set iptables to start with the system: <code>systemctl enable iptables</code>
# Remove ''firewalld'' completely: <code>yum autoremove firewalld</code> '''Note:''' It may not be installed. If it says "no match" when you don't remove firewalld and both firewalls are set to start with run the systemcommand, firewalld will always start instead of iptables. This you can lead to much frustrationmove on. Make sure you remove it!
== Part 2: Securing Your Firewall ==
Finally, let's modify the main page. Currently, it's displaying the default Apache splash page. Let's change that.
# Swtich Switch to the root user account.
# Navigate to '''/var/www/html'''. (Refer to ''Lab 3'' for file system navigation tips.)
# List all files in this directory. There are none; this is expected.
Submit to Blackboard full-desktop screenshots (PNG/JPG) of the following:
# Browser window showing the Linux Apache modified HTML page (on your computer, not displayed on your VM).
# SSH session window with your iptables rules listed. (See ''Fig. 1'')

Navigation menu