How to tunnel samba (windows networking) over SSH through the firewall

Set up a loopback adapter

  1. From the Control Panel, select Add Hardware
  2. Select Yes, I have already connected the hardware
  3. Select Add a new hardware device
  4. Select Install the hardware that I manually select from a list
  5. Select Network Adapters
  6. Select Microsoft Loopback Adapter
  7. Once the adapter is installed you must assign it an IP address, eg, 172.16.0.1. Do not enter a default gateway
  8. Disable File and Printer sharing and NetBIOS over TCP/IP for this connection

Set up local forwarding with putty

  1. Enter the target SSH server as the host name and port 222
  2. 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.
  3. Open this connection to set up the tunnel

Connect to the samba server


CategoryWindows CategorySamba CategorySelinux

TunnelSambaOverSSH (last edited 2008-01-24 18:12:36 by DavidKeen)