[Samba] smbclient lookup fails when querying local machine

ryan punt rpunt at good-sam.com
Mon Dec 19 14:19:39 GMT 2005


OK, I've opened port 445 in the iptables config. Further testing shows no changed after doing this.

I can telnet to 139:
<snip>
boothost:~# telnet localhost 139
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
</snip>

Trying to smbclient to NETBios name, public IP, and loopback all produce the same error:
<snip>
session setup failed: Call timed out: server did not respond after 20000 milliseconds
</snip>

I have neither a "hosts allow" nor a "hosts deny" line in my smb.conf.

Thanks a bunch for all your help, Adam.

Ryan


>>> Adam Nielsen <adam.nielsen at uq.edu.au> 12/18/2005 5:02:30 PM >>>
Hmm, I have an additional port open:

tcp        0      0 192.168.0.1:139         0.0.0.0:*               LISTEN      2694/smbd           
tcp        0      0 127.0.0.1:139           0.0.0.0:*               LISTEN      2694/smbd           
tcp        0      0 192.168.0.1:445         0.0.0.0:*               LISTEN      2694/smbd           
tcp        0      0 127.0.0.1:445           0.0.0.0:*               LISTEN      2694/smbd   

But I don't know whether that's CIFS or something.  Are you able to
"telnet localhost 139"?  I suspect that doing that would also timeout,
whereas I can connect immediately.  If telnet also times out, it's
almost certainly a firewall issue.  Also check your "hosts allow" line
in smb.conf.

Cheers,
Adam.




More information about the samba mailing list