• [^] # Re: Intéressant

    Posté par (Mastodon) . En réponse à la dépêche MySafeIP: un tiers de confiance pour votre pare-feu !. Évalué à 10. Dernière modification le 12 janvier 2023 à 17:20.

    En entreprise, le gros des bots qu'on se tapent viennent des USA

    J'avais jamais regardé... je prends les 2500 dernières IP bannies par mon fail2ban, et je fais passer geoiplookup dessus (premier outil trouvé, si vous avez mieux je peux réessayer)

     639 GeoIP Country Edition: US, United States
     284 GeoIP Country Edition: CN, China
     161 GeoIP Country Edition: JP, Japan
     158 GeoIP Country Edition: RU, Russian Federation
     133 GeoIP Country Edition: GB, United Kingdom
     113 GeoIP Country Edition: IN, India
     98 GeoIP Country Edition: IP Address not found
     82 GeoIP Country Edition: KR, Korea, Republic of
     68 GeoIP Country Edition: FR, France
     64 GeoIP Country Edition: BR, Brazil
     61 GeoIP Country Edition: SG, Singapore
     61 GeoIP Country Edition: DE, Germany
     55 GeoIP Country Edition: CA, Canada
     ...
    

    Validé !

    EDIT : encore mieux ! je prenais la liste des IP brute des logs, sans passer un uniq dessus. Une fois trié, je n'ai plus que 624 IP différentes, et le classement est encore plus inattendu :

     177 GeoIP Country Edition: US, United States
     42 GeoIP Country Edition: JP, Japan
     30 GeoIP Country Edition: KR, Korea, Republic of
     30 GeoIP Country Edition: IN, India
     28 GeoIP Country Edition: RU, Russian Federation
     24 GeoIP Country Edition: IP Address not found
     22 GeoIP Country Edition: FR, France
     22 GeoIP Country Edition: CN, China
     21 GeoIP Country Edition: GB, United Kingdom
     18 GeoIP Country Edition: DE, Germany
     17 GeoIP Country Edition: CA, Canada
     16 GeoIP Country Edition: SG, Singapore
     14 GeoIP Country Edition: BR, Brazil
     13 GeoIP Country Edition: VN, Vietnam
     10 GeoIP Country Edition: MX, Mexico
     10 GeoIP Country Edition: ID, Indonesia
     ...
    

    Russie + Chine c'est moins de 10% des IPs rejetées...

    En théorie, la théorie et la pratique c'est pareil. En pratique c'est pas vrai.