LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Vista issues with SMB, fixed with rinetd (https://www.linuxquestions.org/questions/linux-networking-3/vista-issues-with-smb-fixed-with-rinetd-573503/)

lefty.crupps 07-30-2007 04:41 PM

Vista issues with SMB, fixed with rinetd
 
Just a brief 'HowTo' if anyone seems to be having issues with Microsoft Vista and file sharing.

If you are having trouble with Vista connecting to a file or print server which uses Samba, it may be due to two reasons. Vista wants to use the new Samba protocol to make this happen, and there is a work-around here about it:
http://forums.microsoft.com/MSDN/Sho...60925&SiteID=1

However, our office's Vista Business Edition did initially work with this but it STOPPED working after a MS update. We have no idea why, nor exactly when since it was autoupdating and the user was no longer with us.

However, it seems that Vista now wants to connect via Port 445 rather than port 139 (the old SMB port) but it uses the same protocol.

We used the program 'rinetd' to redirect port 445 to 139, and the connection now works (note: the above 'fix' still needed to be in place). This was with the older Samba 2.2.7a. The app (for us) was located in /usr/sbin/ and the config file at /etc/rinetd.conf That file is as simple as the IP and port of the incoming traffic, and the IP and port of the redirect. Our example was this:

Code:

10.10.10.1 445 10.10.10.1 139
And we were up and running again.

I hope this helps someone, or at least me in the future when I go a-lookin'.

jschiwal 07-30-2007 10:49 PM

From the Samba 3 Reference Guide:
Quote:

• Samba-3 provides NetBIOS name services (WINS), NetBIOS over TCP/IP
(TCP port 139) session services, SMB over TCP/IP (TCP port 445)
session services, and Microsoft compatible ONC DCE RPC services
(TCP port 135) services.
...
[global]
...
smb ports = 139 445
...
Since the introduction of MS Windows 2000, it is possible to run MS Windows
networking without the use of NetBIOS over TCP/IP. NetBIOS over
TCP/IP uses UDP port 137 for NetBIOS name resolution and uses TCP
port 139 for NetBIOS session services. When NetBIOS over TCP/IP is disabled
on MS Windows 2000 and later clients, then only the TCP port 445
is used, and the UDP port 137 and TCP port 139 are not.
...

lefty.crupps 07-31-2007 08:29 AM

Thanks for the quote; ours was a situation with Samba 2.2.7a however, just to point that out to readers.

jschiwal 08-04-2007 05:48 AM

If you have Vista hosts, I think you will want to upgrade to a recent samba version.


All times are GMT -5. The time now is 08:10 PM.