News for hackers. Stuff that matters.
Re:How to Build a IP Geolocation Database from Scratch? by voltagex_ on Thursday September 14, 2023 @10:12AM (#37509350)
Can your probes be identified and blocked?
Re:How to Build a IP Geolocation Database from Scratch? by kube-system on Thursday September 14, 2023 @10:17AM (#37509421)

    iptables -A INPUT -p icmp -j DROP
Re:How to Build a IP Geolocation Database from Scratch? by voltagex_ on Thursday September 14, 2023 @10:33AM (#37509557)
http://shouldiblockicmp.com/

(But the guy running the probes is making a good counter argument)

Re:How to Build a IP Geolocation Database from Scratch? by eptyc1 on Thursday September 14, 2023 @10:26AM (#37509487)
Indeed. Openwrt for some reason defaults to reply to pings. I see the value of ICMP for servers, but I don't see the value for home ISP routers.

I disabled ICMP reply on my home router.

Re:How to Build a IP Geolocation Database from Scratch? by sambazi on Thursday September 14, 2023 @12:59PM (#37511556)
> Openwrt for some reason defaults to reply to pings.

it's a bit like greeting-back ppl on the street.

not doing it will not make you invisible. it will break somebody's assumption of decency, but most ppl don't care either way.

Re:How to Build a IP Geolocation Database from Scratch? by sgjohnson on Friday September 15, 2023 @05:08AM (#37520337)
> I disabled ICMP reply on my home router.

Doesn't actually help at all because the BGP announced prefix of your IP can still be tracerouted. You won't be physically far from it.

Say if your ISP announces 125.15.18.0/17 and you're in 125.15.29.145, a traceroute will still yield a pretty good approximation of where you're at. The last hop ping is really quite immaterial here.

Re:How to Build a IP Geolocation Database from Scratch? by chaps on Thursday September 14, 2023 @10:18AM (#37509429)
This isn't helpful. The comment was specifically asking about the probes, not ICMP traffic.
Re:How to Build a IP Geolocation Database from Scratch? by kube-system on Thursday September 14, 2023 @10:19AM (#37509446)
Anybody can do this same thing, if you're worried about this, you probably don't want inbound ICMP.
Re:How to Build a IP Geolocation Database from Scratch? by chaps on Thursday September 14, 2023 @10:21AM (#37509474)
Cool. Thanks. But let's say I do.
Re:How to Build a IP Geolocation Database from Scratch? by kube-system on Thursday September 14, 2023 @11:32AM (#37510340)
Then there's nothing you can do. If you respond to pings, then others can take note of the responses you send.
Re:How to Build a IP Geolocation Database from Scratch? by chaps on Thursday September 14, 2023 @11:41AM (#37510468)
You're missing the point that the question is effectively asking for a list of hosts that they can block.

Edit: they provided a method: https://news.ycombinator.com/item?id=37510063

Re:How to Build a IP Geolocation Database from Scratch? by kube-system on Thursday September 14, 2023 @11:57AM (#37510671)
I understand that was the initial question. I am saying that is a fools errand. Anyone with a few VPSes, a calculator, and a map can do this. It isn't just ipinfo.io doing this. There are a lot of ip geolocation services.
Re:How to Build a IP Geolocation Database from Scratch? by sgjohnson on Friday September 15, 2023 @05:09AM (#37520341)
And if you don't respond to pings, a traceroute can still be used to find the hop before yours, which will almost certainly achieve the same result for geolocation purposes.
Re:How to Build a IP Geolocation Database from Scratch? by j16sdiz on Thursday September 14, 2023 @10:46AM (#37509706)
This breaks PMTU and is the source of many mystery download stalls
Re:How to Build a IP Geolocation Database from Scratch? by jiveturkey on Monday September 18, 2023 @04:00PM (#37561206)
This doesn't help. Even if you apply this at your router, you are locatable up to your ISP. Which is generally close enough.
Re:How to Build a IP Geolocation Database from Scratch? by reincoder on Thursday September 14, 2023 @11:09AM (#37510063)
It is just ping data. We ping an IP address, get the RTT, draw a radius on the globe, and say that the IP could be anywhere inside that radius. Then we do another ping and draw another radius, and at the cross-section of the two radii could be your IP address. Now, if we do it enough times, we can get an estimate of where the IP address is located.

The data is not derived from the IP address itself, but rather from the process itself. And it's just a ping. Moreover, the majority of the IP addresses are not pingable. So, we rely on other in house statistical and scientific models to estimate the location. The probe infrastructure is extremely complicated and there are billions and billions of IP addresses, which is why we do not have a robust range filter mechanism.

You can implement a dynamic ping blocking mechanism or use our data to find hosting ASNs and block ranges of those ASNs. You can download the database for free: https://ipinfo.io/developers/ip-to-country-asn-database