diff --git a/ChangeLog b/ChangeLog index d18876e2..20a37d4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -56,7 +56,7 @@ ver. 0.11.0-dev-0 (20??/??/??) - development nightly edition end of ban) of the ticket with ban-time of jail (as maximum), for all tickets with ban-time greater (or persistent); not affected if ban-time of the jail is unchanged between stop/start. * added new setup-option `--without-tests` to skip building and installing of tests files (gh-2287). -* added new command `fail2ban-client get banip ?--with-time|sep-char?` to get the banned ip addresses (gh-1916). +* added new command `fail2ban-client get banip ?sep-char|--with-time?` to get the banned ip addresses (gh-1916). ver. 0.10.4-dev-1 (20??/??/??) - development edition diff --git a/fail2ban/protocol.py b/fail2ban/protocol.py index b21ab848..f9ec5b71 100644 --- a/fail2ban/protocol.py +++ b/fail2ban/protocol.py @@ -128,6 +128,7 @@ protocol = [ ["get bantime", "gets the time a host is banned for "], ["get datepattern", "gets the patern used to match date/times for "], ["get usedns", "gets the usedns setting for "], +["get banip [|--with-time]", "gets the list of of banned IP addresses for . Optionally the separator character ('', default is space) or the option '--with-time' (printing the times of ban) may be specified. The IPs are ordered by end of ban."], ["get maxretry", "gets the number of failures allowed for "], ["get maxlines", "gets the number of lines to buffer for "], ["get actions", "gets a list of actions for "], diff --git a/man/fail2ban-client.1 b/man/fail2ban-client.1 index d1226d56..af2af054 100644 --- a/man/fail2ban-client.1 +++ b/man/fail2ban-client.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4. -.TH FAIL2BAN-CLIENT "1" "October 2018" "fail2ban-client v0.11.0.dev3" "User Commands" +.TH FAIL2BAN-CLIENT "1" "January 2019" "fail2ban-client v0.11.0.dev3" "User Commands" .SH NAME fail2ban-client \- configure and control the server .SH SYNOPSIS @@ -386,6 +386,15 @@ date/times for \fBget usedns\fR gets the usedns setting for .TP +\fBget banip [|\-\-with\-time]\fR +gets the list of of banned IP +addresses for . Optionally +the separator character ('', +default is space) or the option +\&'\-\-with\-time' (printing the times +of ban) may be specified. The IPs +are ordered by end of ban. +.TP \fBget maxretry\fR gets the number of failures allowed for