.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4. .TH FAIL2BAN-CLIENT "1" "December 2016" "fail2ban-client v0.9.6" "User Commands" .SH NAME fail2ban-client \- configure and control the server .SH SYNOPSIS .B fail2ban-client [\fI\,OPTIONS\/\fR] \fI\,\/\fR .SH DESCRIPTION Fail2Ban v0.9.6 reads log file that contains password failure report and bans the corresponding IP addresses using firewall rules. .SH OPTIONS .TP \fB\-c\fR configuration directory .TP \fB\-s\fR socket path .TP \fB\-p\fR pidfile path .TP \fB\-d\fR dump configuration. For debugging .TP \fB\-i\fR interactive mode .TP \fB\-v\fR increase verbosity .TP \fB\-q\fR decrease verbosity .TP \fB\-x\fR force execution of the server (remove socket file) .TP \fB\-b\fR start server in background (default) .TP \fB\-f\fR start server in foreground (note that the client forks once itself) .TP \fB\-h\fR, \fB\-\-help\fR display this help message .TP \fB\-V\fR, \fB\-\-version\fR print the version .SH COMMAND .IP BASIC .TP \fBstart\fR starts the server and the jails .TP \fBreload\fR reloads the configuration .TP \fBreload \fR reloads the jail .TP \fBstop\fR stops all jails and terminate the server .TP \fBstatus\fR gets the current status of the server .TP \fBping\fR tests if the server is alive .TP \fBhelp\fR return this output .TP \fBversion\fR return the server version .IP LOGGING .TP \fBset loglevel \fR sets logging level to . Levels: CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG .TP \fBget loglevel\fR gets the logging level .TP \fBset logtarget \fR sets logging target to . Can be STDOUT, STDERR, SYSLOG or a file .TP \fBget logtarget\fR gets logging target .TP \fBset syslogsocket auto|\fR sets the syslog socket path to auto or . Only used if logtarget is SYSLOG .TP \fBget syslogsocket\fR gets syslog socket path .TP \fBflushlogs\fR flushes the logtarget if a file and reopens it. For log rotation. .IP DATABASE .TP \fBset dbfile \fR set the location of fail2ban persistent datastore. Set to "None" to disable .TP \fBget dbfile\fR get the location of fail2ban persistent datastore .TP \fBset dbpurgeage \fR sets the max age in that history of bans will be kept .TP \fBget dbpurgeage\fR gets the max age in seconds that history of bans will be kept .IP JAIL CONTROL .TP \fBadd \fR creates using .TP \fBstart \fR starts the jail .TP \fBstop \fR stops the jail . The jail is removed .TP \fBstatus [FLAVOR]\fR gets the current status of , with optional flavor or extended info .IP JAIL CONFIGURATION .TP \fBset idle on|off\fR sets the idle state of .TP \fBset addignoreip \fR adds to the ignore list of .TP \fBset delignoreip \fR removes from the ignore list of .TP \fBset addlogpath ['tail']\fR adds to the monitoring list of , optionally starting at the 'tail' of the file (default \&'head'). .TP \fBset dellogpath \fR removes from the monitoring list of .TP \fBset logencoding \fR sets the of the log files for .TP \fBset addjournalmatch \fR adds to the journal filter of .TP \fBset deljournalmatch \fR removes from the journal filter of .TP \fBset addfailregex \fR adds the regular expression which must match failures for .TP \fBset delfailregex \fR removes the regular expression at for failregex .TP \fBset ignorecommand \fR sets ignorecommand of .TP \fBset addignoreregex \fR adds the regular expression which should match pattern to exclude for .TP \fBset delignoreregex \fR removes the regular expression at for ignoreregex .TP \fBset findtime