[Samba] Samba Share : Connection refused

Rowland Penny
2018-07-09T09:34:22Z

On Mon, 9 Jul 2018 11:16:44 +0200
Sascha Wiechmann via samba <samba at lists.samba.org> wrote:

>
> Hi Rowland,
>
> thanks for your fast reply. Maybe there was a problem on format in the
> email as testparm works fine on my server. But I also did not write
> about distribution and version, sorry.
> This conf is given by Yast tool from SuSE LEAP 42.2 by default. I just
> added the few parameters I need. So maybe I should clean out a bit - I
> still do not need any domain settings.
> But does this the trick?
>

I sounds like you just want a standalone server, If so, try this:

[global]
     workgroup = workgroup # NOTE: if the workgroup name really is
'workgroup'
                           #       you might as well remove it, it is the
default.
     security = user
     netbios name = SRV1

     printing = cups
     printcap name = cups
     printcap cache time = 750
     cups options = raw
     map to guest = Bad User

     wins support = Yes # If you have any other wins servers, remove this.
     log file = /var/log/samba/log.%I
     log level = 2
     hosts allow = 192.168.0.0/24 192.168.4.0/24
     hosts deny = ALL

With this smb.conf, users on machines in the subnets 192.168.0.0/24 &
192.168.4.0/24 should be able to connect. If they cannot now and could
before you installed the firewall device, I would suspect the firewall
device.

Rowland