linux下netstat -an看到的列表中IP是空的,这是什么意思?

llzhe 2017-09-21 03:43:37
如题:
tcp6 0 0 [::]:10053 [::]:* LISTEN
tcp6 0 0 [::]:9094 [::]:* LISTEN
tcp6 0 0 [::]:xinetd [::]:* LISTEN
tcp6 0 0 [::]:7051 [::]:* LISTEN
tcp6 0 0 [::]:7053 [::]:* LISTEN
tcp6 0 0 [::]:7054 [::]:* LISTEN
tcp6 0 0 [::]:50000 [::]:* LISTEN
tcp6 0 0 [::]:8054 [::]:* LISTEN
tcp6 0 0 [::]:9050 [::]:* LISTEN
tcp6 0 0 [::]:9051 [::]:* LISTEN
tcp6 0 0 [::]:9053 [::]:* LISTEN
tcp6 0 0 [::]:zabbix-trapper [::]:* LISTEN
tcp6 0 0 [::]:9092 [::]:* LISTEN
...全文
799 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
llzhe 2017-09-21
  • 打赏
  • 举报
回复
iptables 执行如下: root@iZ2zef1hubdcrpqe132hx4Z:~# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy DROP) target prot opt source destination DOCKER-USER all -- anywhere anywhere DOCKER-ISOLATION all -- anywhere anywhere ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED DOCKER all -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED DOCKER all -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED DOCKER all -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain DOCKER (3 references) target prot opt source destination ACCEPT tcp -- anywhere 192.168.32.2 tcp dpt:7054 ACCEPT tcp -- anywhere 192.168.32.3 tcp dpt:7053 ACCEPT tcp -- anywhere 192.168.32.3 tcp dpt:7051 ACCEPT tcp -- anywhere 192.168.32.4 tcp dpt:7054 ACCEPT tcp -- anywhere 192.168.32.5 tcp dpt:7053 ACCEPT tcp -- anywhere 192.168.32.5 tcp dpt:7051 ACCEPT tcp -- anywhere 192.168.32.7 tcp dpt:7053 ACCEPT tcp -- anywhere 192.168.32.7 tcp dpt:7051 ACCEPT tcp -- anywhere 192.168.32.11 tcp dpt:9092 ACCEPT tcp -- anywhere 192.168.32.12 tcp dpt:9092 ACCEPT tcp -- anywhere 192.168.32.13 tcp dpt:9092 ACCEPT tcp -- anywhere 192.168.32.16 tcp dpt:7050 Chain DOCKER-ISOLATION (1 references) target prot opt source destination DROP all -- anywhere anywhere DROP all -- anywhere anywhere DROP all -- anywhere anywhere DROP all -- anywhere anywhere DROP all -- anywhere anywhere DROP all -- anywhere anywhere RETURN all -- anywhere anywhere Chain DOCKER-USER (1 references) target prot opt source destination RETURN all -- anywhere anywhere
llzhe 2017-09-21
  • 打赏
  • 举报
回复
两台机器的ip肯定时可达的,因为两台机器在远程登陆, 端口应该也是放行的,所有端口都没有限制。
X-i-n 2017-09-21
  • 打赏
  • 举报
回复
还有selinux
X-i-n 2017-09-21
  • 打赏
  • 举报
回复
检查两个地方,一个是网络通不通,一个是端口开没开。 先检查客户端到这个IP之间,是不是可达,再到iptables或者firewalld检查一下,有没有把端口放行。
llzhe 2017-09-21
  • 打赏
  • 举报
回复
但是我在别的机器上去telnet 这个ip 的50000端口时,telnet不通啊。
X-i-n 2017-09-21
  • 打赏
  • 举报
回复
LISTEN状态,这不是一条存在的连接,只是一个侦听,表示系统在这些端口上等待客户端来连接

4,356

社区成员

发帖
与我相关
我的任务
社区描述
通信技术相关讨论
社区管理员
  • 网络通信
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧