IP addresses and location-based services, Have you got it right?

apnic 247 views 23 slides Aug 30, 2024
Slide 1
Slide 1 of 23
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23

About This Presentation

Pubudu Jayasinghe, Member and Registry Services Lead at APNIC, delivered a presentation on geolocation and geofeed implementation at LKNOG 8 held in Colombo, Sri Lanka from 12 to 16 August 2024.


Slide Content

1
IP addresses and location-based services
Have you got it right ?
PubuduJayasinghe
APNIC

2
What is Geolocation?
•IP geolocation is the mapping of an IP address to a
geographic location

33
Why do we need Geolocation?
•Location-Based Services
•Targeted Advertising and Marketing
•Enhanced User Experience
•Compliance with Legal and Regulatory Requirements
•Fraud Detection and Prevention
•Emergency Services and Public Safety

44
Ecosystem

55
IP Geolocation complaints are on the rise
•APNIC has exhausted fresh 103 prefixes from final /8 block.
•New addresses delegated are from recycled pool.
•These IPs were in use before, so some geolocation
providers may point to the old geolocation details.

66
Queries from APNIC members
My customers cannot access Bkash,
Rocket with these IPs. Please help.
We are in Singapore, but our customers
complain they cannot access Netflix Singapore
content. Instread they see Australian content.
Currently, we are getting our IP geolocation
Australia. Please change our IP geolocation to
Singapore.
Services hosted in amazon web services
detects the IP as Hong Kong Country IP.
So a lot of our users are not being able to
use our country on restricted sites like
hoichoi.tv chorki.com etc.
We are facing geolocation related
issue. A lot of game and services
sees us as Hong Kong. Our IP
address used to be owned by a
Hong Kong based hosting
company. Such as PUBG mobile
detects the country of our IP as
Hong Kong.

7
Services Impacted
PUBG M O BI LE - PUBG M O BI LE a dded a new photo.
Fintech services (e.g.
Bkash, Rocket) and
Banking websites
Gaming websites
(e.g. PubG, CSGO)
Social media
and Content
Providers
Google
Advertisments

8
APNIC FTP file; delegation stats
https://ftp.apnic.net
Not a source of
geolocation info

99
Troubleshooting
•Check APNIC Whois registration is up to date.
•Search on APNIC Whois Database: https://apnic.net/whois

10
Troubleshooting
•Check IP information in third party GEOIP databases (such as, MaxMind, Google) and
submit a correction request if the location is incorrect.
More info: https://www.apnic.net/geolocation

1111
Troubleshooting
•If a geolocation provider has incorrect location details of
your IP address range, contact them and request they
update the location of the range.
•Some content delivery networks (CDN) and content
providers maintain their own IP geolocation database which
may or may not use RIR data. You may want to contact
them directly to report any geolocation issues.
•Contact web admins of blocked websites directly and
inquire about the issue.

1212
Inet(6)num template

13
Member data
Parent Object for /23
inetnum: 203.176.189.0 -
203.176.190.255
netname: APNIC-SERVICES-V4
descr: APNIC
country: AU
Customer Assignment for /24
inetnum: 203.176.189.0 -
203.176.189.255
netname: APNIC-SERVICES-V4
descr: APNIC
country: AU
Customer Assignment for /24
inetnum: 203.176.190.0 -
203.176.190.255
netname: APNIC-SERVICES-V4
descr: APNIC
country: NZ
Members can register customer
assignments to indicate the location
where their network is deployed
–“country” attribute in customer
assignments can be used to
indicate the economy where those
IP addresses are used
–“geoloc” attribute can be used to
associate a latitude/longitude
coordinate pair with a particular
address block
–“geofeed” attribute can be used
by entering a URL containing
location information in csv format

1414
Inetnum/inet6num objects examples

1515
Geoloc
•A latitude/longitude coordinate indicating where users of
this network are located. Provides a hint to content and
geolocation service providers. A blank space should be
used as a separator between the two coordinates.
•Example
inetnum: 192.0.2.0/24 # example
geoloc: -27.472834 153.014264
•Limited success with geoloc
•Likely to be deprecated

1616
Geofeed
•RFC 8805 specifies a format for self-publishing geolocation
information for IP prefixes.
•Host CSV geofeed file over https and put the URL in the
geofeed attribute.
•Example:
inetnum: 192.0.2.0/24 # example
geofeed:https://example.com/geofeed.csv

17
How to add Geofeed
Step 1: CSV file with location information and URL
•Prepare a CSV file with location information. You can host
the CSV geofeed file on your domain.
•Alternatively, use a free service like GitHub or Packetvis

18
PacketVis example

1919
How to add Geofeed
Step 2: Add geofeed attribute
Go to:
•MyAPNIC > Resource Manager > Whois Updates
•Select the “Update” tab
•Search IP prefix
•Select 'geofeed' from the drop-down list at the bottom of the
page > Add field > Enter the url
•Update

2020
How to verify Geofeed
•After adding the Geofeed
attribute, you can verify the
information on
Geolocatemuch:
https://geolocatemuch.com/?
resource
•Note: Allow time for the
information to propagate
before checking.

21
We encourage you to take the steps mentioned in this presentation to
address geolocation issues.
Any feedback for improvement is welcome!
THANK YOU

22

23
Dhaka, Bangladesh