Changes

Jump to: navigation, search

OPS235 Lab 7

43 bytes added, 09:57, 28 June 2016
no edit summary
# Issue an iptables command to verify that both the the iptables rules have no rules for those chains for your '''c7host''' and '''centos1''' VM's<br><br>
# On your '''c7host''' VM, add (append) an iptables rule to '''REJECT''' <u>incoming</u> requests to http ( via TCP, port:80) by issuing the command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">iptables -A INPUT -p tcp --dport 80 -j REJECT</span></code></b>
# Switch to your '''centos1 ''' VM, and cLick on the following link to launch your message in a web-browser: '''http://localhost'''<br>What happenned? If your message didn't load, why do you think it didn't load?# Issue Return to your c7host VM, and issue the following itables rules to make add (append) an exception to view incoming web requests on your local machine (interface card: lo - loopback address): <br><b><code><span style="color:#3366CC;font-size:1.2em;">iptables -A INPUT -i lo -j ACCEPT</span></code></b>
# On '''centos1''' confirm that the httpd service is stopped so it cannot interfere with your observations.
# On '''centos1''' confirm that you can't connect by using firefox to centos1 '''http://centos1/'''
13,420
edits

Navigation menu