Vasfed / nginx_ipset_blacklist

nginx module to use linux netfilter ipsets as blacklists
43 stars 18 forks source link
ipset nginx nginx-module

== nginx_ipset_blacklist

An nginx module for using netfilter ipsets as a black/white list. In comparison to standard nginx access module this allows for dynamic list updating, without nginx reload/restart.

== Installation

== Usage Sample nginx config: user root; worker_processes 1;

events {
  worker_connections  1024;
}

http {
  blacklist "myblacklist";
  include       mime.types;
  default_type  application/octet-stream;

  server {
    # your server configuration goes here
  }

  server {
    whitelist "my_whitelist"; # this server will not use global blacklist, but instad use local whitelist
    ...
  }
}

For blocked ips server will respond with 403 error to any request.

== Author nginx_ipset_blacklist was written by Vasily Fedoseyev aka Vasfed