无法仅通过 netbios 别名访问 SMB 共享

无法仅通过 netbios 别名访问 SMB 共享

我们有一台老旧的 Win7 机器,曾被用作文件服务器。这台机器已经到了使用寿命的尽头,20 个用户的限制开始对我们造成严重影响。

我已经设置了 FreeNAS 服务器,并为其配置了自己的 NetBIOS 名称,并添加了旧服务器的 NetBIOS 名称作为别名。我在网络上看到了别名,但无法访问它,并且在尝试连接到别名时出现系统错误 53(未找到网络路径),但连接到定义的 NetBIOS 名称时一切正常。发生了什么?

编辑: 奇怪的是:即使我在 FreeNAS 网络界面中更改了 NetBIOS 名称,我仍然无法从新的 NetBIOS 名称访问它,但如果我将其改回来,一切都会正常。smb4.conf 已附加(请注意,它会不断被 FreeNAS 覆盖)

[global]
server min protocol = SMB2_02
server max protocol = SMB3
interfaces = 127.0.0.1 172.16.5.20
bind interfaces only = yes
encrypt passwords = yes
dns proxy = no
strict locking = no
oplocks = yes
deadtime = 15
max log size = 51200
max open files = 116768
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
null passwords = yes
acl allow execute always = true
dos filemode = yes
multicast dns register = yes
domain logons = yes
local master = yes
idmap config *: backend = tdb
idmap config *: range = 90000001-100000000
server role = standalone
netbios name = FREENAS
workgroup = NEXT_ADVANCE
security = user
create mask = 0666
directory mask = 0777
client ntlmv2 auth = yes
dos charset = CP437
unix charset = UTF-8
log level = 1
wins server = 172.16.1.2


[shareddocs]
path = "/mnt/freenas01-troyvm-pool01.prod/shareddocs"
printable = no
veto files = /.snapshot/.windows/.mac/.zfs/
writeable = yes
browseable = yes
access based share enum = no
shadow:snapdir = .zfs/snapshot
shadow:sort = desc
shadow:localtime = yes
shadow:format = auto-%Y%m%d.%H%M-2w
shadow:snapdirseverywhere = yes
vfs objects = shadow_copy2 zfs_space zfsacl streams_xattr
hide dot files = yes
guest ok = yes
guest only = yes
 nfs4:mode = special
nfs4:acedup = merge
nfs4:chown = true
zfsacl:acesort = dontcare

编辑2: 发现这实际上是由于旧服务器名称 (T_REX) 中有一个_,而这不是允许的字符。有没有办法允许共享名称中出现不允许的字符?

答案1

事实证明,FreeNAS/Windows 无法很好地处理共享名称本身中不允许的字符。我下班后四处奔波,更新了办公室中大约 25 台计算机上网络共享的 UNC 路径 -.-

相关内容