1
edit
Changes
→Install and test Apache on your VM02 and VM03
*Repeat the above steps for vm03.
*Now, as root on f16 (the gateway/host), try to forward incoming http connections to your host to the web server on vm02. Use an iptables command something like this
iptables -t nat -A PREROUTING -i eth0 *yourinterface* -p tcp --dport 80 -j DNAT --to 192.168.X.3
*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 ask a classmate on another PC to try to use Firefox to view your web page. S/he'll have to enter your host's external interface IP number (142.204.141.yyy) in Firefox's address window.