Changes

Jump to: navigation, search

OPS335 Lab 6

126 bytes added, 18:20, 19 March 2018
m
Updating instructions to be clearer for SSDs
# As the root user on your gateway/host, try to forward incoming http connections that arrive on your host to the web server on vm1. Use an iptables command something like this:<br><source>iptables -t nat -A PREROUTING -i *yourinterface* -p tcp --dport 80 -j DNAT --to 192.168.X.2</source>
# You will also need to create a rule in the FORWARD chain in the default table to accept connections to port 80.
# To test this setup you'll need to use another machine outside your own network. If you are using an SSD and VMWare, you can simply use the windows host. If you are using a removable drive, ask a classmate on another PC to try to use a browser to view your web pageact as the partner. That person will have to In either case, enter your host's external interface IP number address in their browser's address window. # Have that person the partner machine view both '''index.html''' and '''index.php'''
# Create a new directory called '''private''' inside your '''DocumentRoot''' and move index.php inside it.
# Have your partner view both files again.<br><br>You will now modify the settings on the web-server to prevent machines outside our network from accessing the private directory.<br><br>
932
edits

Navigation menu