我有一台连接到两个子网的 Isilon NAS。我可以从 Isilon 所在的同一子网顺利挂载 SMB 共享,但不能从另一个子网挂载。我的 IT 团队向我保证,端口 445(以及 139)在子网之间是开放的,没有任何 IP 限制。
奇怪的是,尽管我在 smbclient 命令中指定了 SMB2,但它似乎正在尝试使用端口 139 连接到 NAS,但无法连接。我使用 mtr 跟踪从客户端到 NAS 的端口 445 和 139,一切似乎都很好。
这是 smbclient 命令:
sudo smbclient //my.server/share -U DOMAIN/username%password -m SMB2 --debuglevel=5
输出如下:
doing parameter client min protocol = SMB2
doing parameter client max protocol = SMB3
doing parameter log level = 5
doing parameter workgroup = WORKGROUP
doing parameter server string = %h server (Samba, Ubuntu)
doing parameter interfaces = lo enp1s0
doing parameter bind interfaces only = yes
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter logging = file
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter server role = standalone server
doing parameter obey pam restrictions = yes
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = yes
doing parameter map to guest = bad user
doing parameter usershare allow guests = yes
pm_process() returned Yes
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface enp1s0 ip=<<client ipv6>> bcast= netmask=ffff:ffff:ffff:ffff::
added interface enp1s0 ip=<<client ipv4>> bcast=<<redacted ipv4>> netmask=255.255.255.224
Client started (version 4.15.13-Ubuntu).
Opening cache file at /run/samba/gencache.tdb
sitename_fetch: No stored sitename for realm ''
namecache_fetch: name my.server#20 found.
Connecting to <<server ipv6>> at port 445
convert_string_handle: E2BIG: convert_string(UTF-8,CP850): srclen=28 destlen=16 error: No more room
convert_string_handle: E2BIG: convert_string(UTF-8,CP850): srclen=25 destlen=16 error: No more room
Connecting to <<server ipv6>> at port 139
do_connect: Connection to my.server failed (Error NT_STATUS_IO_TIMEOUT)
知道为什么 smbclient 在这里使用端口 139 吗?