Hi everybody,
first off, I'm new to ArchLinux(ARM) and to setting up servers in general. I got a Pogoplug v3 device and installed ArchLinuchARM on it following the installation guide provided on this website. I like to use the device with a usb harddrive attached as a file server for backups. I only want local access from within my network, no "cloud" functions whatsoever.
So, after the basic installation of ArchLinuxARM I set up Samba with this smb.conf file:
$this->bbcode_second_pass_code('', '[global]
workgroup = WORKGROUP
server string = ArchNAS
security = user
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log file = /var/log/samba/$m.log
max log size = 50
dns proxy = no
disable netbios = yes
hosts deny = 0.0.0.0/0
hosts allow = 192.168.2.0/24
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072
[EXTERNALDRIVE]
path = media/EXTERNALDRIVE/
read only = no
public = no
writeable = yes')
I added a user account to samba and I can logon with it's credentials from my desktop and laptop computer just fine.
Is there anything missing or wrong with my smb.conf file that can cause security issues?
EDIT: Access should be granted only with username and password!
Furthermore, I set up a simple firewall using ufw. The default is deny from everywhere. Then I added two rules so ufw status gives me this:
$this->bbcode_second_pass_code('', '
Status: active
To Action From
__ ______ ____
Anywhere ALLOW 192.168.2.0/24
SSH LIMIT Anywhere
')
Is it safe to say that nobody outside from my network can access my fileserver with this configuration or am I missing something? Of course, I'm aware that there is no absolute saftey except pulling the plug. I just like to know if I should take more measures to secure my fileserver.
Thanks,
Timo
