News for hackers. Stuff that matters.
Re:When the policeman becomes the criminal – how Cloudflare ... by luckylion on Friday September 03, 2021 @03:34PM (#28408409)
TLDR it's not an attack, CF isn't a criminal, he's a CF customer and sees traffic spikes with a curl useragent.
Re:When the policeman becomes the criminal – how Cloudflare ... by ceejayoz on Friday September 03, 2021 @03:41PM (#28408497)
Yeah, I'm not seeing much evidence of the allegations in this article. CloudFlare would be very, very stupid to have set up a cache stampede of the sort OP describes, and they don't use cURL as the user agent (https://support.cloudflare.com/hc/en-us/articles/200172556-W...).

I kinda wonder if someone's using https://workers.cloudflare.com/ to crawl their site daily. Or they just need to configure `ngx_http_realip_module` to get the originating user's IP address, if they're not currently processing the X-Forwarded-For header.

Re:When the policeman becomes the criminal – how Cloudflare ... by jgoyvaerts on Friday September 03, 2021 @03:41PM (#28408499)
You left out the part where the requests are coming from Cloudflare IPs.
Re:When the policeman becomes the criminal – how Cloudflare ... by scrollaway on Friday September 03, 2021 @03:44PM (#28408523)
Cloudflare is a reverse proxy so all requests would be coming from cloudflare. Did the author look at the x-forwarded-for IPs?
Re:When the policeman becomes the criminal – how Cloudflare ... by mixologic on Friday September 03, 2021 @03:50PM (#28408590)
It really depends on whether all traffic from cloudflare IP's or just the most frequent ones. If the former, then they have configured nginx wrong and are logging the wrong source ip.
Re:When the policeman becomes the criminal – how Cloudflare ... by scrollaway on Friday September 03, 2021 @03:57PM (#28408666)
I don't see evidence they aren't logging the wrong source IP (which is the default format with nginx, which the author is using).

These are extraordinary claims, which require extraordinary evidence.

Re:When the policeman becomes the criminal – how Cloudflare ... by donmcronald on Friday September 03, 2021 @04:33PM (#28409063)
Typically when you're using Cloudflare you configure your origin firewall to drop traffic that doesn't come from Cloudflare [1]. What would be the point of using Cloudflare if you also accept traffic that bypasses Cloudflare? How would you even set up the DNS for that?

1. https://www.cloudflare.com/ips/

Re:When the policeman becomes the criminal – how Cloudflare ... by luckylion on Friday September 03, 2021 @03:43PM (#28408521)
No. If you're a CF customer, all traffic comes from Cloudflare IPs, that's how it works, they're providing a reverse proxy for you.
Re:When the policeman becomes the criminal – how Cloudflare ... by robertlagrant on Friday September 03, 2021 @03:46PM (#28408546)
> sees traffic spikes with a curl useragent

And from Cloudflare IPs.

Re:When the policeman becomes the criminal – how Cloudflare ... by ceejayoz on Friday September 03, 2021 @03:49PM (#28408585)
That's how Cloudflare works. Traffic goes user --> Cloudflare --> your server, with an X-Forwarded-For header.

The same happens with most load balancers. In Apache, you have to set up mod_rpaf or mod_remoteip. In Nginx, you have to configure ngx_http_realip_module.

Re:When the policeman becomes the criminal – how Cloudflare ... by robertlagrant on Saturday September 04, 2021 @06:31AM (#28413808)
Yeah, I get that, but I'm replying to someone who doesn't seem to think the traffic came from Cloudflare.