Last active
June 4, 2019 11:27
-
-
Save linxiaobai/3f5841a2a2e348e30f7b195c37455bc9 to your computer and use it in GitHub Desktop.
tcpkill
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo tcpkill -i en0 "host ${ip} and port ${port}" | |
ip:连接对端地址 | |
port:连接对端端口 | |
执行完会反复kill掉tcp连接,模拟连接异常情况 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment