Updated IP address on SMB shares will not apply until after FreeNAS reboot.

Status
Not open for further replies.

sesipod

Contributor
Joined
Jan 27, 2017
Messages
162
I have a slight issue with my SMB shares that I update quite a bit.
The only thing that I typically want to update is the IP addresses allowed to access a particular share. For example I want to update my File storage share to a new ipv4 so I change 10.0.0.50 to 10.0.0.60 and select okay. I then try and access the share on the computer running on that .60 address. FreeNAS will not allow that computer to access the share using the correct username and password for the share. The only way that I can get a connection after updating the ipv4 in FreeNAS is to reboot FreeNAS I have tried to stop SMB service and restart it and that doesn't work.

Im currently running FreeNAS version ( FreeNAS-11.0-RELEASE (a2dc21583) )
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Might be a bug. That's a feature most people don't use. Normally just relying on password auth is enough.
 
D

dlavigne

Guest
If you decide to make a report at bugs.freenas.org, post the issue number here.
 

sesipod

Contributor
Joined
Jan 27, 2017
Messages
162

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Changing share parameters only causes the smb4.conf to reload. This means new parameters will not be picked up by clients until they establish new SMB session.

If you want the to force all clients to negotiate new session, stop, then restart the SMB service.
 

sesipod

Contributor
Joined
Jan 27, 2017
Messages
162
Above I stated that I have restarted the SMB service and that doesn't work. I have also tested restarting the for example .60 windows computer after restarting the SMB service. That does nothing to fix the issues :C
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Sorry. Misread. Carrying baby. Are you trying to connect to the freenas server by IP address or NetBIOS name? \\10.0.0.60 vs \\freenas

Post contents of /usr/local/etc/smb4.conf
 

sesipod

Contributor
Joined
Jan 27, 2017
Messages
162
Code:
[global]
	server max protocol = SMB3
	interfaces = 127.0.0.1 10.0.0.4 10.90.0.4 192.168.1.4
	bind interfaces only = yes
	encrypt passwords = yes
	dns proxy = no
	strict locking = no
	oplocks = yes
	deadtime = 15
	max log size = 51200
	max open files = 175835
	logging = file
	load printers = no
	printing = bsd
	printcap name = /dev/null
	disable spoolss = yes
	getwd cache = yes
	guest account = nobody
	map to guest = Bad User
	obey pam restrictions = yes
	ntlm auth = no
	directory name cache size = 0
	kernel change notify = no
	panic action = /usr/local/libexec/samba/samba-backtrace
	nsupdate command = /usr/local/bin/samba-nsupdate -g
	server string = FreeNAS Server
	ea support = yes
	store dos attributes = yes
	lm announce = yes
	hostname lookups = yes
	time server = yes
	acl allow execute always = true
	dos filemode = yes
	multicast dns register = yes
	domain logons = no
	local master = yes
	idmap config *: backend = tdb
	idmap config *: range = 90000001-100000000
	server role = standalone
	netbios name = NAS
	workgroup = WORKGROUP
	security = user
	pid directory = /var/run/samba
	create mask = 0666
	directory mask = 0777
	client ntlmv2 auth = yes
	dos charset = CP437
	unix charset = UTF-8
	log level = 1
  

[3tb_purple]
	path = "/mnt/CAM_3TB"
	printable = no
	veto files = /.snapshot/.windows/.mac/.zfs/
	writeable = yes
	browseable = yes
	vfs objects = zfs_space zfsacl streams_xattr aio_pthread
	hide dot files = yes
	hosts allow = 10.0.0.83
	guest ok = no
	nfs4:mode = special
	nfs4:acedup = merge
	nfs4:chown = true
	zfsacl:acesort = dontcare
  

[Files]
	path = "/mnt/RAID-Z2/Files"
	printable = no
	veto files = /.snapshot/.windows/.mac/.zfs/
	writeable = yes
	browseable = yes
	vfs objects = zfs_space zfsacl streams_xattr aio_pthread
	hide dot files = yes
	hosts allow = 192.168.1.20 10.0.0.83 10.0.0.20 192.168.1.184
	guest ok = no
	nfs4:mode = special
	nfs4:acedup = merge
	nfs4:chown = true
	zfsacl:acesort = dontcare
  

[NextCloud_SMB]
	path = "/mnt/RAID-Z2/NextCloud_SMB"
	printable = no
	veto files = /.snapshot/.windows/.mac/.zfs/
	writeable = yes
	browseable = no
	vfs objects = zfs_space zfsacl streams_xattr aio_pthread
	hide dot files = yes
	hosts allow = 192.168.1.70 192.168.1.83
	guest ok = no
	nfs4:mode = special
	nfs4:acedup = merge
	nfs4:chown = true
	zfsacl:acesort = dontcare
  

[Plex]
	path = "/mnt/RAID-Z2/Plex"
	printable = no
	veto files = /.snapshot/.windows/.mac/.zfs/
	writeable = yes
	browseable = yes
	vfs objects = zfs_space zfsacl streams_xattr aio_pthread
	hide dot files = yes
	hosts allow = 192.168.1.20 10.0.0.20 10.0.0.50 10.90.0.5 10.0.0.83
	guest ok = no
	nfs4:mode = special
	nfs4:acedup = merge
	nfs4:chown = true
	zfsacl:acesort = dontcare


[scivius]
	path = "/mnt/RAID-Z2/scivius"
	printable = no
	veto files = /.snapshot/.windows/.mac/.zfs/
	writeable = yes
	browseable = yes
	vfs objects = zfs_space zfsacl streams_xattr aio_pthread
	hide dot files = yes
	hosts allow = 10.90.0.6 10.90.0.5
	guest ok = no
	nfs4:mode = special
	nfs4:acedup = merge
	nfs4:chown = true
	zfsacl:acesort = dontcare

 
Status
Not open for further replies.
Top