需要先yum安装:

yum install nc

启动TCP服务:

nc -l 80

 

 

启动一个udp协议端口:

nc -l -u 8888

监控udp数据包:

tcpdump -i eth1 -s 0 port 8888

客户端测试:

nc -vuz 10.42.160.231 8888

 

相关文章:

  • 2021-10-14
  • 2022-12-23
  • 2021-11-17
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-11-07
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2022-01-30
  • 2022-12-23
  • 2021-06-01
  • 2021-12-09
相关资源
相似解决方案