I’ve been using putty/SSH to access my home box for years now. I have things set up at work so all my internet traffic is tunneled home first, then off to the wild blue yonder. This allows me to fuck around and do everything from surf, read e-mail, download music on soulseek (via Radmin), read news groups, chat on IRC, etc… and the boss man is none the wiser. I even went the extra mile and set up freecap in combination with a home SOCKS proxy to catch all DNS requests. This way even looking through the DNS logs won’t reveal anything. This is something that is conspicuously missing from even the most thorough security tutorials.
One thing I’ve never bothered with though, is getting windows networking working. This is something I had always thought would be more trouble than it was worth, but in fact it turns out to be far easier than I anticipated.
All of this information can be found by googling, and I took some of it from an article I found in the de.li.cious top 20 (a great resource for geeks). It assumes you more or less already know about SSH and port forwarding.
We are going to set up a loopback network adapter in XP, and add a local port forwarding on this adapter’s address pointing at our home Windows (or Linux samba) box.
Add Loopback Adapter
- Go to Add Hardware
- Click Yes, I already connected the hardware
- Add a new hardware device (bottom of menu)
- Install the hardware that I manually select from a list (Advanced)
- Select Network Adapters
- Microsoft Loopback Adapter
By the way, it is possible to add more than one adapter.
Set Up Adapter
Now, it is important to turn off NetBIOS on this interface and Windows file sharing. Do this from the properties tab for the network interface. The NetBIOS settings is sort of hidden. First highlight the TCP/IP stack, hit properties, advanced, and then hit the WINS tab. As a check, use netstat -a to make sure nothing is listening on port 139.
Set Up Putty
The only thing left to do is set up a local forwarding in putty. You can specify the interface to use in putty by using an IP address in the source port field. Normally you just put a port number in this field, but you can use something like 10.0.0.1:139 if you want. Now point the destination at the computer with your windows shares (also port 139).
You should be able to set up a network drive now if you like, or connect to your home share in Windows Explorer. You would connect using \\10.0.0.1\myshare, or whatever address you used for the loopback interface.