linux firewalld tcp6,linux – netstat,正确列出连接

我有2台机器

A 192.168.0.40 (CentOS)

B 192.168.0.41 (Debian)

Gateway 192.168.0.2

现在我确实使用firewallD设置了一个端口转发

A port 2245

to

B port 22

通过机器A从客户端192.168.0.1到机器B建立连接

在机器A上运行netstat

# netstat -tulpane

输出:

# netstat -tulpane

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name

tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 16330 1/systemd

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 20510 1273/sshd

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 0 21452 1841/master

tcp 0 0 192.168.0.40:22 192.168.0.1:64870 ESTABLISHED 0 142436 4598/sshd: root@

tcp 0 0 192.168.0.40:22 192.168.0.1:59846 ESTABLISHED 0 22169 2480/sshd: root

tcp 0 64 192.168.0.40:22 192.168.0.1:65139 ESTABLISHED 0 146378 4782/sshd: root@

tcp 0 0 192.168.0.40:22 192.168.0.1:65095 ESTABLISHED 0 145904 4756/sshd: root@

tcp 0 0 192.168.0.40:22 192.168.0.1:65024 ESTABLISHED 0 145298 4704/sshd: root@

tcp6 0 0 :::111 :::* LISTEN 0 16329 1/systemd

tcp6 0 0 :::22 :::* LISTEN 0 20519 1273/sshd

tcp6 0 0 ::1:25 :::* LISTEN 0 21453 1841/master

udp 0 0 127.0.0.1:323 0.0.0.0:* 997 16978 782/chronyd

udp 0 0 0.0.0.0:922 0.0.0.0:* 0 41344 2868/rpcbind

udp 0 0 0.0.0.0:111 0.0.0.0:* 0 41343 2868/rpcbind

udp6 0 0 ::1:323 :::* 997 16979 782/chronyd

udp6 0 0 :::922 :::* 0 41346 2868/rpcbind

udp6 0 0 :::111 :::* 0 41345 2868/rpcbind

问题:为什么我在连接中看不到机器B?我该怎么做才能看到它?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值