Skip to content

Releases: HeisSpiter/forbidhosts

Released v1.8

08 Mar 12:43
Compare
Choose a tag to compare
  • configure.ac: Display files paths at the end of configure
  • configure.ac: Simplify file
  • ForbidHosts.cpp: Make use of user provided paths for files
  • configure.ac: Allow to define auth.log and hosts.deny path by env var
  • configure.ac: Simplify file
  • ForbidHosts.cpp: Move deny file path to a constant string
  • ForbidHosts.cpp: Use default assignement for FirstSeen
  • ForbidHosts.cpp: Prevent race condition in the signal handler
  • ForbidHosts.cpp: Also make constants static
  • ForbidHosts.cpp: Remove unused constants
  • ForbidHosts.cpp: Make const char pointers const
  • ForbidHosts.cpp: Make constants notation consistent
  • ForbidHosts.cpp: Fix a cppcheck warning
  • ForbidHosts.cpp: C++ify code
  • ForbidHosts.cpp: Already add a newly found host if its attempts beat max attempts
  • ForbidHosts.cpp: Increase the penalty taking into account the number of attempts
  • ForbidHosts.cpp: Take into account repeated lines that directly state the repeated message
  • configure.ac: Add a sum up of the build configuration at the end of configure script

Released v1.7

16 Feb 11:27
Compare
Choose a tag to compare
  • ForbidHosts.cpp: On invalid line read, don't bail out, just read the next line if available.
  • ForbidHosts.cpp: On repeated line without previous known address, don't bail out, just read the next line if available.
  • ForbidHosts.cpp: Add a wait loop when attempting to reopen auth.log after log rotation.
  • ForbidHosts.cpp: Don't use deprecated function usleep().
  • ForbidHosts.cpp: Don't use LOG_ERR for syslog, it is set to be ignored
  • ForbidHosts.cpp: We'd rather wait when we're not using inotify

Released v1.6

04 Jan 20:38
Compare
Choose a tag to compare
  • ForbidHosts.cpp: Add version number in backtrace on exception
  • ForbidHosts.cpp: Add an exception handler for the abnormal termination that could occur if anything goes wrong in the daemon.
    It will attempt to mail if mailing is enabled.
    If not possible, it will fallback to syslog
  • configure.ac: Complete the configure.ac template

Released v1.5

12 Dec 13:30
Compare
Choose a tag to compare
  • ForbidHosts.cpp: partly revert ccca64e
  • ForbidHosts.cpp: revert 45b834f
  • ForbidHosts.cpp: revert e4c6ec9
  • ForbidHosts.cpp: Always zero inotify_event len field to prevent attempts to read random len of data from inotify.
  • ForbidHosts.cpp: Fix the reinit of the inotify watch for the log file. We only watch modifications.
  • ForbidHosts.cpp: Rewrite handling of auth.log rotation. We'll now watch the parent directory and wait for the create event for auth.log.
  • ForbidHosts.cpp: Properly quit in case we cannot watch again the auth.log
  • ForbidHosts.cpp: Addendum to 1289eab: also reset iNotify watch when auth.log is rotated. Otherwise we keep watching the wrong file (on a closed FD!).
  • ForbidHosts.cpp: Properly delete iNotify watch on close.

Released v1.4

19 Nov 12:56
Compare
Choose a tag to compare
  • ForbidHosts.cpp: Fix handling of IPv6 when adding to hosts.deny. This fixes incorrect syntax in the file.
  • ForbidHosts.cpp: Handle name resolution failure: display unknown instead of empty/garbish string.
  • ForbidHosts.cpp: When using inotify, handle auth.log deletion/moving. This is to keep ForbidHosts functionnal even after a log rotate.
  • ForbidHosts.cpp: Read complete inotify event when available

Released v1.3

07 Oct 15:37
Compare
Choose a tag to compare
  • Makefile.am: Enable a few more warnings
  • ForbidHosts.cpp: Fix the new warnings
  • ForbidHosts.cpp: Simplify code for IP lookup
  • ForbidHosts.cpp: Fix last cppcheck warnings
  • Makefile.am: Build with debug symbols by default

Released v1.2

19 Sep 17:12
Compare
Choose a tag to compare
  • ForbidHosts.cpp: Don't prune host entry while it is being written to hosts.deny. This fixes the bug when a host was added several times to the file.
    Now hosts will be pruned later on, on their expiry time, which will be extended to prevent the host is prunned before it was properly and completely handled.
    This allows changing the way hosts are handled when added to hosts.deny that will give a small boost in performances.

Released v1.1

05 Sep 13:59
Compare
Choose a tag to compare
  • ForbidHosts.cpp: Get the hostname of the machine to include it in mails header.
  • ForbidHosts.cpp: Fix a bug with name resolutions for IPv4 where it was improperly handled.

First release

04 Sep 15:31
Compare
Choose a tag to compare

Packaging OK, release v1.0.