Live data from Hacker News

Cloudflare misidentifies Hetzner IPs as being located in Iran

gitlab.com

21–30 of 245 posts

Re: Cloudflare misidentifies Hetzner IPs as being located in Iran

#21
post #7

My theory is lots of people who want to circumvent Iranian internet censorship rely on tunnels/VPNs hosted on Hetzner, which correlates those IPs with `Accept-Language: fa` and GPS locations collected from Android or other similar behavior.

Yeah, I had the same theory when Google did this with a free-tier VPN IP that was in Turkey. It claimed I was in Tehran - and, when I looked at the map of servers, the Turkish server I was connected to was the closest to Tehran.

Re: Cloudflare misidentifies Hetzner IPs as being located in Iran

#22

Earlier quoted context omitted.

It's the interpretation of some cloud providers that exchanging datagrams with entities in OFAC-sanctioned countries constitutes a prohibited transaction.

Which is plainly stupid. They should interpret the law to mean "We will treat every request from Iran as a non-paying customer, and won't offer anything outside the free-tier" Even if that isn't the way was written , it is plain that it falls within the intent of the law, and is beneficial to US businesses.

How is it stupid?

You de-risk your enterprise significantly by cutting Iran out completely, and you only lose the handful of dollars this would’ve translated into down the road.

Some customers aren’t worth having.

Re: Cloudflare misidentifies Hetzner IPs as being located in Iran

#23
post #13
post #9

Earlier quoted context omitted.

US sanctions prohibit transfer of goods, technologies, information, etc. to Iran. As a company, this means BSTS (better safe than sorry) CYA (cover your ass) measures for good or worse.

Curiosity may get me on this one, but is sharing information (such as this post/comment) an example of transfer of information (to potentially all countries)?

Yes. Which is why you can't post ITAR information online.

Edit: it also wouldn't surprise me if hacker news blocks traffic from Iran.

Re: Cloudflare misidentifies Hetzner IPs as being located in Iran

#24
post #5
post #3

I mean, so? Why should it matter where they are located?

A lot of US resources ban traffic outside the US. Or, at least, from "suspicious" or "sanctioned" locations. Some ban EU due to GDPR. You never know such things when you are in US though...

but the traffic is _clearly coming from Germany_, the issue is that cloudflare/google have tagged certain ip addresses as Iranian no matter where the traffic actually originates from

Re: Cloudflare misidentifies Hetzner IPs as being located in Iran

#25
post #15

Does this kind of thing affect Hetzner IPs in their US datacenters?

It looks like they use different ASNs for the US datacenters, so probably not in this case. Nuremberg, Falkenstein and Helsinki all share the problematic AS24940 block mentioned in the OP, but Ashburn is on AS213230 and Hillsboro is on AS212317.

Re: Cloudflare misidentifies Hetzner IPs as being located in Iran

#26
post #8
post #3

I mean, so? Why should it matter where they are located?

My servers ban huge swaths of IPs from certain places that originates enormous amounts of spam, scanners, and other nefarious traffic. It's very effective

Sturgeon’s law [0] apply to all sorts of things, including web visitors

[0] https://en.m.wikipedia.org/wiki/Sturgeon%27s_law

Re: Cloudflare misidentifies Hetzner IPs as being located in Iran

#27

Earlier quoted context omitted.

Which is plainly stupid. They should interpret the law to mean "We will treat every request from Iran as a non-paying customer, and won't offer anything outside the free-tier" Even if that isn't the way was written , it is plain that it falls within the intent of the law, and is beneficial to US businesses.

Isn't intent of sanctions to weaken the adversary? Providing services, even free-tier (or, may be, especially so), to sanctioned countries is exactly the opposite of that.

It makes US service providers, like Google and Amazon, very unattractive for businesses that require worldwide coverage - for example wikipedia.

I would argue that for unpaid services (for example serving up web content), we should not be applying sanctions. Those specific sanctions are so easy for the iranians to work around (VPN), and so damaging to our businesses (no worldwide service).

Re: Cloudflare misidentifies Hetzner IPs as being located in Iran

#28
it's pretty absurd that cloudflare can just effectively cripple a cloud provider by tagging part of their IPv4 range as Iranian and not fixing their issues in over a year (and AFIK have no intention to fix them at all)

like I wonder if Hetzner has any way to legally force them to stop misclassifying their IP

Re: Cloudflare misidentifies Hetzner IPs as being located in Iran

#29

it's pretty absurd that cloudflare can just effectively cripple a cloud provider by tagging part of their IPv4 range as Iranian and not fixing their issues in over a year (and AFIK have no intention to fix them at all) like I wonder if Hetzner has any way to legally force them to stop misclassifying their IP

Kinda seems like it might have legs as a defamation lawsuit...

Re: Cloudflare misidentifies Hetzner IPs as being located in Iran

#30

Might be pertinent to suffix this with (2023), though I see there are still recent replies

It's a still-unresolved issue as far as I know; the linked ticket was only closed last year because Gitlab has no control over it as long as they want to continue using Cloudflare. The companies which do have control over it have not fixed it so far.
Post reply on HN