Changes

Jump to: navigation, search

OPS705 Lab 4

385 bytes added, 20:12, 29 January 2023
INVESTIGATION 3: Routing Through Your Linux Server
== Part 1: Enabling System-Level Forwarding on Your Linux Server ==
[[Image:Ops705_lab4_ip_forwarding.png|thumb|right|300px|Figure 6: The ''/etc/sysctl.conf'' file with IP forwarding added.]]
# Remote SSH into your Linux Server VM.
# Elevate to root.
== Part 2: Port Forwarding Using NAT ==
[[Image:Ops705_lab4_port_forwarding.png|thumb|right|300px|Figure 7: View of the NAT table with our port forwarding rules added.]]
# Remote into your Windows Server VM, open Command Prompt, and run <code>ipconfig</code> Write down the 10.x.x.x IP address displayed.
# Remote SSH into your Linux Server VM, and elevate to root.
== Part 3: Adding Forwarding Firewall Rule Exceptions ==
[[Image:Ops705_lab4_forward_rules.png|thumb|right|300px|Figure 8: View of the default tables with our IP forwarding rules added.]]
# Create a firewall rule to allow forwarded traffic destined for TCP port 80: <code>iptables -A FORWARD -p tcp --dport 80 -j ACCEPT</code>
# Create a firewall rule to allow forwarded traffic sent from TCP port 80: <code>iptables -A FORWARD -p tcp --sport 80 -j ACCEPT</code>

Navigation menu