diff --git a/README.md b/README.md index 1aba009..4ede667 100644 --- a/README.md +++ b/README.md @@ -13,56 +13,26 @@ ### Domains -* `meta.4.niv.re` have working A (IPv4) and AAAA (IPv6) records -You can test IP version connectivity by forcing it throught -* `ipv4.meta.4.niv.re` only have the A record -* `ipv6.meta.4.niv.re` only have the AAAA record +`meta.antopie.org` have working A (IPv4) and AAAA (IPv6) records -## Nginx configuration +You can test IP version connectivity by forcing it throught: + +* `ipv4.meta.antopie.org`, which only have the A record +* `ipv6.meta.antopie.org`, which only have the AAAA record + +## Nginx configuration sample ``` server { listen 443 ssl http2; listen [::]:443 ssl http2; - server_name meta.4.niv.re *.meta.4.niv.re; + server_name meta.antopie.org; root /var/www/meta; index index.php; try_files $uri/ /; - more_set_headers "Content-Security-Policy : default-src 'none'; frame-ancestors 'none'; form-action 'none';"; - more_set_headers "X-Content-Type-Options : nosniff"; - more_set_headers "X-XSS-Protection : 1; mode=block"; - more_set_headers "X-Download-Options : noopen"; - more_set_headers "X-Permitted-Cross-Domain-Policies : none"; - more_set_headers "X-Frame-Options : DENY"; - more_set_headers "Referrer-Policy : no-referrer"; - more_set_headers "Strict-Transport-Security : max-age=94608000; includeSubDomains; preload"; - more_clear_headers Server; - - ssl_prefer_server_ciphers off; - - ssl_session_timeout 1d; - ssl_session_cache shared:SSL:50m; - ssl_session_tickets off; - - ssl_early_data off; - - ssl_stapling on; - ssl_stapling_verify on; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_ciphers TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384; - - ssl_ecdh_curve X25519:X448; - - ssl_certificate /etc/letsencrypt/live/meta.4.niv.re/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/meta.4.niv.re/privkey.pem; - - error_log /var/log/nginx/meta.4.niv.re-error.log info; - access_log off; - location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/meta.sock; @@ -88,7 +58,7 @@ server { } ``` -## Ressources +## Resources Nginx variable list: @@ -96,10 +66,10 @@ PHP $_SERVER list: ### HTTP headers -* https://en.wikipedia.org/wiki/List_of_HTTP_header_fields -* https://developer.mozilla.org/docs/Web/HTTP/Headers -* https://datatracker.ietf.org/doc/html/rfc7231 +* +* +* ## Free software -*Meta* is published under **AGPLv3+** (see `LICENSE`), it's source code is available at . `db-reader` and `geolite2` directories contents have their own license. +*Meta* is published under **AGPLv3+** (see `LICENSE`), it's source code is available at . `db-reader` and `geolite2` directories contents have their own licenses. diff --git a/geolite2.php b/geolite2.php index 5cb015f..2df8ad6 100644 --- a/geolite2.php +++ b/geolite2.php @@ -8,7 +8,7 @@ else if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) else exit("This is not a valid IP address!"); -define("GEOLITE2_DATE", "20210914"); +define("GEOLITE2_DATE", "20220215"); require('db-reader/autoload.php'); use MaxMind\Db\Reader; diff --git a/geolite2/GeoLite2-ASN.tar.gz b/geolite2/GeoLite2-ASN.tar.gz new file mode 100644 index 0000000..18ce4b5 Binary files /dev/null and b/geolite2/GeoLite2-ASN.tar.gz differ diff --git a/geolite2/GeoLite2-ASN_20210914/COPYRIGHT.txt b/geolite2/GeoLite2-ASN_20210914/COPYRIGHT.txt deleted file mode 100644 index 90eb0ee..0000000 --- a/geolite2/GeoLite2-ASN_20210914/COPYRIGHT.txt +++ /dev/null @@ -1 +0,0 @@ -Database and Contents Copyright (c) 2021 MaxMind, Inc. diff --git a/geolite2/GeoLite2-ASN_20220215/COPYRIGHT.txt b/geolite2/GeoLite2-ASN_20220215/COPYRIGHT.txt new file mode 100644 index 0000000..1f9e44a --- /dev/null +++ b/geolite2/GeoLite2-ASN_20220215/COPYRIGHT.txt @@ -0,0 +1 @@ +Database and Contents Copyright (c) 2022 MaxMind, Inc. diff --git a/geolite2/GeoLite2-ASN_20210914/GeoLite2-ASN.mmdb b/geolite2/GeoLite2-ASN_20220215/GeoLite2-ASN.mmdb similarity index 51% rename from geolite2/GeoLite2-ASN_20210914/GeoLite2-ASN.mmdb rename to geolite2/GeoLite2-ASN_20220215/GeoLite2-ASN.mmdb index aacf58b..6d5397b 100644 Binary files a/geolite2/GeoLite2-ASN_20210914/GeoLite2-ASN.mmdb and b/geolite2/GeoLite2-ASN_20220215/GeoLite2-ASN.mmdb differ diff --git a/geolite2/GeoLite2-ASN_20210914/LICENSE.txt b/geolite2/GeoLite2-ASN_20220215/LICENSE.txt similarity index 100% rename from geolite2/GeoLite2-ASN_20210914/LICENSE.txt rename to geolite2/GeoLite2-ASN_20220215/LICENSE.txt diff --git a/geolite2/GeoLite2-City.tar.gz b/geolite2/GeoLite2-City.tar.gz new file mode 100644 index 0000000..2d72d26 Binary files /dev/null and b/geolite2/GeoLite2-City.tar.gz differ diff --git a/geolite2/GeoLite2-City_20210914/COPYRIGHT.txt b/geolite2/GeoLite2-City_20210914/COPYRIGHT.txt deleted file mode 100644 index 90eb0ee..0000000 --- a/geolite2/GeoLite2-City_20210914/COPYRIGHT.txt +++ /dev/null @@ -1 +0,0 @@ -Database and Contents Copyright (c) 2021 MaxMind, Inc. diff --git a/geolite2/GeoLite2-City_20220215/COPYRIGHT.txt b/geolite2/GeoLite2-City_20220215/COPYRIGHT.txt new file mode 100644 index 0000000..1f9e44a --- /dev/null +++ b/geolite2/GeoLite2-City_20220215/COPYRIGHT.txt @@ -0,0 +1 @@ +Database and Contents Copyright (c) 2022 MaxMind, Inc. diff --git a/geolite2/GeoLite2-City_20210914/GeoLite2-City.mmdb b/geolite2/GeoLite2-City_20220215/GeoLite2-City.mmdb similarity index 80% rename from geolite2/GeoLite2-City_20210914/GeoLite2-City.mmdb rename to geolite2/GeoLite2-City_20220215/GeoLite2-City.mmdb index 0db8d36..35e13b3 100644 Binary files a/geolite2/GeoLite2-City_20210914/GeoLite2-City.mmdb and b/geolite2/GeoLite2-City_20220215/GeoLite2-City.mmdb differ diff --git a/geolite2/GeoLite2-City_20210914/LICENSE.txt b/geolite2/GeoLite2-City_20220215/LICENSE.txt similarity index 100% rename from geolite2/GeoLite2-City_20210914/LICENSE.txt rename to geolite2/GeoLite2-City_20220215/LICENSE.txt diff --git a/geolite2/GeoLite2-City_20210914/README.txt b/geolite2/GeoLite2-City_20220215/README.txt similarity index 100% rename from geolite2/GeoLite2-City_20210914/README.txt rename to geolite2/GeoLite2-City_20220215/README.txt diff --git a/geolite2/GeoLite2-Country_20210914/COPYRIGHT.txt b/geolite2/GeoLite2-Country_20210914/COPYRIGHT.txt deleted file mode 100644 index 90eb0ee..0000000 --- a/geolite2/GeoLite2-Country_20210914/COPYRIGHT.txt +++ /dev/null @@ -1 +0,0 @@ -Database and Contents Copyright (c) 2021 MaxMind, Inc. diff --git a/geolite2/GeoLite2-Country_20210914/GeoLite2-Country.mmdb b/geolite2/GeoLite2-Country_20210914/GeoLite2-Country.mmdb deleted file mode 100644 index d1e6a57..0000000 Binary files a/geolite2/GeoLite2-Country_20210914/GeoLite2-Country.mmdb and /dev/null differ diff --git a/geolite2/GeoLite2-Country_20210914/LICENSE.txt b/geolite2/GeoLite2-Country_20210914/LICENSE.txt deleted file mode 100644 index ee7434d..0000000 --- a/geolite2/GeoLite2-Country_20210914/LICENSE.txt +++ /dev/null @@ -1,3 +0,0 @@ -Use of this MaxMind product is governed by MaxMind's GeoLite2 End User License Agreement, which can be viewed at https://www.maxmind.com/en/geolite2/eula. - -This database incorporates GeoNames [https://www.geonames.org] geographical data, which is made available under the Creative Commons Attribution 4.0 License. To view a copy of this license, visit https://creativecommons.org/licenses/by/4.0/. diff --git a/geolite2/update.sh b/geolite2/update.sh new file mode 100755 index 0000000..2bca820 --- /dev/null +++ b/geolite2/update.sh @@ -0,0 +1,10 @@ +#!/usr/bin/bash + +torsocks curl "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN&license_key=VLk4IOSJ5vKSywjG&suffix=tar.gz" --output GeoLite2-ASN.tar.gz --tlsv1.3 --tls13-ciphers TLS_CHACHA20_POLY1305_SHA256 --curves X25519 --user-agent "" + +tar -xf GeoLite2-ASN.tar.gz + +torsocks curl "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=VLk4IOSJ5vKSywjG&suffix=tar.gz" --output GeoLite2-City.tar.gz --tlsv1.3 --tls13-ciphers TLS_CHACHA20_POLY1305_SHA256 --curves X25519 --user-agent "" + +tar -xf GeoLite2-City.tar.gz + diff --git a/index.php b/index.php index dda41f9..3f007b5 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,5 @@

TCP

- RTT: milliseconds
- RTT variance:
- SND CWND:
+ RTT: μs
+ RTT variance: μs
+ SND CWND:
RCV SPACE:

Ports

@@ -35,6 +35,7 @@

TLS

+ SNI:
TLS session ID:
Offered TLS curves:
Offered TLS ciphers:
diff --git a/system.php b/system.php new file mode 100644 index 0000000..93362c7 --- /dev/null +++ b/system.php @@ -0,0 +1,30 @@ + + + + + Meta + + +
+

Server system informations

+ + Architecture:
+ Distribution:
+ Distribution version:
+ Distribution version codename:
+ Distribution description:
+ Kernel:
+ Kernel version:
+ Nginx version:
+ PHP version:
+ Connection ID since Nginx startup:
+ Requests in this connection:
+ + Unix time: ( UTC)
+
+ +