I was looking for way to permit Netbios communication between two servers in different location without VPN.
Here's what I have found, an easy way to allowed NetBios between two servers using SSH.
SSH allow you to create a tunnel between two machines and forward ports. To tunnel Netbios over SSH, you need to forwards connections on port 139 on the sharing-client machine via SSH to the sharing-provider.
Don't forget, you need to have a SSH server on you sharing-provider.
Here a simple HowTo:
Sharing-client:
First, you will need to install and configure the Microsoft Loopback Adapter.
Control Pannel / Add Hardware
Select "Yes, I have already connected the hardware".
Scroll down to the bottom of the list, select "Add a new hardware device".
![]()
Next, choose "Install the hardware that I manually select from a list (Advanced)".
![]()
Select in the list "Network adapters", click next.
![]()
In the right pane, select "Microsoft", left pane, select "Microsoft Loopback Adapter".
![]()
Then click finish.
![]()
Now, we need to configure the Loopback Adapter. Go back to the
Control panel / Network Connections
Select the newly installed network adapter (You should see a new "Local Area Connection #", where # is its order number, depending on how many network connections you have).
![]()
Right click on the selected adapter and choose "Properties". Make sure that "Microsoft Loopback Adapter" is displayed in "Connect using:"
![]()
Disable (uncheck) everything, except for "Internet Protocol (TCP/IP)", see image above.
Select "Internet Protocol (TCP/IP)" and click "Properties". On the General tab, select "Use the following IP address" set it to
IP address: 10.10.10.10
Subnet mask: 255.255.255.0
![]()
On the same tab, click "Advanced". WINS tab, uncheck "Enable LMHOSTS lookup" and select "Disable NetBIOS over TCP/IP"
![]()
Click OK, OK, Close.
Second, you will need a SSH client. I use Tunnelier from bitvise which is a great product. Please read the License Terms before downloading.
Install Tunnelier. Once you're done, launch it.
Login tab, insert your server information, authentication information.
![]()
Options tab, Reconnection section select "Always reconnect automatically". On Login section, uncheck "Open Terminal" and "Open SFTP".
![]()
C2S Fwding tab, Status "Enabled" Listen Interface "10.10.10.10" Listen Port "139" Destination Host "123.456.789.10" Destination Port "139", where 123.456.789.10 is your sharing-provider external IP.
![]()
Click "Login"
Now you should be able to access it:
\\10.10.10.10\your-share-folder
BTW, this can also be done for other ports.


Facebook
Twitter
LinkedIn
RSS
votes