Open main menu

CDOT Wiki β

Changes

OPS235 Lab 7

No change in size, 10:51, 28 June 2016
no edit summary
# <u>Restart</u> your '''c7host''' VM.
# 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 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 --sport 80 -j REJECT</span></code></b>
# CLick on the following link to launch your message in a web-browser: '''http://localhost'''<br>
12,858
edits