Hello,
I've been trying to set up a Samba share on my local network but it's not working for some reason. I'm thinking that perhaps IPTables is blocking access for some reason. I was able to get this working before, but I've only recently started using IPTables and changed around my configurations a little. I am using Arch Linux for this.
The following is my output from `smbclient -L //10.11.0.1`:
Code:
Sharename Type Comment
--------- ---- -------
steam Disk
IPC$ IPC IPC Service (server server (Samba, Ubuntu))
Reconnecting with SMB1 for workgroup listing.
Server Comment
--------- -------
Workgroup Master
--------- -------
WORKGROUP SERVER
My samba config file looks like this:
Code:
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
###NETWORKING###
interfaces = 10.11.0.0/24
bind interfaces only = yes
###DEBUGGING###
log file = /var/log/samba/log.%m
max log size = 1000
panic action = /usr/share/samba/panic-action %d
###AUTHENTICATION###
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
############ Misc ############
usershare allow guests = yes
#======================= Share Definitions =======================
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[steam]
path = /srv/steam
valid users = steam
read only = no
hosts allow = 10.11.0.0/24 127.0.0.0/8
#bind interfaces only = yes
Output from `iptables -L`:
Code:
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT icmp -- anywhere anywhere icmp echo-request
ACCEPT tcp -- 10.11.0.0/24 anywhere tcp dpt:ssh
ACCEPT tcp -- 10.11.0.0/24 anywhere tcp dpt:microsoft-ds
ACCEPT tcp -- 10.11.0.0/24 anywhere tcp dpt:netbios-ns
ACCEPT tcp -- 10.11.0.0/24 anywhere tcp dpt:netbios-dgm
ACCEPT tcp -- 10.11.0.0/24 anywhere tcp dpt:netbios-ssn
DROP tcp -- anywhere anywhere tcp dpt:ssh
DROP tcp -- anywhere anywhere tcp dpt:microsoft-ds
DROP tcp -- anywhere anywhere tcp dpt:netbios-ns
DROP tcp -- anywhere anywhere tcp dpt:netbios-dgm
DROP tcp -- anywhere anywhere tcp dpt:netbios-ssn
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT udp -- anywhere anywhere udp dpts:bootps:bootpc
ACCEPT udp -- anywhere anywhere udp dpts:bootps:bootpc
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
My directory is at /srv/steam with the permissions set to `drwxr-xr-x 6 steam root 4096 Dec 2 16:51 steam` (from ls -al)
Is there something I'm doing wrong with this configuration? I can't mount the 'steam' directory with either mount.cifs or Windows and smbclient gives the "NT_STATUS_BAD_NETWORK_NAME" when I try to log in.