我有一台计算机,具有:
Linux superhost 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux
它在所有接口的端口80上运行Apache,并且未在中显示netstat -planA inet
,但是可以在netstat -planA inet6
以下位置意外地找到它:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp6 0 0 :::5672 :::* LISTEN 2402/beam.smp
tcp6 0 0 :::111 :::* LISTEN 1825/rpcbind
tcp6 0 0 :::9200 :::* LISTEN 2235/java
tcp6 0 0 :::80 :::* LISTEN 2533/apache2
tcp6 0 0 :::34611 :::* LISTEN 1856/rpc.statd
tcp6 0 0 :::9300 :::* LISTEN 2235/java
...
tcp6 0 0 10.0.176.93:80 10.0.76.98:53704 TIME_WAIT -
tcp6 0 0 10.0.176.93:80 10.0.76.98:53700 TIME_WAIT -
如上所述,我可以通过TCP4达到目的。但是,即使这些连接也列在下tcp6
。为什么?
1
所有IPv4地址都直接映射到IPv6地址(反之亦然)。请参阅:en.wikipedia.org/wiki/IPv6#IPv4-mapped_IPv6_addresses
—
Patrick