13,420
edits
Changes
no edit summary
# On your '''c7host''' VM click on the following link to open a web-browser view your html or text message: '''http://localhost'''<br><br>
# '''IMPORTANT:''' Before proceeding, '''flush the iptables rules''' for '''INPUT''', '''OUTPUT''', and '''FORWARD''' chains for both your '''c7host''' and '''centos1''' VMs.<br><br>
# Issue the an iptables command to verify that both the the iptables rules have no rules for those chains for your '''c7host''' and '''centos1''' VM's# Set Issue an iptables command to set the default firewall configuration on centos1 <u>'''policy'''</u> to '''REJECT''' <u>incoming </u> (INPUT) requests to http (via TCP/, port:80)by issuing the command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">iptables -I INPUT -i lo -j ACCEPT</span></code></b>
# NOTE: '''c7host''': if '''http://localhost''' stops working locally, add the following iptables rule to centos1, as root <br /><b><code><span style="color:#3366CC;font-size:1.2em;">iptables -I INPUT -i lo -j ACCEPT</span></code></b>
# On '''centos1''' confirm that the httpd service is stopped so it cannot interfere with your observations.