msimerson / sentry

Bruteforce attack blocker (ssh, FTP, SMTP, and more)
64 stars 20 forks source link

v0.25 --delist error: file /var/db/sentry/hosts.deny or enclosing dir is not writable! #1

Closed sn3ak closed 11 years ago

sn3ak commented 11 years ago

FreeBSD 9.1 amd64 & Perl v5.14.2

as root adding a manual blacklist: (also automatic blacklist works great) /var/db/sentry # ./sentry.pl --verbose -b --ip=192.168.11.35 installed version is 0.25 ip 192.168.11.35 is valid setup checks succeeded using /var/db/sentry/sentry.dbm as database 0 connections from 192.168.11.35 (key: 3232238371) blacklisting 192.168.11.35

As root, trying to delist any blacklist: /var/db/sentry # ./sentry.pl --verbose -delist --ip=192.168.11.35 installed version is 0.25 ip 192.168.11.35 is valid setup checks succeeded using /var/db/sentry/sentry.dbm as database 0 connections from 192.168.11.35 (key: 3232238371) and it is blacklisted unblacklisting 192.168.11.35 file /var/db/sentry/hosts.deny or enclosing dir is not writable! unwhitelisting 192.168.11.35

permissions: -rw-r--r-- 1 root wheel 996 Jun 12 13:10 hosts.deny drwxr-xr-x 2 root wheel 512 Jun 12 13:10 sentry

Obviously blacklisting works, but the entry is never removed from hosts.deny

msimerson commented 11 years ago

Commit #44e3ba391682abbbf36953ad800d547657c5e1c9 should fix that.