Jump to: navigation, search

OPS335 Lab 5

364 bytes added, 14: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 -j ACCEPT</code>
::<code>iptables -I FORWARD -p tcp --dport 445 -d -j ACCEPT</code>
::<code>iptables -t nat -A PREROUTING -p tcp --dport 139 -j DNAT --to-destination</code>
::<code>iptables -t nat -A PREROUTING -p tcp --dport 445 -j DNAT --to-destination</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