Unable to access Samba share from other subnet


SHLelieveld

Thank you for following my issue and working with me to find a solution. I have a samba server on subnet 172.23.3.55/23 (2.0 -> 3.255) and within that subnet I can access the server. Also, the 172.23.4.0/23 subnet, which is on the same core switch, can also access the server without issue. Even our Office subnet 129.228.114.0/23 can access the system through the firewall without issue. However, when I'm connected to the VPN network at 172.23.45.0/24, or when I'm from another office with a completely different range, I can't access the server. The server responds that I need to log in, but the login is always denied.

This is the [global] and [share] sections of smb.conf

        workgroup = localdomain.nmc
        netbios name = AMS-QTGW02
        server string = %h server (Samba %v)
#        hosts allow = 172.23.202.0/24 172.23.45.0/24 129.228.114.0/23 
129.228.70.0/24 129.228.109.42 129.228.109.83
        force user = nobody
        force group = nobody
        force create mode = 0666
        force directory mode = 0777
        create mode = 0666
        directory mode = 0777
        guest account = vimn

        security = user
        passdb backend = tdbsam
        ntlm auth = yes

        log file = /var/log/samba/log.%m
        log level = 2 passdb:5 auth:5
        max log size = 50M

        #Performance Tuning:
        use sendfile = true
        kernel oplocks = no
        strict locking = no

        #FUCK OSX!
        veto files = /.DS_Store/.AppleDesktop/.AppleDB/.AppleDouble/.Temporary Items/
        delete veto files = yes

        printing = cups
        printcap name = cups
        load printers = no
        cups options = raw

[AMS-HATCH]
        comment = HATCH Storage Share (AutoCleaned 30 Days)
        path = /quantum/AMS-HATCH
        browseable = yes
        writable = yes
        guest ok = yes
        force user = nobody
        force group = nobody
        valid users = @LinuxAdmins, vimn, mll

As you can see, I no longer use the line "Host Allow" so that all IPs can access them, and later when all IPs are working, I want to restrict access (or "Deny Host") through it.

Credentials have been checked multiple times and they are entered correctly. I made some modifications to samba-winbond to disable non-domain servers, but I don't have it installed, is there a setting I don't know about or should I use?

In the log file for this session I have the following:

[2018/02/19 11:21:07.724423,  5] 
../source3/auth/server_info_sam.c:122(make_server_info_sam)
  make_server_info_sam: made server info for user vimn -> vimn
[2018/02/19 11:21:07.724461,  3] 
../source3/auth/auth.c:249(auth_check_ntlm_password)
  check_ntlm_password: sam authentication for user [vimn] succeeded
[2018/02/19 11:21:07.724516,  5] 
../source3/auth/auth.c:292(auth_check_ntlm_password)
  check_ntlm_password:  PAM Account for user [vimn] succeeded
[2018/02/19 11:21:07.724537,  2] 
../source3/auth/auth.c:305(auth_check_ntlm_password)
  check_ntlm_password:  authentication for user [vimn] -> [vimn] -> [vimn] 
succeeded
[2018/02/19 11:21:07.725216,  5] 
../source3/passdb/pdb_interface.c:1749(lookup_global_sam_rid)
  lookup_global_sam_rid: looking up RID 513.
[2018/02/19 11:21:07.725264,  5] 
../source3/passdb/pdb_tdb.c:658(tdbsam_getsampwrid)
  pdb_getsampwrid (TDB): error looking up RID 513 by key RID_00000201.
[2018/02/19 11:21:07.725300,  5] 
../source3/passdb/pdb_interface.c:1825(lookup_global_sam_rid)
  Can't find a unix id for an unmapped group
[2018/02/19 11:21:07.725317,  5] 
../source3/passdb/pdb_interface.c:1535(pdb_default_sid_to_id)
  SID S-1-5-21-3363938291-73671434-3978610123-513 belongs to our domain, but 
there is no corresponding object in the database.

Password verified correctly but still disconnected.

Thank you all.

Edit: Added log section.

SHLelieveld

No one has provided an answer, but the question is no longer there.

Related


Unable to access Samba share from other subnet

SHLelieveld Thank you for following my issue and working with me to find a solution. I have a samba server on subnet 172.23.3.55/23 (2.0 -> 3.255) and within that subnet I can access the server. Also, the 172.23.4.0/23 subnet, which is on the same core switch,

Can't access Samba share on other LAN

username I have two different LANs in my home network, 192.168.0.1 (modem/switch) and 192.168.1.1 (router). The switch is connected to the modem and it has access to my PC, the 192.168.0.0/24 range. There is also a router attached to the modem that gives wirel

Can't access Samba share on other LAN

username I have two different LANs in my home network, 192.168.0.1 (modem/switch) and 192.168.1.1 (router). The switch is connected to the modem and it has access to my PC, the 192.168.0.0/24 range. There is also a router attached to the modem that gives wirel

Unable to connect to Samba share from Nautilus

Jim Buffard I have Ubuntu 10.04 and I want to connect to a Samba share on DLink DNS323. From Nautilus' Locations -> Network, I can easily navigate to DND323 and see available shares. When I choose a passwordless share, I can access it as expected. It doesn't w

Unable to connect to Samba share from Nautilus

Jim Buffard I have Ubuntu 10.04 and I want to connect to a Samba share on DLink DNS323. From Nautilus' Locations -> Network, I can easily navigate to DND323 and see available shares. When I choose a passwordless share, I can access it as expected. It doesn't w

Unable to connect to Samba share from Nautilus

Jim Buffard I have Ubuntu 10.04 and I want to connect to a Samba share on DLink DNS323. From Nautilus' Locations -> Network, I can easily navigate to DND323 and see available shares. When I choose a passwordless share, I can access it as expected. It doesn't w

Unable to ping OpenVPN server from other subnet

Jonapap I have an OpenVPN cloud server and my goal is to be able to access my home network from OpenVPN clients connected to the server. Currently, I have an OpenWRT router which is an OpenVPN client connected to a server. First, I tried to enable my house dev

Unable to ping OpenVPN server from other subnet

Jonapap I have an OpenVPN cloud server and my goal is to be able to access my home network from OpenVPN clients connected to the server. Currently, I have an OpenWRT router which is an OpenVPN client connected to a server. First, I tried to enable my house dev

Access Samba share from Windows 10 in VirtualBox

The Balvenie I read many user questions and blogs about this problem, but nothing solves my problem. I have a Linux CENTOS host with a Windows 10 guest installed in VirtualBox. On Linux, there is a user named "myuser" that shares a directory (777) and is regis

Access Samba share from Windows 10 in VirtualBox

The Balvenie I read many user questions and blogs about this problem, but nothing solves my problem. I have a Linux CENTOS host with a Windows 10 guest installed in VirtualBox. On Linux, there is a user named "myuser" that shares a directory (777) and is regis

Unable to mount samba share

username I am trying to install a Samba host located at 192.168.2.5. I can ping the host, can open shares on Ubuntu and Windows (with credentials). When I try to connect manually: pi@raspberrypi-web-server ~ $ smbclient -L 192.168.2.5 Enter pi's password: Doma

Unable to mount Samba share

Ignacio I think I did everything I needed, I installed cifs-utilson the server and client, plus smbclientthe client. I also share folders like this: [Ventas] comment = varpeta de ventas path = /mnt/ventas public = yes writeable = yes browseable = yes I restar

Unable to mount samba share

username I am trying to install a Samba host located at 192.168.2.5. I can ping the host, can open shares on Ubuntu and Windows (with credentials). When I try to connect manually: pi@raspberrypi-web-server ~ $ smbclient -L 192.168.2.5 Enter pi's password: Doma

Unable to access Samba share using Kubuntu 19.04 GUI

donut I have two machines running Kubuntu 19.04 and I'm having trouble sharing files using the KDE GUI. These are the steps I took to share a folder for read and write access for a specific user (let him name it myuser) : On Machine A, I right-click on the fol

No write access to samba share

Grant 128 imagine Kubuntu Desktop 18.04, Tower Lubuntu desktop 18.04, laptop Windows 10, laptop Kubuntu I installed and configured the samba server by following Installing and configuring Samba in Ubuntu 18.04 Bionic Beaver My addition /etc/smb.conf: [kubuntu_

No write access to samba share

xilix I have two notebooks on my home network (Notebook 1 with Ubuntu 10.04 and Notebook 2 with Ubuntu 10.10) and I want to share a folder on Notebook 1 with samba. Notebook 2 should be able to read/write/delete the contents of the folder. I installed samba an

No write access to samba share

xilix I have two notebooks on my home network (Notebook 1 with Ubuntu 10.04 and Notebook 2 with Ubuntu 10.10) and I want to share a folder on Notebook 1 with samba. Notebook 2 should be able to read/write/delete the contents of the folder. I installed samba an

Unable to copy any folder from samba share network

Bishwanath Das I'm connected to a windows network and I'm working on a directory from a windows share, it starts processing, but the progress bar stops in the middle without any error messages and it doesn't copy. But I am able to copy a single file through th

Unable to copy any folder from samba share network

Bishwanath Das I'm connected to a windows network and I'm working on a directory from a windows share, it starts processing, but the progress bar stops in the middle without any error messages and it doesn't copy. But I am able to copy a single file through th

Unable to copy any folder from samba share network

Bishwanath Das I'm connected to a windows network and I'm working on a directory from a windows share, it starts processing, but the progress bar stops in the middle without any error messages and it doesn't copy. But I am able to copy a single file through th

Access samba share from windows, login with rsa key

Daniel Vandenberg I've set up samba to allow viewing of the logged in user's home directory. Now I githave a user named , which has no password. The only way to reach him is rsa-key. Is it possible to configure both samba and Windows (10) to use this key for a

Samba: Can access share from UNC but can't browse to it

yknivag Background: Small home network that includes a media server that doubles as a NAS. The server runs both the smbd and nmbd samba components with the intention of running it as a workgroup rather than a domain (there aren't enough machines to make a doma

Access samba share from windows, login with rsa key

Daniel Vandenberg I've set up samba to allow viewing of the logged in user's home directory. Now I githave a user named , which has no password. The only way to reach him is rsa-key. Is it possible to configure both samba and Windows (10) to use this key for a

Samba: Can access share from UNC but can't browse to it

yknivag Background: Small home network that includes a media server that doubles as a NAS. The server runs both the smbd and nmbd samba components with the intention of running it as a workgroup rather than a domain (there aren't enough machines to make a doma

Unable to mount samba network share

Codebat I recently switched to a new computer at work and since then I have been unable to mount my personal network share via cif. I checked the command twice with my old computer and even checked the exact version of cifs-utils and it was exactly the same. I

Unable to create writable share in Samba

Vipin Jain Below is the configuration I am using [global] workgroup = WORKGROUP netbios name = CDA security = user map to guest = Bad User username map = /etc/samba/smbusers guest account = nobody guest ok = yes log file = /var/log/samba.log.%m log level = 2 m

Unable to create public Samba share

Sammy Hey I have a weird question. I can't create a public sambe share on an ext4 filesystem. Authenticated shares as well as public shares on ntfs volumes. Here is the output testparm -S: $ sudo testparm -S Load smb config files from /etc/samba/smb.conf Proce

Unable to create writable share in Samba

Vipin Jain Below is the configuration I am using [global] workgroup = WORKGROUP netbios name = CDA security = user map to guest = Bad User username map = /etc/samba/smbusers guest account = nobody guest ok = yes log file = /var/log/samba.log.%m log level = 2 m