ip.zuim.de/README.md

43 lines
1.5 KiB
Markdown
Raw Normal View History

2024-07-18 17:55:28 +02:00
# [ip.zuim.de](https://ip.zuim.de)
2024-07-18 17:26:39 +02:00
2024-07-18 17:55:28 +02:00
Shows information on connectivity of a user, by testing both IPv4 and IPv6. Also shows geoip data.
### Warning:
This code is mostly unmaintained and uses several old javascript libraries.
### Setup:
2024-07-18 18:01:20 +02:00
The following domain setup is required, for the IPv4/IPv6 tests to work:
- The domains can be changed in `include/config.php`
- `A` record for v4.ip.zuim.de and no `AAAA` record, so only IPv4 is possible for this domain
- `AAAA` record for v6.ip.zuim.de and no `A` record, so only IPv6 is possible for this domain
- `A` and `AAAA` record for ip.zuim.de as the main entry point
- Set up your webserver, so direct ip access and all of these domains resolve to the project directory.
2024-07-18 17:55:28 +02:00
To get the geoip data, the geoip2 module for nginx is used with the following configuration:
```
geoip2 /var/lib/GeoIP/GeoLite2-City.mmdb {
auto_reload 1h;
$geoip2_data_continent_code continent code;
$geoip2_data_continent_name continent names en;
$geoip2_data_country_code country iso_code;
$geoip2_data_country_name country names en;
$geoip2_data_subdivision subdivisions 0 names en;
$geoip2_data_city_name city names en;
$geoip2_data_postal_code postal code;
$geoip2_data_location_time location time_zone;
}
geoip2 /var/lib/GeoIP/GeoLite2-ASN.mmdb {
auto_reload 1h;
$geoip2_data_asn autonomous_system_organization;
}
```
Download these files directly and add them in the main folder:
- https://ip.zuim.de/0B.zip
- https://ip.zuim.de/1MB.zip
- https://ip.zuim.de/10MB.zip
- https://ip.zuim.de/100MB.zip
2024-07-18 18:01:20 +02:00
- https://ip.zuim.de/img.jpg