怎样查看本机的端口状态?谢谢

时间:2022-04-11 05:10:17
我装了天网防火墙,它经常会警告:
   接收到 192.168.1.1 的 UDP 数据包,
           本机端口: 1900 ,
           对方端口: 1900 
           继续下一规则。
发送到 219.133.40.15 的 UDP 数据包,
           本机端口: 6000 ,
           对方端口: OICQ Server[8000] 
           继续下一规则。
接收到 61.144.238.150 的 UDP 数据包,
           本机端口: OICQ Client[4000] ,
           对方端口: OICQ Server[8000] 
           继续下一规则。
……诸如此类的信息,什么意思?有安全隐患吗?其中192.168.1.1 是我们的路由器
 
还有我想特别问一下怎样查看自己的端口开没开?是不是可以看到有那一台机正在连接,在干什么的?
谢谢

14 个解决方案

#1


本机的 1087 端口断开 211.157.102.21 的连接,
           TCP标志:  R   
           继续下一规则。
还有就是,这些端口的用途是什么?

#2


一般不要打开天网的tcp包监视,会烦死你的!

好像你这些都算是正常的连接吧.......

#3


运行-> cmd-> netstat -na 查看端口监听状态

#4


netstat -natp

#5


netstat -an
netstat -p

#6


netstat -an
或fport

#7



NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval]

  -a            Displays all connections and listening ports.
  -e            Displays Ethernet statistics. This may be combined with the -s
                option.
  -n            Displays addresses and port numbers in numerical form.
  -p proto      Shows connections for the protocol specified by proto; proto
                may be TCP or UDP.  If used with the -s option to display
                per-protocol statistics, proto may be TCP, UDP, or IP.
  -r            Displays the routing table.
  -s            Displays per-protocol statistics.  By default, statistics are
                shown for TCP, UDP and IP; the -p option may be used to specify
                a subset of the default.
  interval      Redisplays selected statistics, pausing interval seconds
                between each display.  Press CTRL+C to stop redisplaying
                statistics.  If omitted, netstat will print the current
                configuration information once.

#8


将规则里面的“UDP 数据包监视”前的勾去掉就行了。你这是正常的反映
netstat -na 查看端口监听状态

#9


运行-> cmd-> netstat -na 查看端口监听状态

或active port

#10


谢谢各位帮忙!
我还想问一下里面的参数表征什么?
例如:
Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1025           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1028           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:5000           0.0.0.0:0              LISTENING
  TCP    192.168.1.21:139       0.0.0.0:0              LISTENING   (这些有问题吗?listening是指自己在监控,还是别人在监控自己?为什么外地地址里显示为全0?还有下面的呢?麻烦解释一下)
  UDP    0.0.0.0:445            *:*
  UDP    0.0.0.0:500            *:*
  UDP    0.0.0.0:1032           *:*
  UDP    0.0.0.0:1077           *:*
  UDP    0.0.0.0:1998           *:*
  UDP    0.0.0.0:4000           *:*
  UDP    0.0.0.0:6000           *:*
  UDP    127.0.0.1:123          *:*
  UDP    127.0.0.1:1044         *:*
  UDP    127.0.0.1:1900         *:*
  UDP    127.0.0.1:2508         *:*
  UDP    192.168.1.21:123       *:*
  UDP    192.168.1.21:137       *:*
  UDP    192.168.1.21:138       *:*
  UDP    192.168.1.21:1900      *:*

#11


说明:192.168.1.21是我在局域网里的IP

#12


接收到 192.168.1.1 的 UDP 数据包,
           本机端口: 1900 ,
           对方端口: 1900 
           继续下一规则。
发送到 219.133.40.15 的 UDP 数据包,
           本机端口: 6000 ,
           对方端口: OICQ Server[8000] 
           继续下一规则。
--------------------------------------------------------------
这是你打开了天网UDP数据包监视规则,实在没必要!!
后面你的贴图,解释如下:
0.0.0.0 是指所有网络适配器
LISTEN:监听
ESTABLISHED:已经连接
CLOSE_WAIT:关闭连接



#13


关闭某些端口用什么命令呢?

#14


netstat -na

#1


本机的 1087 端口断开 211.157.102.21 的连接,
           TCP标志:  R   
           继续下一规则。
还有就是,这些端口的用途是什么?

#2


一般不要打开天网的tcp包监视,会烦死你的!

好像你这些都算是正常的连接吧.......

#3


运行-> cmd-> netstat -na 查看端口监听状态

#4


netstat -natp

#5


netstat -an
netstat -p

#6


netstat -an
或fport

#7



NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval]

  -a            Displays all connections and listening ports.
  -e            Displays Ethernet statistics. This may be combined with the -s
                option.
  -n            Displays addresses and port numbers in numerical form.
  -p proto      Shows connections for the protocol specified by proto; proto
                may be TCP or UDP.  If used with the -s option to display
                per-protocol statistics, proto may be TCP, UDP, or IP.
  -r            Displays the routing table.
  -s            Displays per-protocol statistics.  By default, statistics are
                shown for TCP, UDP and IP; the -p option may be used to specify
                a subset of the default.
  interval      Redisplays selected statistics, pausing interval seconds
                between each display.  Press CTRL+C to stop redisplaying
                statistics.  If omitted, netstat will print the current
                configuration information once.

#8


将规则里面的“UDP 数据包监视”前的勾去掉就行了。你这是正常的反映
netstat -na 查看端口监听状态

#9


运行-> cmd-> netstat -na 查看端口监听状态

或active port

#10


谢谢各位帮忙!
我还想问一下里面的参数表征什么?
例如:
Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1025           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:1028           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:5000           0.0.0.0:0              LISTENING
  TCP    192.168.1.21:139       0.0.0.0:0              LISTENING   (这些有问题吗?listening是指自己在监控,还是别人在监控自己?为什么外地地址里显示为全0?还有下面的呢?麻烦解释一下)
  UDP    0.0.0.0:445            *:*
  UDP    0.0.0.0:500            *:*
  UDP    0.0.0.0:1032           *:*
  UDP    0.0.0.0:1077           *:*
  UDP    0.0.0.0:1998           *:*
  UDP    0.0.0.0:4000           *:*
  UDP    0.0.0.0:6000           *:*
  UDP    127.0.0.1:123          *:*
  UDP    127.0.0.1:1044         *:*
  UDP    127.0.0.1:1900         *:*
  UDP    127.0.0.1:2508         *:*
  UDP    192.168.1.21:123       *:*
  UDP    192.168.1.21:137       *:*
  UDP    192.168.1.21:138       *:*
  UDP    192.168.1.21:1900      *:*

#11


说明:192.168.1.21是我在局域网里的IP

#12


接收到 192.168.1.1 的 UDP 数据包,
           本机端口: 1900 ,
           对方端口: 1900 
           继续下一规则。
发送到 219.133.40.15 的 UDP 数据包,
           本机端口: 6000 ,
           对方端口: OICQ Server[8000] 
           继续下一规则。
--------------------------------------------------------------
这是你打开了天网UDP数据包监视规则,实在没必要!!
后面你的贴图,解释如下:
0.0.0.0 是指所有网络适配器
LISTEN:监听
ESTABLISHED:已经连接
CLOSE_WAIT:关闭连接



#13


关闭某些端口用什么命令呢?

#14


netstat -na