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