Changes

Jump to: navigation, search

OPS335 Lab 5

56 bytes added, 10:24, 14 November 2019
m
Accessing Files on a Linux Samba Server via Windows Explorer: - Swapping out Andrew's network number with generic placeholder.
# Make certain that your '''VM2''' machine is running, is still allowing samba traffic through the firewall, and is still running the samba service.
# 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, making sure to replace the X with your own network address.::<code>iptables -I FORWARD -p tcp --dport 139 -d 192.168.78X.3 -j ACCEPT</code>::<code>iptables -I FORWARD -p tcp --dport 445 -d 192.168.78X.3 -j ACCEPT</code>::<code>iptables -t nat -A PREROUTING -p tcp --dport 139 -j DNAT --to-destination 192.168.78X.3</code>::<code>iptables -t nat -A PREROUTING -p tcp --dport 445 -j DNAT --to-destination 192.168.78X.3</code>
Note that when you restart libvirt it will move your FORWARD rules to the end of the chain, invalidating them.
# Modify the hosts allow setting on your '''vm2''' to also accept connections from the windows machine you are using.
932
edits

Navigation menu