0%

udp端口监测

CentOS 环境

安装 udp 监测工具 netcat

1
$ sudo yum install nc

监听端口

1
2
3
4
5
6
$ nc -vul localhost 1080
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Listening on ::1:1080
Ncat: Connection from ::1.
123
1233

发送数据

1
2
3
4
5
$ nc -vu localhost 1080
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to ::1:1080.
123
1233