日常

测试记录

Posted by KK on January 10, 2025

问题记录

iperf IPv6下UDP灌包-P4问题

Windows

server iperf3 -s -i 1 -p 5201 client iperf3 -c 2023::12 -u -p5201 -t 500 -P4 加了-P4,iperf3就会有问题(tcp握手后,没有发出udp包) 并且如果之前udp灌包加了-P4失败,之后即使不加-P也不能成功,需要将对端iperf3进程重新登陆后,然后客户端才能基于不加-P的场景下灌包成功

确定占用端口的进程

netstat -ano | findstr :5201 // netstat -ano | findstr :5201 netstat -tuln | grep 5201 lsof -i :5201

taskkill -pid -f//kill -9

linux 防火墙启用端口

ufw allow 5201/udp 单个端口 ufw allow ssh/http/https ufw allow 1000:2000/udp 1000到2000 查看所有规则 ufw status numbered