{"id":2840,"date":"2019-10-23T14:51:08","date_gmt":"2019-10-23T06:51:08","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&p=2840"},"modified":"2022-10-05T08:01:17","modified_gmt":"2022-10-05T00:01:17","slug":"why-is-cloudflare-attacking-me","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/why-is-cloudflare-attacking-me","title":{"rendered":"Why does Cloudflare attacking me?"},"content":{"rendered":"\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t

Why does Cloudflare Attacking Me?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

There are two circumstances where it will appear that Cloudflare is attacking you, when Cloudflare would not be sending any attack traffic at all.\u00a0<\/p>

1. You’re a Cloudflare customer with a domain on Cloudflare.<\/strong> Since we are a reverse proxy for sites using our service, our IPs are going to show in your server logs until you install something on your server to restore original visitor IP (mod_cloudflare for Apache servers, for example).<\/p>

Solutions for Apache, Nginx & other servers.<\/p>

2. You’re getting attacks from Cloudflare’s IPs because they are being spoofed.<\/strong> Cloudflare does not send traffic over anything other than http:\/\/ (ports 80 and443), so getting attacked by UDP requests means you probably have an open recursor on your DNS server that is helping with a DNS amplification attack. You should\u00a0secure your server to prevent these DNS attacks.<\/p>

How DNS Amplification Attacks Work<\/p>

If your situation does not fit any of the circumstances listed above, please provide the information requested below and we can provide solutions for handling an issue that looks like an attack from us.<\/p>

Required information to investigate:<\/p>

source IP(s) you are seeing the traffic from<\/p>

destination IP(s) on their side<\/p>

IP packet contents
(if possible) tcpdump output in -vvv -s0 -n format<\/p>

If you have additional questions, contact your recursive DNS provider (i.e. OpenDNS or Google DNS). If you are not sure who your recursive DNS provider is then it is most likely your ISP providing recursive DNS services.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"

Why does Cloudflare Attacking Me? There are two circumstances where it will appear that Cloudflare is attacking you, when Cloudflare would not be sending any attack traffic at all.\u00a0 1. You’re a Cloudflare customer with a domain on Cloudflare. Since we are a reverse proxy for sites using our service, our IPs are going to …<\/p>\n

Why does Cloudflare attacking me?<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[53],"kbtag":[110],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2840"}],"collection":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/comments?post=2840"}],"version-history":[{"count":7,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2840\/revisions"}],"predecessor-version":[{"id":21936,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2840\/revisions\/21936"}],"wp:attachment":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/media?parent=2840"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=2840"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtag?post=2840"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=2840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}