[Samba] smbclient lookup fails when querying local machine

ryan punt rpunt at good-sam.com
Thu Dec 15 14:08:32 GMT 2005


boothost:~# netstat -lnp|grep smbd
tcp        0      0   *               LISTEN     2968/smbd

Port 139 is open in the iptables config for both TCP and UDP.


>>> Adam Nielsen <adam.nielsen at uq.edu.au> 12/14/2005 4:58:05 PM >>>
Hi Ryan,

> boothost:~# smbclient -L -Uvalidusr
> added interface ip= bcast= nmask=
> Password:
> session setup failed: Call timed out: server did not respond after
> 20000 milliseconds
> Can bad WINS entries affect results even if WINS isn't in the "name
> resolve order"?

When you use -L <ip> it bypasses WINS, hosts, lmhosts, etc. altogether
and connects directly to that IP address.  So that would explain why -L
BH1230 doesn't work, because WINS might be mapping back to an IP, but
you still get the timeout when connecting to that IP anyway.

Try running "netstat -lnp | grep smbd" to get a list of all ports that
Samba has open, and make sure they're all opened on the firewall
(including the 'lo' interface.)  I have a feeling there are two or
three different ports that need to be opened.


More information about the samba mailing list