{"id":1686,"date":"2016-11-24T19:18:57","date_gmt":"2016-11-24T18:18:57","guid":{"rendered":"http:\/\/www.daniel-ritter.de\/blog\/?p=1686"},"modified":"2024-05-13T01:09:57","modified_gmt":"2024-05-12T23:09:57","slug":"simulating-a-bad-connection-packet-loss-with-iptables","status":"publish","type":"post","link":"https:\/\/www.daniel-ritter.de\/blog\/simulating-a-bad-connection-packet-loss-with-iptables\/","title":{"rendered":"Simulating a bad connection \/ packet loss with iptables"},"content":{"rendered":"<p>This will randomly drop 60% of outgoing packages with a local process as source.<br \/>\nUse it for testing purposes or if you need a good laugh.<\/p>\n<pre>#!\/bin\/bash\r\niptables -A OUTPUT -m statistic --mode random --probability 0.6 -j DROP\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This will randomly drop 60% of outgoing packages with a local process as source. Use it for testing purposes or if you need a good laugh. #!\/bin\/bash iptables -A OUTPUT -m statistic &#8211;mode random &#8211;probability 0.6 -j DROP<\/p>\n","protected":false},"author":1,"featured_media":1894,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[227,224],"tags":[],"class_list":["post-1686","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-network"],"_links":{"self":[{"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/posts\/1686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/comments?post=1686"}],"version-history":[{"count":3,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/posts\/1686\/revisions"}],"predecessor-version":[{"id":1895,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/posts\/1686\/revisions\/1895"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/media\/1894"}],"wp:attachment":[{"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/media?parent=1686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/categories?post=1686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.daniel-ritter.de\/blog\/wp-json\/wp\/v2\/tags?post=1686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}