我似乎无法访问这些服务。使用 VMWare Fusion启动下载的VM 映像(在 Mac OS X 10.8.2 上)
ifconfig
返回以下内容:
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:50:56:25:fd:9a
inet6 dc20:c7f:2012:12::7 prefixlen 64
inet6 fe80::250:56ff:fe25:fd9a%em1 prefixlen 64 scopeid 0x3
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
[root@dc20 ~]# sockstat -6
:
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root cashew 1447 3 tcp6 dc20:c7f:2012:12::7:7979 *:*
root cherry 1443 3 tcp6 dc20:c7f:2012:12::7:24359 *:*
root coney 1439 3 tcp6 dc20:c7f:2012:12::7:65214 *:*
root dealer 1435 4 tcp6 dc20:c7f:2012:12::7:8888 *:*
root desheepd 1431 3 udp6 dc20:c7f:2012:12::7:547 *:*
root dog 1427 3 tcp6 *:3146 *:*
root gallows 1415 3 tcp6 dc20:c7f:2012:12::7:6666 *:*
root jerkin 1395 3 tcp6 dc20:c7f:2012:12::7:63715 *:*
root mixology 1387 3 tcp6 dc20:c7f:2012:12::7:35575 *:*
root nancy 1379 3 tcp6 dc20:c7f:2012:12::7:57554 *:*
root nom 1370 3 tcp6 dc20:c7f:2012:12::7:7368 *:*
nssds nssds 1366 3 tcp6 dc20:c7f:2012:12::7:54339 *:*
root ocrd 1362 4 tcp6 dc20:c7f:2012:12::7:31967 *:*
root parrot 1357 3 tcp6 *:5160 *:*
root ralph 1353 3 tcp6 dc20:c7f:2012:12::7:57553 *:*
scool scool 1349 3 tcp6 *:4637 *:*
root semem 1332 3 tcp6 dc20:c7f:2012:12::7:6941 *:*
root sshd 1316 3 tcp6 *:22 *:*
tictactoe tictactoe 1223 3 tcp6 dc20:c7f:2012:12::7:25375 *:*
_ngircd ngircd 1210 10 tcp6 ::1:6667 *:*
_ngircd ngircd 1210 11 tcp6 ::1:6668 *:*
_ngircd ngircd 1210 12 tcp6 ::1:6669 *:*
_ngircd ngircd 1210 13 tcp6 dc20:c7f:2012:12::7:6667 *:*
_ngircd ngircd 1210 14 tcp6 dc20:c7f:2012:12::7:6668 *:*
_ngircd ngircd 1210 15 tcp6 dc20:c7f:2012:12::7:6669 *:*
root zul 1083 3 tcp6 dc20:c7f:2012:12::7:25201 *:*
root syslogd 1057 6 udp6 *:514 *:*
但我似乎无法连接到 dc20:c7f:2012:12::7: 形式的任何服务,例如,能够向/从semem
dc20:c7f:2012 上运行的服务发送/接收:12::7,端口 6941
我已经尝试过基本的东西,比如ping6
andtelnet -6
和netcat
/ nmap
,还有 python 套接字,但它们似乎无法连接(超时)。
其他 *: 服务运行良好。
我从谷歌搜索结果中读到这dc20:c7f:2012:12::7:6941
意味着该服务绑定到与 ipv6 地址 'dc20:c7f:2012:12::7' 关联的接口,即。(虚拟)网络接口em1
,也称为替代地址,因此为了能够与服务通信,我首先必须创建一个套接字,将套接字绑定到与该接口关联的地址,然后然后从这个接口发送到服务,但在代码中尝试似乎对我仍然不起作用。
请指导一下?希望在 Python 中进行一些套接字编程。
反映在reddit评论中