Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想测试我的应用程序的健壮性。所以我想要一个 linux 命令,它会在几纳秒内丢弃几个数据包。我正在从多播 IP 端口接收这些数据包。
我发现了这个并且有效 iptables -A INPUT -m statistic --mode random --probability 0.01 -j DROP
iptables -A INPUT -m statistic --mode random --probability 0.01 -j DROP
要撤消此命令 iptables -D INPUT -m statistic --mode random --probability 0.01 -j DROP
iptables -D INPUT -m statistic --mode random --probability 0.01 -j DROP