How to Get a North Korea / Antarctica VPS
152 points
12 hours ago
| 13 comments
| blog.lyc8503.net
| HN
a-ve
9 hours ago
[-]
I've wanted to try something like this before, but I was under the impression that providers like MaxMind might use other techniques to figure out the "real" location of a server.

ipinfo.io uses a probe network for this[1], but even then a server physically located in the Netherlands with an IP announced as being from, say, Seychelles would still respond to pings faster from a European location than from somewhere like Singapore (unless you go out of your way to induce latency to ICMP responses).

[1] https://ipinfo.io/blog/probe-network-how-we-make-sure-our-da...

reply
Scoundreller
6 hours ago
[-]
> unless you go out of your way to induce latency to ICMP responses

Might be hard to get the ping response time right from your Seychelles probe if you’re pretending to be in Seychelles but actually in Netherlands

reply
londons_explore
5 hours ago
[-]
You can add 100ms to all responses to simulate 'user is on the end of a slow ADSL connection'.

That way you can still get the 'right' ping times to all places

reply
walletdrainer
5 hours ago
[-]
reply
hirako2000
1 hour ago
[-]
Which no longer seem to work anywhere. As per the readme.

Interesting technical insights though.

reply
dewey
3 hours ago
[-]
Related to that, people might remember "The Pirate Bay is now hosted in North Korea" times.

Previous discussion: https://news.ycombinator.com/item?id=5319419

reply
est
6 hours ago
[-]
surprised to see a p3terx blog referene here. His CF WARP scripts were quite popular.

Some background info: in China, all online discourse are required to show the user's provincial-level origin, or country name for non-mainland users, using geoip. this is enforced by the Cyber Admin Commission of CCP.

reply
thrdbndndn
5 hours ago
[-]
I was surprised too, but later learnt the author is also from China, which explained it.

BTW, does his CF WARP scripts still work? I know he no longer updated it, but never really knew if it still works after all these months (years?).

reply
est
3 hours ago
[-]
I believe it partially works, the `warp-cli` command changed a lot in recent versions.

My impression it either setup a socks5 proxy or generate a wireguard config and connect to CF.

reply
miki123211
6 hours ago
[-]
> all online discourse are required to show the user's provincial-level origin

What is the point of such a rule?

I understand why one would want to show that a foreign user is foreign, but what's the point for showing provincial origin?

reply
RobotToaster
1 hour ago
[-]
China has a lot of local politics and is surprisingly decentralised.

If you look at how American social media is, with people from Texas claiming to know in detail what New York is like (and vice versa), it makes some sense.

Not saying I agree with it and the privacy implications, but I can see the sense.

reply
numpad0
2 hours ago
[-]
China has multiple levels and systems of citizenships and human rights granted...

That said, most European countries are smaller than bigger Asian cities, and no country on Earth is less than 4x smaller than China or India, so it might be just a fair game.

reply
londons_explore
5 hours ago
[-]
Internet rules vary in different parts of china.

Some western sites are blocked in some regions but not others.

reply
bouncycastle
5 hours ago
[-]
different provinces have different demographics and therefore slightly different sentiment?
reply
est
6 hours ago
[-]
> What is the point of such a rule?

Hmm, it's a bit dark: China does not have a federal level task force like the FBI or CIA, raids/arrests are executed by provincial or municipal PD. It's called 公安属地原则 thingy

reply
shevy-java
3 hours ago
[-]
I saw a few documentaries about North Korea. Now, I'll skip the potemkin-village propaganda part of the regime, but I was quite surprised that they had skilled developers too and modern equipment / computers. Granted, this was an exception (Pyongyang is an exception in general anyway) and naturally in these documentaries you can only see what the regime feeds you, but even then I was surprised to see that they weren't like, say, 20 years behind or something like that. It may not be anywhere near as close to the quality in South Korea, but the image of some retrolooking guys from the 1945s is also incorrect. Of course a lot of this is weird, since they perfected the potemkin village strategy where things look so extremely bizarre like from almost 100 years ago now, but then they have some designated people roleplaying as computer designers and architects, and they actually are not totally clueless but know some things (that is, they are not all playing the potemkin part at all times, all the way).
reply
armada651
3 hours ago
[-]
I don't know why you'd be surprised that they have skilled developers and modern computers. North Korea has a state-funded hacking and phishing operation that generates $2 billion, which represents a pretty significant part of their $35 billion GDP.
reply
jojobas
2 hours ago
[-]
Being proper laundered currency available for whatever international purchases it's punching way above its $2B weight.
reply
t-3
12 minutes ago
[-]
Dude, computers and internet have been worldwide for 20+ years. Even war zones have internet and modern computers. The only place that doesn't is Cuba which is physically separated from the rest of humanity by geography and embargoes.
reply
__alexander
2 hours ago
[-]
reply
Razengan
2 hours ago
[-]
> I was surprised to see that they weren't like, say, 20 years behind or something

That actually says more about what the Western "First World" media feeds their people, that the rest of the world is 20 years behind and stuff :')

Maybe 10, maybe some places, sure. In terms of social progress and basic rights, hell there are places that are 50 or even 200 years behind (see Afghanistan's treatment of women for example)

But tech-wise, I was surprised when I visited some parts of the Middle East and Asia; almost everything was available online, paid for electronically, clean and effective mass transport, walkable and safe cities..

reply
wqaatwt
2 hours ago
[-]
> media feeds their people, that the rest of the world is 20 years behind and stuff

Well western or pretty media having no access to the country pretty much guarantees that everything they might be reporting is a mix of speculation and outdated information. Doing the best you can with whatever data is available doesn’t seem like an unreasonable approach.

> see Afghanistan's treatment of women for example

Or much of the the “advanced” gulf states..

reply
spiderfarmer
3 hours ago
[-]
Did you know a country’s political system says nothing about how smart its citizens are? Education levels can differ, sure. But in IT especially, almost all learning material is freely available online. All you really need is motivation. And autocratic regimes have plenty of ways to create that.
reply
dbspin
3 hours ago
[-]
North Korea doesn't have access to the open internet, so no learning materials are 'freely available' online. All computer access is gated through the countries own locked down Linux distro 'Red Star OS', and all internet access is blocked.
reply
elsjaako
3 hours ago
[-]
There are effective North Korean hacking teams. They seem to operate from China, but one assumes that there are ways to train North Koreans in this stuff before sending them abroad to do the work.

I will agree that for most people in North Korea access to the outside internet is limited, but your claim that "All computer access is gated" is a stronger one, that I haven't seem evidence for.

Also, we know that Red Star OS exists, but I haven't seen any information about it's actual use. I can imagine it's used in certain sectors (e.g. education or certain ministries), but if you have information about it's usage I'd be interested to see that.

My gut feeling is that there is probably still a lot of cracked windows PCs also used in industry, but I have no evidence for that either. This is just based on how in my experience China works, and the fact that there is some business exchange between North Korea and China.

reply
4ndrewl
5 hours ago
[-]
My first thought was "is this legal?", but then had a hard time considering even which jurisdiction this (or using a "fraudulent" IP location) would fall under?
reply
cedilla
4 hours ago
[-]
In Germany it could be computer fraud, which criminalises entering incorrect data into a computer system for financial gain. I don't know if "watching a different set of shows on Netflix" would qualify.
reply
cactusplant7374
21 minutes ago
[-]
Is there a way to buy actual hosting in Antarctica?
reply
samlinnfer
6 hours ago
[-]
The real question is where does Cloudflare get North Korean IPv4 blocks to feed into Warp, or Antarctic blocks for that matter.
reply
efesak
4 hours ago
[-]
Cloudflare does not have any IPv4 blocks in North Korea. Geolocation databases use RIPE as the primary source and then make estimates using various tools.

Interestingly, according to RIPE, North Korea has only assigned one IPv4 block (see https://github.com/analogic/ipgeo/blob/master/by-country/KP), whereas Antarctica has none.

reply
walletdrainer
5 hours ago
[-]
Cloudflare is a big player and can get the geoip providers to do basically whatever they want.
reply
samlinnfer
1 hour ago
[-]
So they did the same trick and got a geoip block just like the OP did?
reply
b3lvedere
6 hours ago
[-]
This is going to be fun when the moon and Mars have internet.
reply
vaylian
4 hours ago
[-]
Relevant XKCD: https://xkcd.com/713/
reply
parallax_error
8 hours ago
[-]
> Now test your VPS’s IPv4 geolocation using Cloudflare’s /cdn-cgi/trace endpoint (available on any site behind CF)

Interesting, this really does seem to work on any site behind CF. Are there any other endpoints like this?

reply
bgc
8 hours ago
[-]
The cdn-cgi endpoints are documented here: https://developers.cloudflare.com/fundamentals/reference/cdn...
reply
sentientslug
8 hours ago
[-]
reply
tonyhart7
9 hours ago
[-]
Yeah Geo-IP is "fake" when I look at this deeper, idk why people use this as source of truth

also important point when you using Starlink and got totally different "relay" station sometimes can be thousand miles away, I think we need to "upgrade" our internet infrastructure for interplanetary system

reply
basilikum
9 hours ago
[-]
It's the best there is and good enough for most business purposes. Regulations may require you not to do business with people in certain countries so you have to do a good faith effort not to provide your services to those people. GeoIP, despite just being an indicator or correlation rather than objective truth, just happens to be that good faith effort.
reply
alwa
7 hours ago
[-]
…and for that matter, the more people game GeoIP like this, the less it’s “good enough.”

The regulatory imperative isn’t going anywhere, even if we degrade our good-enough, handshake-based, AS-operator-trusting system.

If history is any guide, any replacement technology might look a lot more intrusive and a lot more onerous: the first thought that comes to mind is some kind of DRM-style, device-based, attested location surveillance (tied to a government ID? Why not?!) as “proof of location,” and I’m sure the powers that be could come up with “better”…

reply
palata
6 hours ago
[-]
> any replacement technology might look a lot more intrusive

Unfortunately, I don't think that not gaming GeoIP will change that. It's going there already.

reply
__m
7 hours ago
[-]
Yes we need more tools to track people
reply
ranger_danger
10 hours ago
[-]
tl;dr it requires owning your own IP blocks and then lying.

> In reality, the “location” of an IP is inherently fuzzy. For instance, my 2a14:7c0:4d00::/40 block was originally allocated to Israel. But later, I bought parts of this range and announced them via BGP in Germany, the US, and Singapore (see previous article on Anycast networks). Meanwhile, I’m physically located in mainland China. As the owner of this IP block, I can also freely edit the country field in the WHOIS database — and I set it to KP (North Korea).

> Because of this ambiguity, it’s nearly impossible to precisely determine an IP’s location using any single technical method. As a result, almost all geolocation databases accept public/user-submitted correction requests.

I would not be surprised if this practice is technically against most terms of service.

reply
ronsor
10 hours ago
[-]
> I would not be surprised if this practice is technically against most terms of service.

It doesn't really matter. RIPE and other RIRs let you put whatever metadata you want for an IP range into the database, and you can serve whatever you want from your own geolocation feed. If the geolocation providers don't like it, it's up to them to stop fetching your data.

reply
Sanzig
10 hours ago
[-]
And here I was hoping someone had a Proxmox node running at McMurdo and was renting out VMs for the novelty factor.
reply
tonyhart7
9 hours ago
[-]
isn't this possible with tech like starlink????

I bet they didnt to buy cooling system /s

reply
sva_
1 hour ago
[-]
It seems like they only own an IPv6 block though, and then get the IPv4 from CF
reply
throwawaysoxjje
6 hours ago
[-]
Whose terms of service? Their upstream? the RIR’s?
reply
palata
6 hours ago
[-]
Naive question: how do you own an IP block? Can you just buy it somehow?
reply
q0uaur
5 hours ago
[-]
the linked page has an earlier blog entry talking about that:

https://blog.lyc8503.net/en/post/asn-1-asn-registration/

quickly skimming the article i couldn't see a specific price for the ipv4 block, but ipv6 is cheap - the article mentions having to pay at least $50 a year + service fees to a "LIR", and you also need a BGP-enabled hosting provider which i imagine will come with similar cost at least (don't quote me on that).

reply
immibis
4 hours ago
[-]
For RIPE (don't know others) the are two ways: you can either sign up as a full member (an ISP) for 1500€/year, which gives you the same rights as any other ISP. You can also request a "provider independent" or PI address block, which comes with some contractual restrictions (you have to use it yourself and you can't act as an ISP), from a member for 50€/year plus their profit margin. Officially you should get one from your actual ISP, but there are a few RIPE members who sell easy access to PI blocks as part of their business model.
reply
throwaway808081
10 hours ago
[-]
IIRC the country code RFC does not specify physical location, nationality of entity, or other.
reply
calvinmorrison
10 hours ago
[-]
> tl;dr it requires owning your own IP blocks and then lying.

If this was the case, and theres tons of financial incentive to do so, wouldnt cloudflare,etc, block not based on the reported 'country' but some fuzzy heuristic that knows what country it comes from? hops?

reply
seszett
5 hours ago
[-]
That might work in big countries like the US, but in western Europe it's basically impossible to tell whether a connexion originates from London, Paris, Brussels or Amsterdam just by hop count or latency.

Even just jitter in router response time is already higher than the difference in latency due to speed of light between those locations. And just France is large enough that a connexion to some IP in France might legitimately travel further or not compared to a connexion to some other country, from basically any vantage point you might be looking from, and might or might not round-trip through Paris, adding potentially up to 1500 km of uncertainty in the path.

Identifying the interchanges the packets go through can help though, but not as much for residential ISPs.

reply
gpm
8 hours ago
[-]
They've got enough points of presence that they ought to be able to narrow most people down to a reasonably small circle just by speed of light - unless they're intentionally increasing their ping or on some terribly congested network or something.
reply
rootsudo
6 hours ago
[-]
The fuzzy heuristic can just be ping speed. Can’t beat the speed of light (yet.)

But cloudflare already is toxic, doable third party cookies - friction nonstop, etc.

reply
rootsudo
6 hours ago
[-]
This is a great post, I was asking about this for asn location to ChatGPT and it was telling me it wouldn’t help on this request lol.

But thanks to this series I setup an ARIN account, got allocated ipv6 and ipv4 addresses and starting the ASN assignment process. It’s a fun rabbit hole to go into.

reply