在Linux上用socat进行网络环境测试 用lsof netstat检测端口占用
在搭梯子的过程中,有可能会遇到奇怪的事情。比如,搭在IPv6上面能成功,搭在IPv4上面就是不行。我们可以使用socat进行网络环境测试,用lsof netstat检测端口占用,排除梯子配置参数错了之类的影响。
参考
https://thiscute.world/posts/socat-netcat/
https://www.runoob.com/w3cnote/linux-check-port-usage.html
安装
apt install -y socat
评论
发表评论