Changes

Jump to: navigation, search

OPS335 Lab 6

4 bytes added, 10:06, 23 March 2020
Controlling Access to Pages
'''Perform the following steps:'''
# 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 *yourinterfaceexternalinterface* -p tcp --dport 80 -j DNAT --to 192.168.X.2</source>
{{Admon/important |Do not save these rules|The PREROUTING rule above will redirect all HTTP requests to vm1. That will be a problem in the future when you run yum install or yum update, which downloads things over HTTP.}}
572
edits

Navigation menu