When I use smbclient to access an IOMEGA NAS server, smbclient tries to access port 445 for a full five minutes before timing out: [2004/02/20 17:48:24, 10] lib/gencache.c:gencache_get(262) Returning valid cache entry: key = NBT/NAS_120_1#20, value = 192.168.123.161:0, timeout = Fri Feb 20 17:53:22 2004 [2004/02/20 17:48:24, 5] libsmb/namecache.c:namecache_fetch(201) name nas_120_1#20 found. [2004/02/20 17:48:24, 3] lib/util_sock.c:open_socket_out(698) Connecting to 192.168.123.161 at port 445 [2004/02/20 17:51:38, 2] lib/util_sock.c:open_socket_out(733) error connecting to 192.168.123.161:445 (Connection timed out) Next, smbclient goes on to contact it on port 139, and all works great right away. Can I direct smbclient to not use 445? Anyone have an idea why smbclient is getting stuck in this tar pit for five minutes? Thanks, Dave
David Wuertele wrote:> When I use smbclient to access an IOMEGA NAS server, smbclient tries > to access port 445 for a full five minutes before timing out: > > [2004/02/20 17:48:24, 10] lib/gencache.c:gencache_get(262) > Returning valid cache entry: key = NBT/NAS_120_1#20, value = 192.168.123.161:0, timeout = Fri Feb 20 17:53:22 2004 > > [2004/02/20 17:48:24, 5] libsmb/namecache.c:namecache_fetch(201) > name nas_120_1#20 found. > [2004/02/20 17:48:24, 3] lib/util_sock.c:open_socket_out(698) > Connecting to 192.168.123.161 at port 445 > [2004/02/20 17:51:38, 2] lib/util_sock.c:open_socket_out(733) > error connecting to 192.168.123.161:445 (Connection timed out) > > Next, smbclient goes on to contact it on port 139, and all works great > right away. > > Can I direct smbclient to not use 445? Anyone have an idea why > smbclient is getting stuck in this tar pit for five minutes?From 'man smbclient': -p port This number is the TCP port number that will be used when making connections to the server. The standard (well-known) TCP port number for an SMB/CIFS server is 139, which is the default. -- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548
On Sat, 2004-02-21 at 09:55, David Wuertele wrote:> When I use smbclient to access an IOMEGA NAS server, smbclient tries > to access port 445 for a full five minutes before timing out: > > [2004/02/20 17:48:24, 10] lib/gencache.c:gencache_get(262) > Returning valid cache entry: key = NBT/NAS_120_1#20, value = 192.168.123.161:0, timeout = Fri Feb 20 17:53:22 2004 > > [2004/02/20 17:48:24, 5] libsmb/namecache.c:namecache_fetch(201) > name nas_120_1#20 found. > [2004/02/20 17:48:24, 3] lib/util_sock.c:open_socket_out(698) > Connecting to 192.168.123.161 at port 445 > [2004/02/20 17:51:38, 2] lib/util_sock.c:open_socket_out(733) > error connecting to 192.168.123.161:445 (Connection timed out) > > Next, smbclient goes on to contact it on port 139, and all works great > right away. > > Can I direct smbclient to not use 445? Anyone have an idea why > smbclient is getting stuck in this tar pit for five minutes?We really expect hosts to do the sensible thing, and return connection refused in this case. We probably should do what MS does, which is to connect to both ports, then throw one connection away. It's not exactly nice however... Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20040221/794859bb/attachment.bin