Friday, November 13, 2009

Configuring File Sharing over SSH through OpenGear Comm Server

With the current configuration of the lab, you cannot access the file directories on 10.209.10.208 directly.  You must access them through the comm server using an SSH tunnel.  Here are the steps.

# ------------------------------------------------------------------- #
# Install Patch from Microsoft
# ------------------------------------------------------------------- #

1.  Go to the following location and install this patch

http://support.microsoft.com/?id=884020

# ------------------------------------------------------------------- #
# Add a virtual adapter to your PC
# ------------------------------------------------------------------- #

To add a virtual network adapter in Windows, use the following steps:

1.  In the Control Panel click on Add Hardware.

2.  In the Add Hardware Wizard, select "Yes, I have already connected the hardware" and click Next.

3.  Scroll down the list and click on "Add a new hardware device".

4.  Select "Install the hardware that I manually select from a list".

5.  From the hardware types, select Network Adapters and choose Microsoft Loopback Adapter.

6.  Complete the installation procedure.

# ------------------------------------------------------------------- #
# Configure the Virtual Adapter
# ------------------------------------------------------------------- #

To configure the virtual adapter, use the following steps:

1.  Go to Network Connections configuration panel.

2.  Right click on the Microsoft Loopback Adapter and select Properties.

3.  In the "This connection uses the following items:" selection box, make sure that "File and Printer Sharing for Microsoft Networks" is unselected.

4.  Select Internet Protocol (TCP/IP) and click on the Properties button.

5.  Check "Use the following IP address" option and enter the following IP address:

    IP Address :  192.168.100.1
    Subnet Mask:  255.255.255.0

    Note:  Do not configure a gateway or DNS server for this adapter.

6.  Click on the Advanced button and in the WINS tab, select "Disable NetBIOS over TCP/IP".

# ------------------------------------------------------------------- #
# Configure the SSH tunnel on Putty
# ------------------------------------------------------------------- #

1.  Load putty

2.  Load the RD_X session configuration.  Do not open it.

3.  Select the Connections->SSH->Tunnels item from the left-side menu.

4.  Enter the following into the source port input box:

    192.168.100.1:139

    Note:  even though the box is small, this will work.

5.  Enter the following into the destination port input box:

    10.209.10.208:139

    Note:  even though the box is small, this will work.

6.  Make sure that the following two radio buttons are selected:

    o  Local
    o  IPv4

7.  Make sure the "Local ports accept connections from other hosts" option is selected.

8.  Click the "Add" button.

8.  Save the session configuration.

# ------------------------------------------------------------------- #
# Configure the SSH tunnel on the comm server
# ------------------------------------------------------------------- #

1.  Access the comm server and login:

https://10.209.10.3
https://10.209.10.103

2.  Select "Network Hosts" from the left side menu

3.  Add the following ports to the permitted services:

    o  139 (udp)
    o  139 (tcp)

4.  Apply the configuration

# ------------------------------------------------------------------- #
# Accessing 10.209.10.208 through the SSH tunnel
# ------------------------------------------------------------------- #

1.  Start Putty.

2.  Open the RD-X session profile.

3.  Start windows explorer.

4.  Enter \\192.168.100.1 in the address input box.

You should now see the shares available on 192.168.100.1