{"id":266,"date":"2016-05-20T00:59:08","date_gmt":"2016-05-20T00:59:08","guid":{"rendered":"http:\/\/softinite.com\/?p=266"},"modified":"2016-05-20T01:39:51","modified_gmt":"2016-05-20T01:39:51","slug":"traffic-throttling-using-iptables","status":"publish","type":"post","link":"http:\/\/softinite.com\/?p=266","title":{"rendered":"Traffic throttling using iptables"},"content":{"rendered":"<p>It can be useful in certain cases to limit the frequency of certain request as described <a href=\"https:\/\/debian-administration.org\/article\/187\/Using_iptables_to_rate-limit_incoming_connections\">here<\/a>.<\/p>\n<p>Key code:<\/p>\n<pre>iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent \\\r\n  --set\r\n\r\niptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent \\\r\n  --update --seconds 60 --hitcount 4 -j DROP\r\n\r\nTo view existing rules and\/or delete existing one, one can use <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-list-and-delete-iptables-firewall-rules\">these<\/a> instructions.<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>It can be useful in certain cases to limit the frequency of certain request as described <a href=\"https:\/\/debian-administration.org\/article\/187\/Using_iptables_to_rate-limit_incoming_connections\">here<\/a>.<\/p>\n<p>Key code:<\/p>\n<p>iptables -I INPUT -p tcp &#8211;dport 22 -i eth0 -m state &#8211;state NEW -m recent \\<br \/>\n  &#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[13],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7uKYI-4i","_links":{"self":[{"href":"http:\/\/softinite.com\/index.php?rest_route=\/wp\/v2\/posts\/266"}],"collection":[{"href":"http:\/\/softinite.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/softinite.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/softinite.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/softinite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=266"}],"version-history":[{"count":4,"href":"http:\/\/softinite.com\/index.php?rest_route=\/wp\/v2\/posts\/266\/revisions"}],"predecessor-version":[{"id":270,"href":"http:\/\/softinite.com\/index.php?rest_route=\/wp\/v2\/posts\/266\/revisions\/270"}],"wp:attachment":[{"href":"http:\/\/softinite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/softinite.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=266"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/softinite.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}