Changes

Jump to: navigation, search

OPS335 Lab 5

367 bytes added, 06:03, 21 July 2020
m
Accessing Files on a Linux Samba Server via Windows Explorer
::<code>iptables -t nat -A PREROUTING -p tcp --dport 139 -j DNAT --to-destination 192.168.X.3</code>
::<code>iptables -t nat -A PREROUTING -p tcp --dport 445 -j DNAT --to-destination 192.168.X.3</code>
Note that OR with specifing the interface (whichever works):::<code>iptables -t nat -A PREROUTING -i *externalinterface* -p tcp --dport 139 -j DNAT --to-destination 192.168.X.3</code>::<code>iptables -t nat -A PREROUTING -i *externalinterface* -p tcp --dport 445 -j DNAT --to-destination 192.168.X.3</code>where *externalinterface* is an interface name (e.g. ens33)<br>'''NOTE:''' when you restart libvirt libvirtd, 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.
# Open the Windows File Explorer application.
572
edits

Navigation menu