{"id":15465689,"url":"https://github.com/vasfed/nginx_ipset_blacklist","last_synced_at":"2025-08-23T02:08:09.642Z","repository":{"id":1137004,"uuid":"1015489","full_name":"Vasfed/nginx_ipset_blacklist","owner":"Vasfed","description":"nginx module to use linux netfilter ipsets as blacklists","archived":false,"fork":false,"pushed_at":"2016-04-16T01:21:14.000Z","size":102,"stargazers_count":44,"open_issues_count":3,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-03T15:25:26.531Z","etag":null,"topics":["ipset","nginx","nginx-module"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vasfed.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-22T15:49:35.000Z","updated_at":"2024-12-11T20:32:33.000Z","dependencies_parsed_at":"2022-08-16T12:10:51.105Z","dependency_job_id":null,"html_url":"https://github.com/Vasfed/nginx_ipset_blacklist","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vasfed%2Fnginx_ipset_blacklist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vasfed%2Fnginx_ipset_blacklist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vasfed%2Fnginx_ipset_blacklist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vasfed%2Fnginx_ipset_blacklist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vasfed","download_url":"https://codeload.github.com/Vasfed/nginx_ipset_blacklist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235119466,"owners_count":18938810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ipset","nginx","nginx-module"],"created_at":"2024-10-02T01:02:37.240Z","updated_at":"2025-01-22T12:57:01.587Z","avatar_url":"https://github.com/Vasfed.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"== nginx_ipset_blacklist\n\nAn nginx module for using netfilter ipsets as a black/white list.\nIn comparison to standard nginx access module this allows for dynamic list updating, without nginx reload/restart.\n\n== Installation\n\n* Get youself a linux server with root access\n* Install ipset 4.4 (see http://ipset.netfilter.org/install.html)\n* Get nginx source code, unpack etc.\n* Install libssl-dev, pcre and other nginx requirements\n* Configure nginx with this module:\n    ./configure --with-module=/path/to/nginx_ipset_blacklist\n* Compile, install\n* Configure nginx to run workers as root (this is needed to allow access to ipsets)\n* Create yout ipset and add some 'offending' ips to it:\n    sudo ipset -N myblacklist iphash\n    sudo ipset -A myblacklist 127.0.0.1\n* Start nginx\n* Profit!\n\n== Usage\nSample nginx config:\n    user root;\n    worker_processes  1;\n    \n    events {\n      worker_connections  1024;\n    }\n    \n    http {\n      blacklist \"myblacklist\";\n      include       mime.types;\n      default_type  application/octet-stream;\n      \n      server {\n        # your server configuration goes here\n      }\n      \n      server {\n        whitelist \"my_whitelist\"; # this server will not use global blacklist, but instad use local whitelist\n        ...\n      }\n    }\n\nFor blocked ips server will respond with 403 error to any request.\n\n== Author\nnginx_ipset_blacklist was written by Vasily Fedoseyev aka Vasfed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasfed%2Fnginx_ipset_blacklist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvasfed%2Fnginx_ipset_blacklist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasfed%2Fnginx_ipset_blacklist/lists"}