Changes

Jump to: navigation, search

OPS335 Lab 5

364 bytes added, 13:06, 13 November 2019
Accessing Files on a Linux Samba Server via Windows Explorer
# Use the Windows machine you are already running Vmware on.
# Add the prerouting and forwarding rules to your host's iptables necessary to redirect samba traffic from outside your network to your VM2.
::<code>iptables -I FORWARD -p tcp --dport 139 -d 192.168.78.3 -j ACCEPT</code>
::<code>iptables -I FORWARD -p tcp --dport 445 -d 192.168.78.3 -j ACCEPT</code>
::<code>iptables -t nat -A PREROUTING -p tcp --dport 139 -j DNAT --to-destination 192.168.78.3</code>
::<code>iptables -t nat -A PREROUTING -p tcp --dport 445 -j DNAT --to-destination 192.168.78.3</code>
# Modify the hosts allow setting on your '''vm2''' to also accept connections from the windows machine you are using.
# Open the Windows File Explorer application.

Navigation menu