{"id":3790,"date":"2021-07-16T11:01:08","date_gmt":"2021-07-16T11:01:08","guid":{"rendered":"https:\/\/obambu.com\/guide\/?p=3790"},"modified":"2021-08-02T09:57:22","modified_gmt":"2021-08-02T09:57:22","slug":"ping-of-death-what-is-it-and-how-it-works","status":"publish","type":"post","link":"https:\/\/obambu.com\/guide\/ping-of-death-what-is-it-and-how-it-works\/","title":{"rendered":"Ping of death | What is it and how it works"},"content":{"rendered":"\n<p>The <strong>Ping of Death<\/strong> is a DOS <strong>(Denial Of Service)<\/strong> attack that causes exposed systems to crash and become unstable.<\/p>\n\n\n\n<p>This type of attack originated from a bug that was found in the <strong>TCP framework<\/strong> of several OS in the late 90s. if you sent a packet larger than 65535 bytes to a device it would make it <strong>crash<\/strong> and unstable. <\/p>\n\n\n\n<p>These types of attacks became very popular because the attacker\u00b4s identity could be easily concealed. Although modern new devices are patched and nearly <strong>immune<\/strong> to these types of attacks it\u00b4s still something useful to know.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How it works<\/h2>\n\n\n\n<p>The first thing an attacker will do to carry out the assault is create an<a href=\"https:\/\/www.cloudflare.com\/es-es\/learning\/ddos\/glossary\/internet-control-message-protocol-icmp\/\" target=\"_blank\" rel=\"noreferrer noopener\"> <\/a><strong><a href=\"https:\/\/www.cloudflare.com\/es-es\/learning\/ddos\/glossary\/internet-control-message-protocol-icmp\/\" target=\"_blank\" rel=\"noreferrer noopener\">ICMP<\/a> package<\/strong> larger than the 65535 bytes allowed. To do this, the attacker will use the ping command on the command line and create the package.<\/p>\n\n\n\n<p>Here is how a ping of death looks on windows and Linux:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Windows Ping of Death<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>ping &lt;ip address&gt; -1 65500 -w 1 -n 1<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Linux Ping of Death<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>ping &lt;ip address&gt; -s 65500 -t 1 -n 1<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to stop the Ping of Death<\/h2>\n\n\n\n<p>To avoid these attacks, many sites <strong>block ICMP<\/strong> ping messages on their firewalls. But this isn\u00b4t a good long-term solution. Blocking Ping messages ultimately impedes you from <strong>Ping<\/strong> use, which can be useful for checking that <a href=\"https:\/\/obambu.com\/en\/build-your-website\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>site<\/strong><\/a> connections are live.<\/p>\n\n\n\n<p> Another option you have is to block or allow ping from iptables:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to block or allow ping from iptables:<\/h3>\n\n\n\n<p>Iptables are a command line firewall that allows or blocks ip traffic.<\/p>\n\n\n\n<p>To install iptables through Linux you type the following command  on you terminal:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt-get install iptables<\/pre>\n\n\n\n<p>Then type the following command to verify the instalation was successful:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ iptables --version<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Blocking Ping<\/h4>\n\n\n\n<p>To block pings from and to the server, type the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo iptables -A INPUT -p icmp --icmp-type echo-request -j REJECT<\/pre>\n\n\n\n<p>An error message should appear. If you don\u00b4t want this to happen, then <strong>add these<\/strong> <strong>commands<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo iptables -A INPUT -p icmp --icmp-type echo-request -j DROP\n$ sudo iptables -A OUTPUT -p icmp --icmp-type echo-reply -j DROP<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Allowing Ping<\/h4>\n\n\n\n<p>This command lists all the rules added to the iptables:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo iptables -L<\/pre>\n\n\n\n<p>If any of the commands are blocking ping, you can<strong> remove it <\/strong>typing this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo iptables -D INPUT -p icmp --icmp-type echo-request -j REJECT<\/pre>\n\n\n\n<p>You can also<strong> delete all custom commands<\/strong> thar were added on the iptables Firewall with this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo iptables -F<\/pre>\n\n\n\n<p>With all of these commands, you now know how to <strong>control the Firewall<\/strong> to manage Ping.<\/p>\n\n\n\n<p>But there\u00b4s no reason to worry. Nowadays suspicious packets are IP examined and ensure that the length is less than 65535 bytes. If not, the package will be <strong>rejected<\/strong> and filtered out of the network.<\/p>\n\n\n\n<p>Also, adjustments and updates to software and hardware over the years means modern devices check to make sure that the packet size isn\u00b4t exceeded when joining IP fragments. This makes modern day devices basically immune to these types of attack.<\/p>\n\n\n\n<p>So don\u00b4t worry, you can rest easy knowing that the <strong>Ping of Death<\/strong> is a thing of the past and your device is safe (for now).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Ping of Death is a DOS (Denial Of Service) attack that causes exposed systems to crash and become unstable. This type of attack originated from a bug that was found in the TCP framework of several OS in the late 90s. if you sent a packet larger than 65535 bytes to a device it<\/p>\n","protected":false},"author":2,"featured_media":3791,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":{"0":"post-3790","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-web-hosting"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.6.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ping of death | What is it and how it works - Obambu Guide | Navigating the Web Hosting World<\/title>\n<meta name=\"description\" content=\"The Ping of Death is a DOS attack that causes exposed systems to crash. It originated from a TCP bug that was discovered in the late 90s.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/obambu.com\/guide\/ping-of-death-what-is-it-and-how-it-works\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ping of death | What is it and how it works - Obambu Guide | Navigating the Web Hosting World\" \/>\n<meta property=\"og:description\" content=\"The Ping of Death is a DOS attack that causes exposed systems to crash. It originated from a TCP bug that was discovered in the late 90s.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/obambu.com\/guide\/ping-of-death-what-is-it-and-how-it-works\/\" \/>\n<meta property=\"og:site_name\" content=\"Obambu Guide | Navigating the Web Hosting World\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-16T11:01:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-02T09:57:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/obambu.com\/guide\/wp-content\/uploads\/2021\/07\/jjpqavjby_k.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"1103\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/obambu.com\/guide\/#website\",\"url\":\"https:\/\/obambu.com\/guide\/\",\"name\":\"Obambu Guide | Navigating the Web Hosting World\",\"description\":\"Explore dozens of tutorials and how-to guides on Obambu Guide. Learn, Build, Grow!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/obambu.com\/guide\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/obambu.com\/guide\/ping-of-death-what-is-it-and-how-it-works\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/obambu.com\/guide\/wp-content\/uploads\/2021\/07\/jjpqavjby_k.jpg\",\"contentUrl\":\"https:\/\/obambu.com\/guide\/wp-content\/uploads\/2021\/07\/jjpqavjby_k.jpg\",\"width\":1600,\"height\":1103,\"caption\":\"Ping of Death\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/obambu.com\/guide\/ping-of-death-what-is-it-and-how-it-works\/#webpage\",\"url\":\"https:\/\/obambu.com\/guide\/ping-of-death-what-is-it-and-how-it-works\/\",\"name\":\"Ping of death | What is it and how it works - Obambu Guide | Navigating the Web Hosting World\",\"isPartOf\":{\"@id\":\"https:\/\/obambu.com\/guide\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/obambu.com\/guide\/ping-of-death-what-is-it-and-how-it-works\/#primaryimage\"},\"datePublished\":\"2021-07-16T11:01:08+00:00\",\"dateModified\":\"2021-08-02T09:57:22+00:00\",\"author\":{\"@id\":\"https:\/\/obambu.com\/guide\/#\/schema\/person\/7cfedd97f012c03c8c95528885e359e2\"},\"description\":\"The Ping of Death is a DOS attack that causes exposed systems to crash. It originated from a TCP bug that was discovered in the late 90s.\",\"breadcrumb\":{\"@id\":\"https:\/\/obambu.com\/guide\/ping-of-death-what-is-it-and-how-it-works\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/obambu.com\/guide\/ping-of-death-what-is-it-and-how-it-works\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/obambu.com\/guide\/ping-of-death-what-is-it-and-how-it-works\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/obambu.com\/guide\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ping of death | What is it and how it works\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/obambu.com\/guide\/#\/schema\/person\/7cfedd97f012c03c8c95528885e359e2\",\"name\":\"Alejandro Prieto\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/obambu.com\/guide\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/obambu.com\/guide\/wp-content\/uploads\/2021\/07\/20200731_145844.jpg\",\"contentUrl\":\"https:\/\/obambu.com\/guide\/wp-content\/uploads\/2021\/07\/20200731_145844.jpg\",\"caption\":\"Alejandro Prieto\"},\"url\":\"https:\/\/obambu.com\/guide\/author\/alejandro\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/posts\/3790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/comments?post=3790"}],"version-history":[{"count":3,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/posts\/3790\/revisions"}],"predecessor-version":[{"id":3892,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/posts\/3790\/revisions\/3892"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/media\/3791"}],"wp:attachment":[{"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/media?parent=3790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/categories?post=3790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/obambu.com\/guide\/wp-json\/wp\/v2\/tags?post=3790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}