Vasfed / nginx_ipset_blacklist

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

Incompatibility with ipset v7 #5

Open saturngfish opened 2 months ago

saturngfish commented 2 months ago
root@server:/test/nginx/sbin# ./nginx
nginx: [emerg] cannot get ipset "myblacklist" from kernel, check nginx to be running as root (ipset kernel module protocol version mismatch) in /test/nginx/conf/nginx.conf:16

root@server:/test/nginx/sbin# ipset -V
ipset v7.17, protocol version: 7

root@server:/test/nginx/sbin# uname -r
6.1.0-18-amd64
saturngfish commented 2 months ago

nginx is running as root nginx запускает от root

saturngfish commented 2 months ago

root@server:/test/nginx/sbin# ipset list
Name: myblacklist
Type: hash:ip
Revision: 5
Header: family inet hashsize 1024 maxelem 65536 bucketsize 12 initval 0xf19ab4b7
Size in memory: 240
References: 0
Number of entries: 1
Members:
1.1.1.1
saaiful commented 1 month ago

@saturngfish Did this issue resolved ?

saturngfish commented 1 month ago

@saaiful no

saaiful commented 1 month ago

@saaiful no

https://github.com/FredericDT/nginx_ipset_blacklist_rpc

Did you check this fork ?