• February 22, 2025, 03:19:55 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Secure remote NAS access  (Read 10699 times)

dalbert

  • Guest
Secure remote NAS access
« on: October 05, 2008, 09:59:56 AM »

I've been successfully able to configure remote secure access
to my DNS-321 using an ssh tunnel from Windows XP SP3
so I can access my DNS-321 volume(s) at home from the
office network.  The main information on how to do this is here:

http://www.blisstonia.com/eolson/notes/smboverssh.php

Summary:
1. Create a loopback network connection of type
       Microsoft Loopback Adapter
    and assign it a (preferably non-routable) IP address
    (e.g. 10.0.0.1)

2. Create an ssh tunnel for TCP port 139 (SMB) between
    the DNS-321 and the new network connection.  I used
    cygwin, but puTTY, myEnTunnel, and other solutions will
    probably work fine.  My script to create the tunnel looks
    like this:
        ssh -f -N -l <myUserName> <myRemoteAddress> -L 10.0.0.1:139:<DNS321_IP_addr>:139
    This creates an SSH tunnel through an ssh server running
    on my home network (e.g. a linux machine) accessible to
    the internet at <myRemoteAddress> port 22 to the DNS321.

3. Create a network place (in My Network Places) for
    your remote SMB share accessed as \\10.0.0.1\Volume_1

It took a little work, but I can now access my NAS remotely
as though it were on the local network!

Follow the instructions on the blisstonia site carefully...every
detail is important including disabling File and Printer Sharing for
Microsoft Networks (uncheck the box) on the new loopback
network connection.

Good luck!

See also:
http://pigtail.net/LRP/printsrv/cygwin-sshd.html
Logged