How to tunnel samba (windows networking) over SSH through the firewall
Set up a loopback adapter
- From the Control Panel, select Add Hardware
- Select Yes, I have already connected the hardware
- Select Add a new hardware device
- Select Install the hardware that I manually select from a list
- Select Network Adapters
- Select Microsoft Loopback Adapter
- Once the adapter is installed you must assign it an IP address, eg, 172.16.0.1. Do not enter a default gateway
- Disable File and Printer sharing and NetBIOS over TCP/IP for this connection
Set up local forwarding with putty
- Enter the target SSH server as the host name and port 222
- Under Tunnels enter the IP address of the loopback adapter port 139 (eg, 172.16.0.1:139) in Source port and the samba server's socket (eg, 10.0.0.2:139) in Destination and click Add.
- Open this connection to set up the tunnel
Connect to the samba server
Go to start > run and enter \\172.16.0.1
