Skip to content
This repository was archived by the owner on Mar 8, 2026. It is now read-only.

Rostelecom-CERT/maxanon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maxanon

REST API service for Maxmind Anonymous IP Database

Maxmind database consist ip which detected as proxies, VPNs, and other anonymizers.

There are two types of usage this service. As for single requests or on stream with logstash processor.

Deploy

Maxanon support databases:

  1. redis
  2. mongodb

run

go run service/maxanon/main.go -file GeoIP2-Anonymous-IP-Block-IPv4.csv

docker-compose

docker-compose up -d 

Usage

Request to check information about ip address 192.168.1.1

curl /api/v1/info/192.168.1.1

Response

{"IP":"192.168.1.1","Anonymous":true,"AnonymousVPN":false,"IsHostingProvider":false,"IsPublicProxy":true,"IsTorExitNode":false}

Example request http module for logstash processor.

http {
    body => "%{source.ip}"
    target_body => "ip_flags"
    target_headers => "redis"
    url => "http://10.0.0.1:8000/api/v1/info/%{source.ip}"
    connect_timeout => 600
    request_timeout => 600
    socket_timeout => 600
    id => "redis"
  }

About

REST API service for Maxmind Anonymous IP Database

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors