smbclient timing out
Posted
by Sam Lee
on Server Fault
See other posts from Server Fault
or by Sam Lee
Published on 2009-08-27T21:46:29Z
Indexed on
2010/03/17
12:01 UTC
Read the original article
Hit count: 357
samba
I am trying to set up a Samba share on a Centos machine. I want to connect to this server using smbclient on OS X. Here is what happens:
> smbclient -L X.X.X.X
timeout connecting to X.X.X.X:445
timeout connecting to X.X.X.X:139
Error connecting to X.X.X.X (Operation already in progress)
Connection to X.X.X.X failed
What could be going wrong? Here is my iptables dump on the Centos machine (the server):
> iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
REJECT all -- 0.0.0.0/0 127.0.0.0/8 reject-with icmp-port-unreachable
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:445
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:3000
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 8
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:3000
And finally, my smb.conf:
[global]
workgroup = workgroup
security = SHARE
load printers = No
default service = global
path = /home
available = No
encrypt passwords = yes
[share]
writeable = yes
admin users = myusername
path = /home/myhome/
force user = root
valid users = myusername
public = yes
available = yes
© Server Fault or respective owner