I am trying to access a samba share on CentOS7 from other PC in a different subnet.
- Samba version 4.4.4
- Server: CentOS7
- Clients: Windows 10, Ubuntu Mate, Windows 7.
- Subnet A: 11.22.66.64/26 (old)
- Subnet B: 11.22.33.0/25 (new)
The server is in subnet A (this will change in the future because we will leave subnet A). Access from all PCs in subnet A works fine.
All PCs in subnet B don't work, which means they do not have access to the share. Also I cannot see the share in the Networks Browser from Windows or Mate.
I can ping in both directions, I can access e.g. an Apache server in subnet A from PCs in subnet B. The pc with the share also runs the dhcpd. The PC in subnet B get the right IP-addresses from it.
The subnets are in the same physical network, connected to one router, which is the gateway to the outside (university network, Internet). I do not have direct access to it's configuration (we are part of an university network).
The smb.conf:
[global]
workgroup = xyz
interfaces = lo enp3s0 11.22.33.0/25 11.22.66.64/26
bind interfaces only = yes
hosts allow = 127. 11.22.33. 11.22.66.
security = user
passdb backend = tdbsam
map to guest = Bad User
guest account = nobody
local master = yes
os level = 255
preferred master = yes
domain master = yes
wins support = yes
# Share Definitions
[home]
...
What can I do?
Solution
The problem was with the firewall of our router/gateway which blocked the ports used by SMB (135 - 139 and 445). After our IT department opened the ports it worked.