{"id":3630,"date":"2020-11-11T01:10:55","date_gmt":"2020-11-11T07:10:55","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=3630"},"modified":"2020-11-11T01:10:56","modified_gmt":"2020-11-11T07:10:56","slug":"ufw-allow-icmp-ping-traffic","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/ufw-allow-icmp-ping-traffic\/","title":{"rendered":"UFW Allow ICMP (ping) Traffic"},"content":{"rendered":"\n<p><a href=\"https:\/\/askubuntu.com\/questions\/6995\/how-to-enable-ufw-firewall-to-allow-icmp-response\">https:\/\/askubuntu.com\/questions\/6995\/how-to-enable-ufw-firewall-to-allow-icmp-response<\/a><\/p>\n\n\n\n<p>Open up the UFW before.rules config file<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vi \/etc\/ufw\/before.rules <\/pre>\n\n\n\n<p>And make sure you have these rules in it<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># ok icmp codes for INPUT\n-A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT\n-A ufw-before-input -p icmp --icmp-type time-exceeded -j ACCEPT\n-A ufw-before-input -p icmp --icmp-type parameter-problem -j ACCEPT\n-A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT\n# ok icmp code for FORWARD\n-A ufw-before-forward -p icmp --icmp-type destination-unreachable -j ACCEPT\n-A ufw-before-forward -p icmp --icmp-type time-exceeded -j ACCEPT\n-A ufw-before-forward -p icmp --icmp-type parameter-problem -j ACCEPT\n-A ufw-before-forward -p icmp --icmp-type echo-request -j ACCEPT<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/askubuntu.com\/questions\/6995\/how-to-enable-ufw-firewall-to-allow-icmp-response Open up the UFW before.rules config file vi \/etc\/ufw\/before.rules And make sure you have these rules in it # ok icmp codes for INPUT -A ufw-before-input -p icmp &#8211;icmp-type destination-unreachable -j ACCEPT -A ufw-before-input -p icmp &#8211;icmp-type time-exceeded -j &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/ufw-allow-icmp-ping-traffic\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[160,7,49,416],"class_list":["post-3630","post","type-post","status-publish","format-standard","hentry","category-linux","tag-firewall","tag-linux-2","tag-ubuntu-2","tag-ufw"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=3630"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3630\/revisions"}],"predecessor-version":[{"id":3631,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3630\/revisions\/3631"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=3630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=3630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=3630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}