blob: 58c45a135718dfe90d8c4f55a461254e563dbd0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<!doctype html>
<html lang="EN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/style.css">
<title>Bloggings</title>
</head>
<body>
<header>
<h1>Bloggings</h1>
<a href="/index.php">Back</a>
</header>
<main>
<article>
<h2>GeoIP2 et Goaccess</h2>
<h3>2021-04-09</h3>
<p>Aujourd'hui, j'ai mis à jour <a href="https://goaccess.io/">goaccess</a> pour qu'il fonctionne avec GeoIP2.
J'ai d'abord téléchargé et installé la dernière version de geoipupdate,
puis créé un compte gratuit avec <a href="https://www.maxmind.com">Maxmind</a>
et obtenu un identifiant de compte et une clé de licence.
J'ai ajouté ceux-ci au fichier /etc/GeoIP.conf, et j'ai ajouté une entrée crontab avec
<code>@weekly /usr/local/bin/geoipupdate</code>
geoipupdate a mis à jour 2 fichiers dans /usr/share/GeoIP/.<br>
J'ai ensuite modifié goaccess.conf avec <code>geoip-database /usr/share/GeoIP/GeoLite2-City.mmdb</code>
et goaccess affiche maintenant les villes correspondant aux adresses IP.</p>
</article>
</main>
<footer>
<p> </p><p>§</p></footer>
</body></html>
|