- 论坛徽章:
- 0
|
0.0.0.0 代表所有的ipv4地址。
::: 代表所有的ipv4地址及ipv6地址
对比一下我的,192.168.10.54 是eth0, 127.0.0.1 是loopback ,另外还有一个ipv6地址2001:470:1f03:1a4::2
- [tiantian@ localhost ~]$netstat -nlt
- Active Internet connections (only servers)
- Proto Recv-Q Send-Q Local Address Foreign Address State
- tcp 0 0 127.0.0.1:8000 0.0.0.0:* LISTEN
- tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
- tcp 0 0 192.168.10.54:3128 0.0.0.0:* LISTEN
- tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
- tcp 0 0 2001:470:1f03:1a4::2:53 :::* LISTEN
- tcp 0 0 :::22 :::* LISTEN
- tcp 0 0 :::23 :::* LISTEN
- tcp 0 0 ::1:953 :::* LISTEN
复制代码
以上说明,
只在127.0.0.1 上打开8000端口
在所有ipv4/ipv6地址上打开22/23端口。(telnet/ssh)
在127.0.0.1/::1 上打开953端口,::1 是ipv6地址,相当于ipv4中的127.0.0.1 (rndc)
在2001:470:1f03:1a4::2 打开了53端口(bind)
在192.168.10.54 上打开了3128端口 (squid) |
|