openWRT 自带 busybox 的 netstat 命令查看端口

Usage: netstat [-ral] [-tuwx] [-enW]

Display networking information

Options:

-r      Routing table
-a      All sockets
-l      Listening sockets
        Else: connected sockets
-t      TCP sockets
-u      UDP sockets
-w      Raw sockets
-x      Unix sockets
        Else: all socket types
-e      Other/more information
-n      Don't resolve names
-W      Wide display

    

显示正在监听的 tcp, udp 端口

netstat -ltue

不解析常见的端口, 直接以数字显示

netstat -ltuen

标签: none

添加新评论