hi there, taking a quick look through the smb.conf file posted by OP, i notice that the NETBIOS name is set as 'gateway'. This may cause issues in a Windows environment, so far as I know? This should be set the same as the server string, and both should have no spaces to be NETBIOS compatible.
I'm no expert, just my two cents..