我的服务器是运行 CentOS 7 的机器samba-4.10.4-11.el7_8.x86_64
服务器正在侦听 IPv4 和 IPv6
tcp6 0 0 :::445 :::* LISTEN 1332/smbd
tcp6 0 0 :::139 :::* LISTEN
我有一台 Windows XP 虚拟机和一台 Windows 10 笔记本电脑。我在XP机器上进行测试,但在Win10上得到同样的错误。
我可以通过 IPv4 查看服务器:
C:\Documents and Settings\sweh>net view \\mercury7.spuddy.org
Shared resources at \\mercury7.spuddy.org
Mercury7
Share name Type Used as Comment
-------------------------------------------------------------------------------
gluster-gluster Disk For samba share of volume gluster
phone_media Disk Media to sync from phone
profiles Disk
scans Disk Scans from printer
sweh Disk
The command completed successfully.
但是,如果我尝试通过 IPv6 执行相同操作,则会收到错误 53:
C:\Documents and Settings\sweh>net view \\mercury7-g.spuddy.org
System error 53 has occurred.
The network path was not found.
(“-g”地址只有 AAAA 记录才能强制使用 IPv6)。
tcpdump port 445
在服务器上执行 a显示 IPv6 上根本没有收到任何流量,但 IPv4 上有大量流量
我知道 XP 机器可以通过 IPv6 查看服务器,因为它可以 ping
C:\Documents and Settings\sweh>ping mercury7-g.spuddy.org
Pinging mercury7-g.spuddy.org [2001:470:1f07:dc4:5054:ff:fe01:4462] with 32 byte
s of data:
Reply from 2001:470:1f07:dc4:5054:ff:fe01:4462: time<1ms
Reply from 2001:470:1f07:dc4:5054:ff:fe01:4462: time<1ms
Reply from 2001:470:1f07:dc4:5054:ff:fe01:4462: time<1ms
Reply from 2001:470:1f07:dc4:5054:ff:fe01:4462: time<1ms
Ping statistics for 2001:470:1f07:dc4:5054:ff:fe01:4462:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
也没有适当的防火墙或网络过滤器,因为 atelnet mercury7-g.spuddy.org 445
建立了连接,我们可以在tcpdump
输出中看到它。
21:51:44.464354 IP6 2001:470:1f07:dc4:29e1:3fe3:d78d:be96.ssowatch > 2001:470:1f07:dc4:5054:ff:fe01:4462.microsoft-ds: Flags [S], seq 2141766495, win 16384, options [mss 1440], length 0
21:51:44.464403 IP6 2001:470:1f07:dc4:5054:ff:fe01:4462.microsoft-ds > 2001:470:1f07:dc4:29e1:3fe3:d78d:be96.ssowatch: Flags [S.], seq 1600713291, ack 2141766496, win 28800, options [mss 1440], length 0
21:51:44.464776 IP6 2001:470:1f07:dc4:29e1:3fe3:d78d:be96.ssowatch > 2001:470:1f07:dc4:5054:ff:fe01:4462.microsoft-ds: Flags [.], ack 1, win 17280, length 0
所以似乎有什么东西坏了前网络层net view
甚至阻止与网络通信。
我该从哪里开始寻找呢?